An ambient lighting control method based on anti-pinch function of vehicle windows and the vehicle
By detecting the capacitive signal of the car window to calculate the anti-pinch risk coefficient and controlling the ambient light warning, the problem of lag and lack of warning in the existing car window anti-pinch technology is solved. It realizes real-time assessment of obstacles and safety warning, and reduces the risk of pinching injury.
Patent Information
- Application Number
- CN202611567086.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-10
- Publication Date
- 2026-11-17
AI Technical Summary
Existing anti-pinch technology for car windows suffers from trigger lag and lacks a prior warning mechanism, making it unable to effectively avoid the safety risk of pinching and injuring occupants. Furthermore, its detection performance is easily affected by vehicle aging.
By detecting the real-time capacitance signal during the operation of the car window, the anti-pinch risk coefficient is calculated, and the ambient light is controlled based on the coefficient to provide a visual warning, thus realizing advance risk warning.
It enables real-time assessment of obstacle approach, eliminates protection trigger lag, provides early warning capability, and reduces the safety risk of occupants being pinched.
Smart Images

Figure CN123104520A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of anti-pinch technology for vehicle windows, specifically to an ambient lighting control method and vehicle based on anti-pinch technology for vehicle windows. Background Technology
[0002] Currently, most vehicles are equipped with automatic window raising and lowering functions, as well as automatic window closing when the doors are locked. To prevent injury to limbs during window raising, vehicles are equipped with anti-pinch window functions. Existing mainstream anti-pinch solutions mostly use contact-based torque detection methods such as ripple current detection and Hall position detection. These methods rely on the resistance generated when the window comes into contact with an obstacle, causing a sudden change in motor current or torque, which triggers the window to reverse for protection.
[0003] Such technologies have significant drawbacks. The protective trigger is delayed, requiring physical pressure to respond, which can easily injure children's delicate limbs. Furthermore, the detection performance is highly dependent on the window's mechanical structure and motor condition; vehicle aging can lead to deviations in anti-pinch parameters and functional failure, resulting in a continuous decline in safety. Moreover, traditional anti-pinch systems only provide reactive remediation after an incident, lacking proactive risk warning capabilities. Users cannot monitor the surrounding environment of the window in real time, making it highly susceptible to accidental window opening and injury to occupants. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide an ambient light control method and vehicle based on anti-pinch technology for car windows, in order to solve the problems of existing contact torque detection anti-pinch technology having the defects of trigger lag and lack of advance warning mechanism, which can only provide passive protection and cannot avoid the safety risk of car windows pinching and injuring occupants in advance.
[0005] In a first aspect, embodiments of the present invention provide an ambient light control method based on anti-pinch function of vehicle windows, the method comprising: Detect the real-time capacitance signal generated by the car window during operation; The anti-pinch risk coefficient of the vehicle window is calculated based on at least one signal feature corresponding to the real-time capacitance signal. Based on the anti-pinch risk coefficient, the ambient light associated with the window is controlled to perform a visual warning operation.
[0006] Furthermore, calculating the anti-pinch risk coefficient of the vehicle window based on at least one signal feature corresponding to the real-time capacitance signal includes: The instantaneous capacitance value and signal duration are obtained by analyzing the real-time capacitance signal; The capacitance change amplitude is calculated based on the instantaneous capacitance value and the reference capacitance value, wherein the reference capacitance value is the capacitance value collected under the condition that there are no obstacles around the vehicle window. To determine whether a historical instantaneous capacitance value exists, wherein the historical instantaneous capacitance value is obtained from a historical capacitance signal preceding the real-time capacitance signal; If a historical instantaneous capacitance value exists, the capacitance change rate is calculated based on the instantaneous capacitance value and the historical instantaneous capacitance value. The anti-pinch risk coefficient of the window is then calculated based on the capacitance change amplitude, the capacitance change rate, and the signal duration. Alternatively, if no historical instantaneous capacitance value exists, the anti-pinch risk coefficient of the window is calculated based on the capacitance change amplitude and the signal duration.
[0007] Furthermore, the calculation of the anti-pinch risk coefficient of the vehicle window based on the capacitance change amplitude, the capacitance change rate, and the signal duration includes: The amplitude of the capacitance change, the rate of change of the capacitance, and the duration of the signal are quantized respectively to obtain the amplitude quantization value, the rate of change quantization value, and the duration quantization value. The anti-pinch risk coefficient of the vehicle window is calculated based on the amplitude quantization value, the rate of change quantization value, and the duration quantization value.
[0008] Furthermore, the calculation of the anti-pinch risk coefficient of the vehicle window based on the capacitance change amplitude and the signal duration includes: The amplitude of the capacitance change and the duration of the signal are quantized respectively to obtain the amplitude quantization value and the duration quantization value; Based on the amplitude quantization value and the duration quantization value, the anti-pinch risk coefficient of the vehicle window is calculated.
[0009] Furthermore, the calculation of the anti-pinch risk coefficient of the vehicle window based on the capacitance change amplitude, the capacitance change rate, and the signal duration includes: From the feature database of human limb proximity, the amplitude of reference capacitance change, the range of reference capacitance change rate, and the duration of reference signal are extracted respectively. The difference between the capacitance change amplitude and the reference capacitance change amplitude is matched to obtain the first similarity. The membership degree between the capacitance change rate and the reference capacitance change rate interval is calculated to obtain the second similarity. The third similarity is obtained by matching the difference between the duration of the signal and the duration of the reference signal. Based on the first similarity, the second similarity, and the third similarity, the anti-pinch risk coefficient of the vehicle window is calculated.
[0010] Furthermore, the step of controlling the ambient light associated with the window to perform a visual warning operation based on the anti-pinch risk coefficient includes: If the anti-pinch risk coefficient is greater than the first anti-pinch risk threshold, then the ambient light in the main warning area of the vehicle is controlled to light up in the first color and flash at the first frequency, and at the same time the ambient light in the auxiliary guidance area of the vehicle is driven to light up in the first color and flash at the first frequency. If the anti-pinch risk coefficient is less than or equal to the first anti-pinch risk threshold and greater than the second anti-pinch risk threshold, then the ambient light associated with the main warning area in the vehicle is controlled to light up in the second color and present a breathing light effect at the second frequency. If the anti-pinch risk coefficient is less than or equal to the second anti-pinch risk threshold, then the ambient lights associated with the main warning area and the ambient lights of the auxiliary guidance area in the vehicle are controlled to be constantly lit or flash once using a third color.
[0011] Furthermore, the method also includes: If the anti-pinch risk coefficient is greater than the first anti-pinch risk threshold, the ambient light in the auxiliary guidance area of the vehicle is driven to illuminate synchronously in the first color and flash at the first frequency. If the anti-pinch risk coefficient is less than or equal to the first anti-pinch risk threshold and greater than the second anti-pinch risk threshold, the ambient light in the auxiliary guidance area of the vehicle is driven to illuminate synchronously in the second color and present a breathing light effect at the second frequency. If the anti-pinch risk coefficient is less than or equal to the second anti-pinch risk threshold, then the ambient light associated with the auxiliary guidance area in the vehicle is controlled to be constantly lit or flash once using a third color.
[0012] Furthermore, after controlling the ambient light associated with the window to perform a visual warning operation based on the anti-pinch risk coefficient, the method further includes: When a vehicle locking command is detected, the real-time capacitance change amplitude of each window is obtained; Compare the real-time capacitance change amplitude of each of the aforementioned windows with the anti-pinch threshold when locking the vehicle; If there is a window whose real-time capacitance change amplitude is greater than or equal to the anti-pinch threshold for locking the car, then the corresponding window is prohibited from performing automatic window raising operation, the ambient light associated with the window is controlled to perform visual reminder, and a prompt message is sent; or, if there is no window whose real-time capacitance change amplitude is greater than or equal to the anti-pinch threshold for locking the car, then all windows are controlled to perform automatic window raising operation.
[0013] Furthermore, after pushing the notification message to the client, the method also includes: Listen for whether the user triggers a forced window opening command within a preset time window; If the user triggers a forced window-raising command, the window will be controlled to automatically raise; or, if the user does not trigger a forced window-raising command, capacitance detection will be periodically activated until the detected real-time capacitance change amplitude is less than the anti-pinch threshold for locking the car, or a forced window-raising command is received.
[0014] Furthermore, the method also includes: When the vehicle is detected to have triggered the automatic parking function, the corresponding anti-pinch risk threshold is updated using the adjustment coefficient corresponding to the automatic parking function to obtain the updated anti-pinch risk threshold. Obtain the real-time anti-pinch risk coefficient of the window during the automatic parking process of the vehicle; Based on the relationship between the real-time anti-pinch risk coefficient and the updated anti-pinch risk threshold, corresponding safety control operations are performed.
[0015] Secondly, embodiments of the present invention provide an ambient light control device based on anti-pinch function for vehicle windows, the device comprising: The detection module is used to detect the continuous capacitance signal generated by the vehicle window during operation; A calculation module is used to calculate the anti-pinch risk coefficient of the window based on at least one signal feature of the continuous capacitance signal. The execution module is used to control the ambient light associated with the window to perform a visual warning operation based on the anti-pinch risk coefficient.
[0016] Thirdly, embodiments of the present invention provide a vehicle, 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.
[0017] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions that cause a computer to perform the method described in the first aspect or any of its corresponding embodiments.
[0018] This invention collects real-time capacitance signals in the window area, capturing changes in the electric field as an object approaches without requiring physical contact between the obstacle and the glass. This overcomes the limitation of traditional torque detection, which requires contact and pressure to identify objects, and eliminates the problem of delayed protection triggering. Secondly, based on multiple characteristics of the capacitance signal, a continuous anti-pinch risk coefficient is calculated, enabling the assessment of the obstacle's proximity and eliminating the need to wait for a pinching event to occur before responding. Then, the anti-pinch risk coefficient drives ambient lighting to provide a visual warning, feeding back potential risks to the user through light prompts, building a proactive warning capability, and changing the original passive protection mode that could only reverse the situation afterward. Finally, by sensing risks in advance and outputting light warnings, the invention can remind users to intervene in window operations in a timely manner, thereby proactively avoiding the safety risk of window pinching injuries to occupants. 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 an ambient lighting control method based on anti-pinch function of vehicle windows according to some embodiments of the present invention; Figure 2 This is a flowchart illustrating another ambient lighting control method based on anti-pinch function of vehicle windows according to some embodiments of the present invention; Figure 3 This is a flowchart illustrating another ambient lighting control method based on anti-pinch function of vehicle windows according to some embodiments of the present invention; Figure 4 This is a structural block diagram of an ambient lighting control device based on anti-pinch function of vehicle windows according to an embodiment of the present invention; Figure 5 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 an embodiment of the present invention, an ambient light control method and a vehicle based on anti-pinch function of vehicle windows are provided. It should be noted that the steps shown in the flowchart 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 flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0023] This embodiment provides an ambient lighting control method based on anti-pinch function for vehicle windows. Figure 1 This is a flowchart of an ambient lighting control method based on anti-pinch function of vehicle windows according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps: Step S101: Detect the real-time capacitance signal generated by the window during operation.
[0024] In this embodiment, a capacitance sensing circuit is arranged along the edge of the vehicle window. The capacitance sensing circuit and the door frame form a coupled electric field space. When an object approaches the sensing area, the dielectric environment within the space changes, and the electric field distribution is disturbed, causing a shift in the capacitance value of the capacitance sensing circuit. The original capacitance value is continuously collected, and combined with the baseline capacitance value obtained from power-on calibration, the capacitance change ΔC relative to the baseline is calculated in real time. Capacitance time-series data is continuously recorded during the continuous sampling period, and two derived signal features—capacitance change rate and signal duration—are further extracted based on the time-series sequence. Basic filtering is introduced simultaneously during the acquisition process to filter out instantaneous noise signals caused by electromagnetic interference, retaining the effective continuous signal caused by the approach of an object, resulting in a real-time capacitance signal output including capacitance change amplitude, capacitance change rate, and signal duration.
[0025] Step S102: Calculate the anti-pinch risk coefficient of the window based on at least one signal feature corresponding to the real-time capacitance signal.
[0026] In this embodiment, the anti-pinch risk coefficient of the vehicle window is calculated based on at least one signal feature corresponding to the real-time capacitance signal. This calculation method avoids the limitations of traditional single capacitance change amplitude threshold judgment. It no longer relies solely on the magnitude of ΔC for simple right or wrong judgment, but integrates three core time-series features—capacitance change amplitude, capacitance change rate, and signal duration—to complete a multi-dimensional comprehensive quantitative calculation, distinguishing between human limb approach and environmental interference signals.
[0027] First, the acquired raw real-time capacitance signals undergo feature decomposition and standardized quantization. Three different physical parameters—the amplitude of fluctuating capacitance changes, the rate of capacitance change representing the object's approach speed, and the duration reflecting signal effectiveness—are transformed into quantized amplitude, rate of change, and duration values within the 0-1 range. This eliminates computational biases caused by differences in the dimensions and numerical ranges of different feature parameters. Based on this, a fusion operation is performed using the three quantized feature values, combined with the weighting of each feature in limb recognition, to generate a continuously variable anti-pinch risk coefficient within the 0-1 range.
[0028] When human limbs such as fingers and arms rapidly approach a car window, a sharp and sustained increase in capacitance signal is generated. The corresponding three types of quantization values are all in the high range, resulting in a higher calculated anti-pinch risk coefficient. Conversely, external interference such as raindrop impacts, airflow disturbances, and electromagnetic interference only produce transient capacitance fluctuations with extremely short signal duration and unstable rate of change, resulting in lower quantization values and a lower overall anti-pinch risk coefficient. By using a multi-feature quantification fusion calculation method, valid risk signals can be distinguished from interference signals, enabling the quantification of obstacle attributes, approach distance, and movement speed. This significantly reduces the probability of false alarms and missed alarms in window anti-pinch detection, providing a quantitative basis for subsequent graded lighting warnings and window safety control.
[0029] Step S103: Based on the anti-pinch risk coefficient, control the ambient light associated with the window to perform a visual warning operation.
[0030] In this embodiment, the ambient light associated with the vehicle window is controlled to perform a visual warning operation based on the anti-pinch risk factor, including: ①If the anti-pinch risk coefficient is greater than the first anti-pinch risk threshold, then control the ambient light in the main warning area of the vehicle to light up in the first color and flash at the first frequency.
[0031] Specifically, the first anti-pinch risk threshold is set at 0.7. When the anti-pinch risk coefficient is greater than 0.7, it is determined that there is a high risk of pinching injuries to fingers, limbs, etc. in the window area, and a high-level visual warning mechanism is activated accordingly. The first color is red, with RGB values of 255, 0, 0. This color is a commonly recognized danger warning color, possessing visual impact and high warning recognition, which can quickly awaken the driver and passengers' awareness of danger. The first frequency is set to a rapid flashing frequency of 2.5Hz, utilizing the high sensitivity of the human eye to high-frequency dynamic flashing light sources to break through static visual blind spots.
[0032] In one embodiment, if the anti-pinch risk coefficient is greater than the first anti-pinch risk threshold, the ambient light in the auxiliary guidance area of the driving vehicle is simultaneously illuminated in the first color and flashes at the first frequency.
[0033] The first anti-pinch risk threshold is set to 0.7. When the anti-pinch risk coefficient is greater than 0.7, it is determined that the window sensing area has detected a human limb rapidly approaching, posing an extremely high risk of window pinching injury, and the system triggers the highest level visual warning. The first color is standard pure red, with RGB values of 255, 0, 0; the first frequency is set to 2.5Hz rapid flashing, relying on the human eye's sensitivity to dynamic flashing light sources to enhance the warning.
[0034] Based on this, while the ambient lights in the main warning area of the vehicle are illuminated in the first color, according to the preset spatial mapping relationship between the windows and the lighting area, the ambient lights in the auxiliary guidance area, including the dashboard and / or the user's side door, are simultaneously activated in the first color and flash synchronously at the first frequency. Through the linkage between the main warning area and the auxiliary guidance area lights on the dashboard and the user's side door, a multi-point coordinated warning is formed. This auxiliary guidance area is located within the user's main field of vision, working in conjunction with the main warning area to provide visual guidance on the location of risks, enhancing the user's awareness of risks, guiding drivers and passengers to quickly identify the location of risky windows, and promptly intervene in window operation to avoid limb injury accidents.
[0035] Based on the preset spatial mapping relationship between windows and light areas, the main warning area of the door corresponding to the risk is given priority to be illuminated and flashed as the warning point. At the same time, the auxiliary guidance area composed of the dashboard and the user's side door flashes synchronously with the same color and frequency, forming a high-intensity visual warning effect throughout the entire area, quickly locating the high-risk window position, and realizing emergency risk warning.
[0036] ②If the anti-pinch risk coefficient is less than or equal to the first anti-pinch risk threshold and greater than the second anti-pinch risk threshold, then control the ambient light associated with the main warning zone in the vehicle to light up in the second color and present a breathing light effect at the second frequency.
[0037] Specifically, the second anti-pinch risk threshold is set at 0.3. When the anti-pinch risk coefficient is between 0.3 and 0.7, it is determined that there are suspected obstacles such as clothing or debris around the window, which is considered a medium-level suspected risk. There is no immediate risk of pinching injury, but continuous reminders are required. The second color is a warning amber color with RGB values of 255, 150, and 0, which is different from the high-risk red warning and is used for regular risk reminder scenarios. It has a gentle visual feel and is easily identifiable. The second frequency range is set from 0.5Hz to 1Hz, using a sine wave algorithm to control the brightness of the light to gradually change, forming a uniform and soothing breathing light effect.
[0038] In one embodiment, the ambient lights in the auxiliary guidance area of the vehicle can also be driven to illuminate synchronously in a second color and present a breathing light effect at a second frequency.
[0039] The second anti-pinch risk threshold is preset to 0.3. When the anti-pinch risk coefficient is greater than 0.3 and less than or equal to 0.7, it is determined that an object is slowly approaching around the window, which is considered a medium-risk situation with suspected pinching injury. In this case, there is no need to activate the emergency flashing alarm; instead, a soft breathing light effect is used for warning. The second color is amber, with RGB values of 255, 191, and 0, distinguishing it from the high-risk red. The second frequency is set to a 0.5Hz breathing gradient cycle, with the light brightness changing smoothly and slowly between the upper and lower limits, avoiding strong visual stimulation inside the cabin.
[0040] Based on this, while the ambient lights associated with the main warning zone are illuminated in the second color, the ambient lights in the auxiliary guidance zone, which includes the dashboard and / or the user's side door, are driven to simultaneously illuminate in the second color and perform a breathing light effect, based on the preset spatial mapping relationship between the windows and the light area. This auxiliary guidance zone is located within the user's main field of vision and works in conjunction with the output prompts from the main warning zone to achieve visual guidance of the risk location, enhance the user's attention to the risk, and maintain coordination with the light prompts of the main warning zone to inform the driver and passengers that there is an object approaching near the window and remind them to pay attention to the movement of the window, thus achieving a mild and effective medium-risk warning.
[0041] ③ If the anti-pinch risk coefficient is less than or equal to the second anti-pinch risk threshold, the ambient light associated with the main warning zone in the vehicle will be kept on or flashed once using the third color.
[0042] Specifically, when the anti-pinch risk coefficient is less than or equal to 0.3, it is determined that there are no dangerous obstacles around the window, and the current capacitor signal is mostly due to environmental interference, sensor self-check, and other normal operating conditions, so there is no risk of window pinching injury. The third color is standard blue with RGB values of 0, 100, and 255. This color is independent of the risk warning color system and is used to indicate the normal status of the system, clearly distinguishing it from the high and medium risk lights.
[0043] In one embodiment, the ambient lighting associated with the auxiliary guidance area in the vehicle can also be controlled to be constantly lit or flash once using a third color.
[0044] The second anti-pinch risk threshold is set at 0.3. When the anti-pinch risk coefficient is less than or equal to 0.3, it is determined that no effective limb approach signal is detected in the window area, and the capacitive disturbance mainly comes from environmental interference such as raindrops, airflow, and weak electromagnetic noise. There is currently no risk of pinching injury. The third color is light ice blue with RGB values of 173, 216, and 230, which is clearly distinguishable from high-risk red and warning amber to avoid false alarms.
[0045] At this time, the ambient lighting corresponding to the auxiliary guidance area of the dashboard and / or the user's side door will remain constantly lit in a third color, or trigger a short flash after completing a round of capacitance signal detection. This auxiliary guidance area is located within the user's main field of vision and, in conjunction with the main warning area output system status prompts, provides visual guidance on status information, enhancing the user's attention to the working status. It is used to indicate that the window capacitance anti-pinch monitoring function is in a normal and ready working state, and is not a risk warning. This lighting mode forms a clear hierarchical distinction with the aforementioned high-risk flashing and medium-risk breathing light effects, allowing drivers and passengers to distinguish the working status and risk level through light color and emission pattern.
[0046] It should be noted that the main warning zone is the ambient lighting area on the door corresponding to the window where the risk occurs. As the core area for risk warning, it is equipped with the highest intensity warning light effect. The auxiliary guidance zone is the ambient lighting area including the dashboard and / or the user's side door, located within the user's main field of vision. It is used to complement the main warning zone to provide visual guidance on the location of the risk and enhance the user's awareness of the risk.
[0047] In one embodiment of this application, when the real-time capacitance signal changes and the anti-pinch risk coefficient is less than or equal to the first anti-pinch risk threshold but greater than the second anti-pinch risk threshold, a gradual warning stage is entered. The ambient lights in the main warning area and the auxiliary guidance area are controlled to present a breathing light effect in the second color to provide a gentle warning of an approaching object. When the anti-pinch risk coefficient is greater than the first anti-pinch risk threshold, the confirmation and enhancement logic is triggered, and the ambient lights in the main warning area and the auxiliary guidance area are controlled to flash in the first color at the first frequency, outputting a high-intensity alarm. During the alarm process, the system continuously monitors the user's physical button, voice command, and touchscreen confirmation operations. If a confirmation command for receiving the warning is received, the ambient lights switch to a third color blue breathing effect and quickly turn off, indicating that the warning has been acknowledged. If no user confirmation operation is detected, the first color flashing light is maintained for 8 seconds and then automatically decays, switching to the second color breathing light effect and gradually turning off. When the anti-pinch risk coefficient falls back to the second anti-pinch risk threshold or below, the ambient lights in the main warning area and the auxiliary guidance area use the third color to remain constantly lit or flash once to complete the status indication, ensuring the risk warning effect while avoiding continuous interference of strong light with the driver and passengers.
[0048] In one embodiment of this application, the anti-pinch risk coefficient of the vehicle window is calculated based on at least one signal feature corresponding to the real-time capacitance signal, including: Step A1: Analyze the real-time capacitance signal to obtain the instantaneous capacitance value and the signal duration.
[0049] Specifically, the capacitive sensors around the vehicle window continuously collect raw capacitive sensing signals at a fixed high-frequency sampling frequency. The raw signals are continuous time-series electrical signal waveforms, containing the capacitance value under real-time electric field coupling and signal duration information. The collected continuous real-time capacitive signals are analyzed and filtered to remove invalid noise signals such as clutter and transient interference pulses generated during the sampling process, retaining stable, continuous, and valid sensing waveforms.
[0050] The instantaneous capacitance value corresponding to each sampling moment is extracted in real time from the effective waveform. This value reflects the current electric field dielectric state of the window sensing area and the proximity of the object. Simultaneously, relying on the system's timing mechanism, the duration of the effective capacitance signal from its stable generation to the current sampling moment is calculated, thus obtaining the signal duration. This parameter can effectively distinguish between continuous object proximity and transient environmental interference. The proximity of a human body generates a long-lasting, stable effective signal, while interference such as raindrops and airflow only produces a very short, instantaneous signal.
[0051] Step A2: Calculate the capacitance change amplitude based on the instantaneous capacitance value and the reference capacitance value, where the reference capacitance value is the capacitance value collected under the condition that there are no obstacles around the vehicle window.
[0052] Specifically, the reference capacitance value is the steady-state capacitance value calibrated and collected under standard operating conditions: vehicle power-on initialization, no obstacles around the window, and no external environmental interference. It represents the initial electric field reference state of the window sensing area, avoiding basic capacitance deviations caused by factory assembly errors, ambient temperature and humidity, and vehicle posture. Throughout the window's operation, the instantaneous capacitance value obtained at each sampling moment is compared with the pre-stored reference capacitance value to calculate the real-time capacitance change amplitude.
[0053] This amplitude directly reflects the degree of disturbance to the electric field in the current sensing area. The closer the obstacle is to the window and the higher its dielectric constant, the stronger the disturbance effect on the original electric field. The greater the deviation of the instantaneous capacitance value from the reference capacitance value, the higher the capacitance change amplitude. As a core static amplitude parameter, this feature can directly reflect the proximity and occupancy of the obstacle. It is a fundamental core indicator for determining the risk of window pinching and can detect abnormal changes in the electric field in the window sensing area.
[0054] Step A3: Obtain whether there is a historical instantaneous capacitance value, wherein the historical instantaneous capacitance value is obtained from the historical capacitance signal before the real-time capacitance signal; Specifically, the system continuously collects capacitance signals around the vehicle window according to the sampling period, and stores the instantaneous capacitance value obtained from each sampling, thereby constructing a time-series capacitance data sequence that updates over time. After completing the parsing of the instantaneous capacitance value and signal duration of the current frame, the system retrieves the time-series capacitance data sequence to check whether there is any valid historical instantaneous capacitance data remaining before the current sampling time.
[0055] If a valid historical instantaneous capacitance value is found, it means that this is not the first sampling, and there is a basis for calculating the capacitance change rate; if no valid historical instantaneous capacitance value is found, it means that this is the first capacitance sampling after power-on / signal triggering.
[0056] Step A4: If a historical instantaneous capacitance value exists, calculate the capacitance change rate based on the instantaneous capacitance value and the historical instantaneous capacitance value, and calculate the anti-pinch risk coefficient of the window based on the capacitance change amplitude, capacitance change rate, and signal duration; or, if no historical instantaneous capacitance value exists, calculate the anti-pinch risk coefficient of the window based on the capacitance change amplitude and signal duration.
[0057] Specifically, when historical instantaneous capacitance values exist, the current instantaneous capacitance value and the historical instantaneous capacitance value can be differentiated to solve for the change in capacitance value per unit time, thus obtaining the capacitance change rate that characterizes the speed at which the obstacle approaches. This dynamic feature can distinguish between the real risk of human limbs approaching and transient disturbances such as raindrops and instantaneous electromagnetic interference. At this time, the anti-pinch risk coefficient is calculated by combining three dimensions of parameters: capacitance change amplitude, capacitance change rate, and signal duration. By using the joint evaluation of static amplitude, dynamic change rate, and signal duration, false alarms are significantly reduced. When there is no historical instantaneous capacitance value, it is considered the first sampling scenario. Lacking prior time-series capacitance data, the capacitance change rate cannot be calculated. The risk assessment of the anti-pinch function at this sampling point is completed only by relying on two parameters: the capacitance change amplitude and the signal duration. Although it lacks dynamic change characteristics, it can still complete the basic risk judgment based on the magnitude of the capacitance deviation from the reference value and the signal duration, ensuring the integrity of the assessment logic at the time of the first sampling.
[0058] It should be noted that when human limbs such as fingers or arms quickly approach a car window, the capacitance value rises rapidly within a short period, exhibiting a high value and a high rate of change. However, under conditions such as raindrop contact or transient electromagnetic interference, the capacitance value changes abruptly and then quickly falls back, exhibiting a rapid rise and fall in the rate of change without sustained stability. This dynamic feature overcomes the limitations of single-image detection, enabling the differentiation of object motion states and effectively reducing the probability of false alarms.
[0059] In one embodiment, the anti-pinch risk coefficient of the vehicle window is calculated based on the capacitance change amplitude, capacitance change rate, and signal duration, including: Step A41: Quantize the capacitance change amplitude, capacitance change rate, and signal duration respectively to obtain the amplitude quantization value, change rate quantization value, and duration quantization value.
[0060] Specifically, the three original feature parameters—capacitance change amplitude, capacitance change rate, and signal duration—have different physical dimensions and numerical ranges. The capacitance change amplitude characterizes the intensity of the electric field disturbance, the capacitance change rate characterizes the dynamic velocity of an approaching object, and the signal duration characterizes the effective persistence of the interference signal. These three types of original data cannot be directly fused and must first undergo standardized quantization processing. Based on the preset feature quantization mapping rules and combined with the effective feature value range of the window anti-pinch detection, the acquired original capacitance change amplitude is normalized, mapping the original amplitude values with varying ranges to the 0-1 range, generating a quantized amplitude value that can characterize the degree of amplitude matching.
[0061] Dynamic range calibration quantization is performed on the capacitance change rate, converting different rate-of-change parameters into quantized change rate values within the range of 0 to 1, reflecting the dynamic feature matching degree of object approach. Simultaneously, the duration of the original signal is normalized and converted, and standardized mapping is completed by combining it with the duration threshold of the effective risk signal to obtain the corresponding duration quantized value. The three types of quantized values unify the numerical dimension and value range, eliminating dimensional differences between different physical parameters, achieving standardization and unification of multi-source feature data, laying the data foundation for subsequent multi-feature fusion calculations and distinguishing human limb signals from environmental interference signals, and ensuring the accuracy and stability of risk calculation.
[0062] Step A42: Calculate the anti-pinch risk coefficient of the car window based on the amplitude quantization value, the rate of change quantization value, and the duration quantization value.
[0063] Specifically, based on the signal characteristics of human limbs approaching the car window, appropriate weight coefficients are configured for the amplitude quantization value, the rate of change quantization value, and the duration quantization value. The weight values are set according to the contribution of each feature to the risk identification of limbs. Among them, the stable and continuous amplitude feature and the dynamic rate of change feature are the core judgment indicators, and the duration feature is the auxiliary verification indicator.
[0064] The three types of quantified values are fused using a weighted summation method to obtain initial global matching parameters. These parameters are then calibrated a second time using a normalization correction algorithm to eliminate weight bias and data errors, ultimately generating a continuously distributed anti-pinch risk coefficient ranging from 0 to 1. This coefficient comprehensively characterizes the attributes, approach distance, and speed of the obstacle. When a human limb approaches, all three types of quantified values are simultaneously in the high-value range, significantly increasing the risk coefficient. Conversely, the quantified values corresponding to instantaneous interference signals such as raindrops and airflow are lower, maintaining a low risk coefficient, thus distinguishing between high-risk, suspected-risk, and risk-free conditions.
[0065] In one embodiment, the anti-pinch risk coefficient of the vehicle window is calculated based on the capacitance change amplitude, capacitance change rate, and signal duration, including: Step A4201: Extract the reference capacitance change amplitude, reference capacitance change rate range, and reference signal duration from the human limb proximity feature database.
[0066] Specifically, the human limb proximity feature database is a standard feature database trained and constructed based on a large amount of real vehicle test data. The database stores standardized feature parameters of human limbs such as fingers and arms approaching the sensor area of the vehicle window, which is the core judgment basis for distinguishing limb risk signals from environmental interference signals.
[0067] The database sets benchmark parameters for limb approach scenarios, including a benchmark capacitance change amplitude adapted to human approach characteristics, a benchmark capacitance change rate range for matching dynamic approach speeds, and a benchmark signal duration characterizing an effective risk signal. The benchmark capacitance change amplitude is the standard electric field disturbance amplitude generated when a human limb approaches; the benchmark capacitance change rate range covers the capacitance change rate range corresponding to the normal movement speed of a human limb extending into a car window; and the benchmark signal duration is the minimum duration for an effective signal to persist when the limb is stationary and approaching.
[0068] When performing risk similarity matching calculations, the above three types of standardized benchmark parameters can be directly retrieved from the feature library.
[0069] Step A4202: Match the difference between the capacitance change amplitude and the reference capacitance change amplitude to obtain the first similarity.
[0070] Specifically, the capacitance change amplitude, as a core static feature characterizing the intensity of the disturbance of the capacitive electric field of the window by an obstacle, directly reflects the proximity and dielectric properties of the obstacle and is a basic indicator for determining whether it is a human limb. By calculating the absolute difference between the real-time collected capacitance change amplitude and the baseline capacitance change amplitude retrieved from the feature library, the degree of matching between the two is deduced based on the magnitude of the difference, thus completing the similarity matching calculation in the amplitude dimension.
[0071] The smaller the difference between the real-time capacitance change amplitude and the reference amplitude, the closer the current electric field disturbance amplitude is to the standard disturbance characteristics of a human limb, and the higher the amplitude matching similarity. Conversely, the larger the difference, the more significantly the current disturbance amplitude deviates from the standard limb characteristics, likely due to non-limb signals such as debris or environmental interference, and the lower the amplitude matching similarity. This difference matching quantifies the degree of fit between the dielectric properties of the obstacle and the dielectric properties of a human limb. The generated first similarity score independently reflects the risk matching degree in the static amplitude dimension, providing fundamental data support for overall risk assessment.
[0072] Step A4203: Calculate the membership degree between the capacitance change rate and the reference capacitance change rate interval to obtain the second similarity.
[0073] Specifically, the capacitance change rate reflects the dynamic motion characteristics of an obstacle approaching the car window. It is a key dynamic feature that distinguishes between signals such as a slow human body reaching in, a rapid touch, a raindrop impact, and an instantaneous electromagnetic disturbance. Unlike single-point numerical matching, the interval membership degree calculation method can adapt to the determination requirements of dynamic features. The reference capacitance change rate interval is the standard rate range of a human limb approaching the car window. The membership degree calculation can quantify the degree to which the real-time change rate belongs to the standard rate interval, with a value range of 0 to 1.
[0074] When the real-time capacitance change rate falls entirely within the baseline capacitance change rate range, it indicates that the object's motion speed perfectly matches the characteristics of human limb movement, with a membership degree approaching 1 and the second-highest similarity value. When the real-time change rate is at the boundary of the range, the similarity decreases moderately. When the real-time change rate significantly exceeds or falls below the baseline range, it indicates that the motion characteristics deviate greatly from the limb movement characteristics, with the similarity approaching 0. This interval membership degree matching method overcomes the limitations of fixed numerical comparison, enabling refined identification of dynamic motion characteristics, effectively distinguishing between transient interference signals and continuous limb approach signals, and improving the accuracy of dynamic risk identification.
[0075] Step A4204: The duration of the signal is matched with the duration of the reference signal by difference to obtain the third similarity.
[0076] Specifically, signal duration is a crucial temporal characteristic for determining whether a capacitive signal is a valid risk signal. Human limbs approaching a car window generate a long-lasting, stable capacitive disturbance signal, while various environmental interferences only produce instantaneous, brief pulse signals. Using a preset baseline signal duration in the feature library as a reference standard, the absolute difference between the real-time detected signal duration and the baseline duration is calculated. The magnitude of this difference is then used to inversely calculate the temporal dimension matching similarity.
[0077] When the duration of the real-time signal is infinitely close to the duration of the reference signal, and the difference approaches zero, it indicates that the current disturbance signal's duration characteristics perfectly match the signal characteristics of a human limb approaching, resulting in a higher third similarity value. Conversely, when the real-time duration is much shorter than the reference duration, and the difference is large, it indicates that the signal is an instantaneous disturbance and does not possess the sustained characteristics of limb approach, resulting in a lower third similarity value. This time-series difference matching can effectively verify the validity and stability of the signal, compensate for the shortcomings of amplitude and rate dimension judgments, and eliminate misjudgments caused by instantaneous interference signals.
[0078] Step A4205: Calculate the anti-pinch risk coefficient of the car window based on the first similarity, the second similarity, and the third similarity.
[0079] Specifically, the first, second, and third similarities correspond to the matching degree of static capacitance amplitude characteristics, dynamic rate of change characteristics, and temporal sequence characteristics of signal duration, respectively. These three types of similarities comprehensively cover the signal characteristics of human limb proximity from different dimensions, and can fully characterize the risk attributes of the currently detected signal. Differentiated dimensional weights are assigned to the recognition priority and contribution degree of the three types of similarities, with dynamic rate of change similarity and static amplitude similarity having higher weights, and temporal sequence similarity serving as a verification weight for auxiliary correction, aligning with the core characteristic logic of "amplitude meeting standards, rate complying, and signal continuity" in limb proximity.
[0080] A weighted fusion algorithm is used to integrate and calculate the three types of similarity to obtain a comprehensive feature matching degree value. This value is then normalized across the entire domain, mapping the multi-dimensional fusion matching results to a standard range of 0 to 1, ultimately yielding a standardized window anti-pinch risk coefficient. This fusion calculation method achieves complementary verification of multi-dimensional features, effectively avoiding the shortcomings of single-dimensional judgment and quantifying the risk level of pinching injury in the window area.
[0081] In one embodiment, the anti-pinch risk coefficient of the vehicle window is calculated based on the capacitance change amplitude and signal duration, including: Step A4301: Quantize the capacitance change amplitude and the signal duration respectively to obtain the amplitude quantization value and the duration quantization value.
[0082] Specifically, the capacitance change amplitude characterizes the disturbance intensity of the electric field around the window caused by the obstacle, reflecting the dielectric properties and proximity of the obstacle. The signal duration characterizes the effective duration of the capacitance disturbance signal, which is used to distinguish between continuous risk signals and instantaneous environmental interference pulses. The two types of raw data have different dimensions and cannot be directly fused and calculated, so they need to be standardized and quantized first.
[0083] Based on the preset feature quantization mapping rules and combined with the effective feature value range of the window anti-pinch detection, the original capacitance change amplitude is normalized to a range of 0 to 1, and the original amplitude values with different ranges are uniformly mapped to the range of 0 to 1, generating an amplitude quantization value that represents the degree of amplitude risk matching; at the same time, the duration of the original signal is normalized and converted, and the standardization mapping is completed by combining the duration threshold of the effective risk signal to obtain the corresponding duration quantization value.
[0084] Step A4302: Calculate the anti-pinch risk coefficient of the car window based on the amplitude quantization value and the duration quantization value.
[0085] Specifically, this step is adapted to the assessment scenario where there is no capacitance change rate in the initial sampling. It solves the risk coefficient based solely on two feature dimensions: amplitude quantization value and duration quantization value in the time dimension. Combining the signal characteristics of human limbs approaching the car window, it configures appropriate weight coefficients for amplitude quantization value and duration quantization value respectively. The weight values are set according to the contribution of the two features in limb risk identification. Among them, the amplitude quantization value corresponding to the capacitance change amplitude is used as the core judgment indicator to characterize the strength of electric field disturbance, and the duration quantization value is used as an auxiliary verification indicator to determine whether the disturbance signal is a short-term transient interference.
[0086] The two types of quantized values are fused using a weighted summation method to obtain initial matching parameters. These initial parameters are then calibrated a second time using a normalization correction algorithm to eliminate weight bias and sampling data errors. Finally, a continuously distributed anti-pinch risk coefficient between 0 and 1 is generated. This coefficient can characterize the basic pinch risk posed by the current obstacle, even in the absence of dynamic rate of change characteristics. When a human limb is close, both the amplitude quantized value and the temporal quantized value are in a higher range, indicating an increased risk coefficient. Conversely, the quantized values corresponding to short-term disturbances such as raindrops and transient electromagnetic interference are lower, maintaining a low risk coefficient. This allows for an initial differentiation between suspected and non-risk conditions in the initial sampling scenario, supplementing the risk assessment capability at the time of initial sampling.
[0087] In this embodiment of the application, after the ambient light associated with the vehicle window performs a visual warning operation based on the anti-pinch risk factor, such as Figure 2 As shown, the method also includes: Step S201: When a vehicle locking command is detected, the real-time capacitance change amplitude of each window is obtained.
[0088] Specifically, the moment the vehicle receives a locking command triggered by the remote key, mobile app, or door handle touch, it immediately enters the pre-lock and window-raising security check mode. This involves using a capacitive sensor array deployed throughout the vehicle's windows to perform short-term, high-precision signal acquisition, with the overall detection time strictly controlled within 200ms, balancing detection efficiency with the smoothness of the vehicle locking process. At the initial stage of the detection, sensor baseline calibration is performed to quickly correct for fundamental capacitance deviations caused by ambient temperature and humidity, and the vehicle's static electric field. The calibrated baseline capacitance value serves as the benchmark for this detection.
[0089] Based on this, the real-time instantaneous capacitance values of each window sensor are collected at high frequency. By performing a difference calculation with the calibrated baseline capacitance value, the real-time capacitance change amplitude corresponding to each window is calculated. This pre-scanning mechanism differs from conventional window-raising detection while driving, employing a lower detection threshold and a faster sampling rate. It is adapted to the safety requirements of vehicle exit and locking scenarios, and can capture subtle signals of limbs or obstacles approaching the window edge, providing real-time raw capacitance data support for subsequent risk assessment during vehicle locking, thus avoiding the risk of injury from window-raising when exiting the vehicle from the source.
[0090] Step S202: Compare the real-time capacitance change amplitude of each window with the anti-pinch threshold of the car lock.
[0091] Specifically, the anti-pinch threshold for locking the car is a safety judgment threshold adapted to the scenario of locking the car and raising the window. Compared with the anti-pinch threshold for raising the window while the vehicle is driving normally, it has higher sensitivity and lower value. It is set to 50% of the anti-pinch risk threshold, which can capture signals from minor obstacles and exposed limbs, making up for the lack of sensitivity of conventional threshold detection in the scenario of locking the car.
[0092] After collecting real-time capacitance change amplitude data for all windows in the vehicle, the capacitance change amplitude for each window is compared one by one with a preset anti-pinch threshold for locking the car. Simultaneously, a human limb proximity feature model is used to verify signal characteristics, distinguishing between living obstacles such as fingers and arms and environmental interference signals such as raindrops, dust, and airflow. This comparison method abandons the crude judgment mode of single numerical comparison, superimposing signal feature verification on top of numerical comparison to filter out target windows with a real risk of pinching injury, effectively reducing the probability of misjudgment and missed detection in the pre-detection of locking the car and raising windows.
[0093] In step S203, if there is a window whose real-time capacitance change amplitude is greater than or equal to the anti-pinch threshold for locking the car, then the corresponding window is prohibited from performing automatic window raising operation, the ambient light associated with the window is controlled to perform visual reminder, and a prompt message is sent; or, if there is no window whose real-time capacitance change amplitude is greater than or equal to the anti-pinch threshold for locking the car, then each window is controlled to perform automatic window raising operation.
[0094] Specifically, when the real-time capacitance change amplitude of any window reaches or exceeds the anti-pinch threshold for locking the car, and the signal characteristics match a human limb approaching the model, it is determined that there is an exposed limb or obstacle in that window area, posing an extremely high risk of injury from window pinching during locking and raising. At this time, the safety protection linkage mechanism is triggered, prioritizing the blocking of the automatic window raising program of the corresponding window, keeping the window in its current open state, and physically preventing pinching accidents from occurring. At the same time, a graded visual warning and multi-channel user prompt mechanism is activated. Based on the preset light zone spatial mapping relationship, the ambient lights in the main warning area and the dashboard auxiliary guidance area corresponding to the risky window are controlled to flash rapidly at a high frequency of 3Hz red for a duration of no less than 10 seconds to locate the risk location and form a strong visual warning; simultaneously, a differentiated horn prompt of two short beeps is given by the vehicle, which is different from the normal single beep when locking the car, and a targeted fault reminder notification is pushed to the mobile APP, reminding users to check for obstacles in the window from multiple dimensions.
[0095] When the capacitance change amplitude of all windows is lower than the anti-pinch threshold for locking the vehicle (i.e., there are no windows with a real-time capacitance change amplitude greater than or equal to the anti-pinch threshold for locking the vehicle) and there are no risk signals, the area around the windows is determined to be safe, and the automatic window raising and vehicle locking process for all windows is executed normally, ensuring vehicle locking safety while also taking into account the convenience of vehicle use.
[0096] As an example, spatial mapping is completed based on the preset window-light zone correspondence. The left rear door ambient light area is mapped as the main warning zone, and the left side of the dashboard area is mapped as the auxiliary guidance zone. At this time, the calculated anti-pinch risk coefficient is 0.85, which is greater than the set value of 0.7 (the first anti-pinch risk threshold). Therefore, the first color red with RGB values of 255, 0, 0 and a 2.5Hz rapid flashing working mode are selected. At the same time, the brightness of the lights is automatically adjusted based on the ambient light data collected by the ambient light sensor, adjusting the brightness to 70% of the level that can be clearly seen during the day. After receiving the control command, the ambient light controller executes the light output, and the red light strip in the main warning zone corresponding to the left rear door starts flashing rapidly at 2.5Hz with high brightness. The auxiliary guide light strip on the left side of the dashboard flashes synchronously at a relatively lower brightness, forming a directional visual guide for the user. This high-intensity red flashing warning mode is continuously output. The user can directly capture the flashing red light by using the rearview mirror or turning their head to observe, quickly identifying a high risk of injury from the left rear window. At this stage, the window lift motor is locked, prohibiting the lifting operation. Subsequently, the user issues a voice confirmation command of "OK, close the prompt". After the voice system recognizes it, it sends a confirmation signal back to the domain controller. The ambient light then switches from red flashing to a third color blue breathing light effect with RGB values of 0, 100, and 255, and gently turns off after 2 seconds. At this point, the ambient light warning process for the left rear window is complete.
[0097] In this embodiment of the application, after pushing the prompt message to the client, the method further includes: listening for whether the user triggers a forced window raising command within a preset time window; if the user triggers a forced window raising command, controlling the window to perform an automatic window raising operation; or, if the user does not trigger a forced window raising command, periodically starting capacitance detection until the detected real-time capacitance change amplitude is less than the anti-pinch threshold for locking the car, or receiving a forced window raising command.
[0098] Specifically, after the pre-detection of window closing during locking and window closing identifies a potential obstacle risk at the window, a 10-second user operation monitoring window will automatically open. This window provides ample time for user intervention and scenario confirmation, catering to the user's needs to check the window status and manually confirm operations when leaving and locking the vehicle, preventing the system from over-protecting and causing the window to fail to close properly. During the time window, external control signals to the vehicle are continuously monitored, recognizing preset forced window closing commands such as pressing and holding the lock button on the remote key or confirming operations via the mobile app. These commands are defined as user manual confirmation that there is no safety hazard at the window and voluntarily relinquishing authorization for the front capacitor anti-pinch detection.
[0099] Upon detecting a valid forced window-raising command, the system automatically disables the capacitor anti-pinch detection logic under vehicle locking conditions, unlocks the window, and resumes the automatic window closing and vehicle locking process. This adapts to users' proactive operation needs in special scenarios, enhancing vehicle usability. If no user intervention command is detected after the entire 10-second preset time window, it is determined that the user has not promptly checked or detected any window obstruction risks. A periodic safety retest mechanism is then initiated, continuously monitoring the capacitance changes in the window area by repeatedly scanning the capacitance of all windows every 30 seconds.
[0100] This cyclic detection mechanism will continue to run until either of the following two termination conditions is met: First, if the real-time capacitance change amplitude falls below the anti-pinch threshold when locking the car, it means that the obstruction to the window has been removed and the risk has been completely eliminated, and the system will automatically exit the retest process and perform normal window closing; second, if a forced window closing command is received from the user midway, the system will respond to the manual authorization operation to complete the window closing, thus completely eliminating the risk of pinching accidents caused by limbs or foreign objects sticking out of the window when leaving the car and locking it.
[0101] It's important to note that by pre-measuring the real-time capacitance changes of each window when the car lock command is triggered, obstacle detection is performed before the window actually closes, identifying risks without physical contact or pinching, thus avoiding the response lag problem of traditional torque-based anti-pinch systems. Secondly, the capacitance change amplitude is compared with the anti-pinch threshold, directly preventing automatic window closing for windows with potential risks. Simultaneously, ambient lighting provides a visual reminder and a notification message is pushed, conveying the window risk status to the user leaving the vehicle through multiple channels. Then, a preset time window is set to listen for forced window closing commands, accommodating the user's autonomy in special scenarios. Finally, capacitance detection is periodically repeated without user intervention until the risk is eliminated or a forced command is received. This proactive protection in automatic window closing scenarios effectively reduces the safety hazard of accidental pinching of occupants' limbs when locking the car.
[0102] In the embodiments of this application, such as Figure 3 As shown, the method also includes: Step S301: When the vehicle triggers the automatic parking function, the corresponding anti-pinch risk threshold is updated using the adjustment coefficient corresponding to the automatic parking function to obtain the updated anti-pinch risk threshold.
[0103] In this embodiment, the automatic parking scenario is a special high-frequency window operation scenario. During parking, occupants frequently raise and lower the windows to observe surrounding parking spaces and obstacles, and their hands and limbs frequently enter and exit the window area. Compared to regular driving and parking scenarios, the probability of window pinching injury is significantly increased. Therefore, it is necessary to improve the sensor detection sensitivity by dynamically lowering the threshold. Based on the safety enhancement logic of the parking scenario, the preset threshold adjustment coefficient is set to an overall adjustment range of 30%, which can lower the high-risk judgment threshold of 0.7 under normal conditions to 0.5, thereby improving the anti-pinch recognition sensitivity.
[0104] Upon detecting activation signals for automatic parking functions such as APA and RPA, the system immediately retrieves preset parking scenario adjustment coefficients, updates the original vehicle's conventional anti-pinch risk threshold by multiplication, and replaces the original fixed judgment threshold, generating a new anti-pinch risk threshold adapted to the automatic parking scenario. This dynamic threshold adaptation mechanism breaks through the limitations of traditional fixed window anti-pinch thresholds, enhancing the recognition capability for hidden risks such as slow parking and slight physical approach. It can capture slight approach signals that conventional thresholds cannot detect, significantly improving the redundancy of window safety detection throughout the parking process and providing a judgment benchmark for subsequent refined safety management.
[0105] Step S302: Obtain the real-time anti-pinch risk coefficient of the car window during the automatic parking process.
[0106] In this embodiment, throughout the entire operation cycle of the automatic parking function, high-frequency acquisition and analysis of signals from each window capacitive sensor are continuously performed. Signal recognition logic under the enhanced parking detection mode is used throughout the process to extract capacitance change amplitude, capacitance change rate, and signal duration. Instead of relying on a simple threshold comparison method, a human limb proximity feature model is used to perform multi-dimensional similarity matching calculations on the real-time acquired capacitance features, respectively solving for amplitude matching similarity, change rate membership similarity, and duration deviation similarity.
[0107] By combining signal recognition weighting rules for parking scenarios, the three types of similarity are weighted, fused, and normalized to generate a real-time anti-pinch risk coefficient that continuously varies between 0 and 1. This risk coefficient can quantify the attributes, proximity distance, and movement state of obstacles in the window area during parking, effectively distinguishing between high-risk behaviors such as hand insertion and limb contact with minor environmental disturbances, and adapting to the risk characteristics of slow, small-amplitude limb contact in parking scenarios.
[0108] Step S303: Based on the relationship between the real-time anti-pinch risk coefficient and the updated anti-pinch risk threshold, perform the corresponding safety control operation.
[0109] In this embodiment, a multi-level safety control logic is constructed based on the updated parking anti-pinch threshold system to realize a parking safety protection mechanism with early warning priority and hierarchical control, which is adapted to the safety and convenience needs of parking scenarios.
[0110] When the real-time anti-pinch risk coefficient reaches the mild risk threshold of 0.3, a warning priority control strategy is immediately triggered, activating a continuous amber breathing light effect for warning. Simultaneously, the window raising and lowering speed is limited to 20% of the normal speed, and the one-touch window raising function is locked. This gentle reminder combined with speed limiting mitigates the risk of minor pinching injuries, balancing ease of operation with basic safety protection. When the real-time anti-pinch risk coefficient exceeds the medium-high risk threshold of 0.6, a forced safety pause mechanism is executed, immediately terminating all window raising actions. A pop-up notification is simultaneously triggered on the central control screen, locking window operation permissions. Window operation can only resume after user confirmation, completely eliminating high-risk pinching accidents. Once the automatic parking program completely exits, all speed limits, locks, and warning restrictions are automatically lifted, the anti-pinch threshold is restored to the original vehicle preset value, and the enhanced protection mode is exited, achieving differentiated safety control based on operating conditions.
[0111] It should be noted that when the vehicle enters automatic parking mode, the anti-pinch risk threshold is dynamically updated using the corresponding adjustment coefficient for parking. This adapts to the special usage environment of frequent window operations during parking, improving the recognition sensitivity of capacitive detection. Secondly, by acquiring the real-time anti-pinch risk coefficient of the window during parking, the risk of obstacles approaching the window can be continuously quantified, eliminating reliance on physical contact to trigger protection. Then, by combining the real-time risk coefficient with the updated anti-pinch risk threshold, corresponding safety control operations are executed, achieving tiered safety intervention while maintaining the convenience of window operation during parking. Finally, through condition-adaptive threshold adjustment and tiered control, the problem of fixed thresholds being difficult to adapt to parking scenarios is solved, effectively reducing the safety risk of accidental window pinching of occupants' limbs during automatic parking.
[0112] In one embodiment of this application, different levels are further divided for the anti-pinch risk threshold, realizing four-level visual early warning and window-linked control: When the anti-pinch risk coefficient is 0.22, which is in the first risk level of ≤0.3, the window rises at a normal speed, only logs are recorded, and the ambient light performs a brief, single, slow blue flash, indicating that the sensor is working normally and does not impose any restrictions on user operation.
[0113] When the anti-pinch risk factor rises to 0.44, falling into the second risk level of 0.3-0.6, the window will slow down to 30% of its normal speed before rising. If the risk persists for 3 seconds without being eliminated, it will stop and maintain its current position. The corresponding door ambient light will output a 1Hz amber breathing light, which will not actively obstruct the view and can be covered by normal user operation.
[0114] When the anti-pinch risk coefficient reaches 0.71, which is the third risk level of 0.6-0.8, the window will stop rising and remain in the current position. A second confirmation is required before the window can be raised again at 50% speed by pressing the window button briefly. The corresponding door ambient light will be constantly red, and the dashboard will have a synchronized yellow breathing light effect.
[0115] When the body gets closer, the anti-pinch risk factor reaches 0.89, entering the fourth risk level. The window stops rising and reverses to fall 150mm, locking all window raising operations until the risk is eliminated. The corresponding door ambient light flashes red rapidly at 3Hz, and the dashboard flashes red. You must receive a physical button press or voice confirmation command to force close the window before you can resume window operation.
[0116] This embodiment also provides an ambient lighting control device based on anti-pinch function for vehicle windows. This device is used to implement the above embodiments and preferred embodiments, and 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.
[0117] This embodiment provides an ambient lighting control device based on anti-pinch technology for vehicle windows, such as... Figure 4 As shown, it includes: Detection module 401 is used to detect the continuous capacitance signal generated by the vehicle window during operation; The calculation module 402 is used to calculate the anti-pinch risk coefficient of the vehicle window based on at least one signal feature of the continuous capacitance signal. The execution module 403 is used to control the ambient light associated with the window to perform a visual warning operation based on the anti-pinch risk coefficient.
[0118] In this embodiment, the calculation module 402 is specifically used to parse the real-time capacitance signal to obtain the instantaneous capacitance value and the signal duration; calculate the capacitance change amplitude based on the instantaneous capacitance value and the reference capacitance value, wherein the reference capacitance value is the capacitance value collected under the condition that there are no obstacles around the window; obtain whether there is a historical instantaneous capacitance value, wherein the historical instantaneous capacitance value is obtained from the historical capacitance signal before the real-time capacitance signal; if there is a historical instantaneous capacitance value, calculate the capacitance change rate based on the instantaneous capacitance value and the historical instantaneous capacitance value, and calculate the anti-pinch risk coefficient of the window based on the capacitance change amplitude, the capacitance change rate, and the signal duration; or, if there is no historical instantaneous capacitance value, calculate the anti-pinch risk coefficient of the window based on the capacitance change amplitude and the signal duration.
[0119] In this embodiment of the application, the calculation module 402 is specifically used to quantize the capacitance change amplitude, capacitance change rate, and signal duration respectively to obtain amplitude quantization value, change rate quantization value, and duration quantization value; and to calculate the anti-pinch risk coefficient of the car window based on the amplitude quantization value, change rate quantization value, and duration quantization value.
[0120] In this embodiment of the application, the calculation module 402 is specifically used to quantize the capacitance change amplitude and the signal duration respectively to obtain the amplitude quantization value and the duration quantization value; based on the amplitude quantization value and the duration quantization value, the anti-pinch risk coefficient of the car window is calculated.
[0121] In this embodiment, the calculation module 402 is specifically used to extract the reference capacitance change amplitude, the reference capacitance change rate range, and the reference signal duration from the human limb proximity feature database; perform difference matching between the capacitance change amplitude and the reference capacitance change amplitude to obtain a first similarity; calculate the membership degree between the capacitance change rate and the reference capacitance change rate range to obtain a second similarity; perform difference matching between the signal duration and the reference signal duration to obtain a third similarity; and calculate the anti-pinch risk coefficient of the vehicle window based on the first similarity, the second similarity, and the third similarity.
[0122] In this embodiment, the execution module 403 is specifically configured to: if the anti-pinch risk coefficient is greater than the first anti-pinch risk threshold, control the ambient light in the main warning area of the vehicle to illuminate in a first color and flash at a first frequency, and simultaneously drive the ambient light in the auxiliary guidance area of the vehicle to illuminate in the first color and flash at the first frequency; if the anti-pinch risk coefficient is less than or equal to the first anti-pinch risk threshold and greater than the second anti-pinch risk threshold, control the ambient light associated with the main warning area of the vehicle to illuminate in a second color and present a breathing light effect at a second frequency; if the anti-pinch risk coefficient is less than or equal to the second anti-pinch risk threshold, control the ambient light associated with the main warning area of the vehicle and the ambient light in the auxiliary guidance area to use a third color for constant illumination or single flashing.
[0123] In this embodiment, the execution module 403 is specifically configured to: if the anti-pinch risk coefficient is greater than the first anti-pinch risk threshold, drive the ambient light in the auxiliary guidance area of the vehicle to be illuminated in the first color and flash at the first frequency; if the anti-pinch risk coefficient is less than or equal to the first anti-pinch risk threshold and greater than the second anti-pinch risk threshold, drive the ambient light in the auxiliary guidance area of the vehicle to be illuminated in the second color and present a breathing light effect at the second frequency; if the anti-pinch risk coefficient is less than or equal to the second anti-pinch risk threshold, control the ambient light associated with the auxiliary guidance area of the vehicle to be constantly lit or flashing once using the third color.
[0124] In this embodiment of the application, the device further includes: a vehicle lock detection module, used to acquire the real-time capacitance change amplitude of each window when a vehicle lock command is detected; compare the real-time capacitance change amplitude of each window with the vehicle lock anti-pinch threshold; if there is a window with a real-time capacitance change amplitude greater than or equal to the vehicle lock anti-pinch threshold, then the corresponding window is prohibited from performing automatic window raising operation, the ambient light associated with the window is controlled to perform visual reminder, and a prompt message is sent; or, if there is no window with a real-time capacitance change amplitude greater than or equal to the vehicle lock anti-pinch threshold, then each window is controlled to perform automatic window raising operation.
[0125] In this embodiment of the application, the vehicle locking detection module is used to listen for whether the user triggers a forced window-raising command within a preset time window; if the user triggers a forced window-raising command, the module controls the window to perform an automatic window-raising operation; or, if the user does not trigger a forced window-raising command, the module periodically starts capacitance detection until the detected real-time capacitance change amplitude is less than the vehicle locking anti-pinch threshold, or a forced window-raising command is received.
[0126] In this embodiment of the application, the device further includes: a parking detection module, used to update the corresponding anti-pinch risk threshold using the adjustment coefficient corresponding to the automatic parking function when the vehicle triggers the automatic parking function, to obtain the updated anti-pinch risk threshold; to obtain the real-time anti-pinch risk coefficient of the window during the automatic parking process of the vehicle; and to perform corresponding safety control operations according to the relationship between the real-time anti-pinch risk coefficient and the updated anti-pinch risk threshold.
[0127] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 5 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).
[0128] 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.
[0129] 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.
[0130] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and application programs required for at least one function. 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, and these remote memories may 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.
[0131] 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.
[0132] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0133] 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.
[0134] 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 method for controlling ambient lighting based on anti-pinch technology for vehicle windows, characterized in that, The method includes: Detect the real-time capacitance signal generated by the car window during operation; The anti-pinch risk coefficient of the vehicle window is calculated based on at least one signal feature corresponding to the real-time capacitance signal. Based on the anti-pinch risk coefficient, the ambient light associated with the window is controlled to perform a visual warning operation.
2. The method according to claim 1, characterized in that, The step of calculating the anti-pinch risk coefficient of the vehicle window based on at least one signal feature corresponding to the real-time capacitance signal includes: The instantaneous capacitance value and signal duration are obtained by analyzing the real-time capacitance signal; The capacitance change amplitude is calculated based on the instantaneous capacitance value and the reference capacitance value, wherein the reference capacitance value is the capacitance value collected under the condition that there are no obstacles around the vehicle window. To determine whether a historical instantaneous capacitance value exists, wherein the historical instantaneous capacitance value is obtained from a historical capacitance signal preceding the real-time capacitance signal; If a historical instantaneous capacitance value exists, the capacitance change rate is calculated based on the instantaneous capacitance value and the historical instantaneous capacitance value. The anti-pinch risk coefficient of the window is then calculated based on the capacitance change amplitude, the capacitance change rate, and the signal duration. Alternatively, if no historical instantaneous capacitance value exists, the anti-pinch risk coefficient of the window is calculated based on the capacitance change amplitude and the signal duration.
3. The method according to claim 2, characterized in that, The calculation of the anti-pinch risk coefficient of the vehicle window based on the capacitance change amplitude, the capacitance change rate, and the signal duration includes: The amplitude of the capacitance change, the rate of change of the capacitance, and the duration of the signal are quantized respectively to obtain the quantized values of amplitude, rate of change, and duration. The anti-pinch risk coefficient of the vehicle window is calculated based on the amplitude quantization value, the rate of change quantization value, and the duration quantization value.
4. The method according to claim 2, characterized in that, The calculation of the anti-pinch risk coefficient of the vehicle window based on the capacitance change amplitude and the signal duration includes: The amplitude of the capacitance change and the duration of the signal are quantized respectively to obtain the amplitude quantization value and the duration quantization value; Based on the amplitude quantization value and the duration quantization value, the anti-pinch risk coefficient of the vehicle window is calculated.
5. The method according to claim 2, characterized in that, The calculation of the anti-pinch risk coefficient of the vehicle window based on the capacitance change amplitude, the capacitance change rate, and the signal duration includes: From the feature database of human limb proximity, the amplitude of reference capacitance change, the range of reference capacitance change rate, and the duration of reference signal are extracted respectively. The difference between the capacitance change amplitude and the reference capacitance change amplitude is matched to obtain the first similarity. The membership degree between the capacitance change rate and the reference capacitance change rate interval is calculated to obtain the second similarity. The third similarity is obtained by matching the difference between the duration of the signal and the duration of the reference signal. Based on the first similarity, the second similarity, and the third similarity, the anti-pinch risk coefficient of the vehicle window is calculated.
6. The method according to claim 1, characterized in that, The step of controlling the ambient light associated with the window to perform a visual warning operation based on the anti-pinch risk coefficient includes: If the anti-pinch risk coefficient is greater than the first anti-pinch risk threshold, then the ambient light in the main warning area of the vehicle is controlled to light up in the first color and flash at the first frequency. If the anti-pinch risk coefficient is less than or equal to the first anti-pinch risk threshold and greater than the second anti-pinch risk threshold, then the ambient light associated with the main warning area in the vehicle is controlled to light up in the second color and present a breathing light effect at the second frequency. If the anti-pinch risk coefficient is less than or equal to the second anti-pinch risk threshold, then the ambient light associated with the main warning area in the vehicle is controlled to be constantly lit or flash once using a third color.
7. The method according to claim 6, characterized in that, The method further includes: If the anti-pinch risk coefficient is greater than the first anti-pinch risk threshold, the ambient light in the auxiliary guidance area of the vehicle is driven to illuminate synchronously in the first color and flash at the first frequency. If the anti-pinch risk coefficient is less than or equal to the first anti-pinch risk threshold and greater than the second anti-pinch risk threshold, the ambient light in the auxiliary guidance area of the vehicle is driven to illuminate synchronously in the second color and present a breathing light effect according to the second frequency. If the anti-pinch risk coefficient is less than or equal to the second anti-pinch risk threshold, then the ambient light associated with the auxiliary guidance area in the vehicle is controlled to be constantly lit or flash once using a third color.
8. The method according to claim 1, characterized in that, After controlling the ambient light associated with the window to perform a visual warning operation based on the anti-pinch risk coefficient, the method further includes: When a vehicle locking command is detected, the real-time capacitance change amplitude of each window is obtained; Compare the real-time capacitance change amplitude of each of the aforementioned windows with the anti-pinch threshold when locking the vehicle; If there is a window whose real-time capacitance change amplitude is greater than or equal to the anti-pinch threshold for locking the car, then the corresponding window is prohibited from performing automatic window raising operation, the ambient light associated with the window is controlled to perform visual reminder, and a prompt message is sent; or, if there is no window whose real-time capacitance change amplitude is greater than or equal to the anti-pinch threshold for locking the car, then all windows are controlled to perform automatic window raising operation.
9. The method according to claim 8, characterized in that, After pushing the notification message to the client, the process also includes: Listen for whether the user triggers a forced window opening command within a preset time window; If the user triggers a forced window-raising command, the window will be controlled to automatically raise; or, if the user does not trigger a forced window-raising command, capacitance detection will be periodically activated until the detected real-time capacitance change amplitude is less than the anti-pinch threshold for locking the car, or a forced window-raising command is received.
10. The method according to claim 1, characterized in that, The method further includes: When the vehicle triggers the automatic parking function, the corresponding anti-pinch risk threshold is updated using the adjustment coefficient corresponding to the automatic parking function to obtain the updated anti-pinch risk threshold. Obtain the real-time anti-pinch risk coefficient of the window during the automatic parking process of the vehicle; Based on the relationship between the real-time anti-pinch risk coefficient and the updated anti-pinch risk threshold, corresponding safety control operations are performed.
11. A vehicle, characterized in that, include: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the method of any one of claims 1 to 10.
