Control method of vehicle window, electronic device and vehicle

By adjusting the duty cycle of the windows to compensate for the asynchrony caused by factors such as guide rail friction resistance and aging of sealing strips, the windows are ensured to rise and fall synchronously, thus improving the user experience.

CN122169692APending Publication Date: 2026-06-09GREAT WALL MOTOR CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GREAT WALL MOTOR CO LTD
Filing Date
2026-04-28
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

During the automatic raising and lowering process, the windows of the car have poor synchronization due to differences in factors such as the frictional resistance of the guide rail, the aging of the sealing strip, the distribution of glass quality, and assembly tolerances, which affects the user experience.

Method used

By determining the initial duty cycle, the reference window, and adjusting the window, the difference in opening is obtained. The duty cycle is then adjusted to synchronously control the window, ensuring that the window moves at different angles under the drive of the drive motor, thus compensating for the asynchrony caused by various factors.

Benefits of technology

It achieves synchronization during the automatic raising and lowering of the car windows, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122169692A_ABST
    Figure CN122169692A_ABST
Patent Text Reader

Abstract

This application provides a method, electronic device, and vehicle for controlling a vehicle window. In response to receiving a synchronous control command for the window, the method determines an initial duty cycle, a reference window, and an adjustable window. Based on the initial duty cycle, it drives the corresponding drive motors for the reference window and the adjustable window, obtaining a first reference opening degree for the reference window and a first adjustable opening degree for the adjustable window. When the absolute value of the first opening degree difference between the first adjustable opening degree and the first reference opening degree is greater than or equal to a preset opening degree difference, it determines an updated duty cycle based on the first opening degree difference and the initial duty cycle. Based on the updated duty cycle, it drives the corresponding drive motor for the adjustable window. This adjusts the actual duty cycle for the adjustable window while maintaining the actual duty cycle for the reference window. Thus, the actual duty cycles of the drive motors for the reference window and the adjustable window are different, which effectively compensates for the asynchrony in window movement caused by other factors, improving the synchronization of window control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle window control technology, and more particularly to a method for controlling vehicle windows, electronic equipment, and a vehicle. Background Technology

[0002] Synchronized window operation greatly enhances a vehicle's intelligence. However, in actual use, due to differences in factors such as frictional resistance of the window guide rails, aging of the sealing strips, glass quality distribution, motor performance variations, and assembly tolerances, the automatic operation of each window generally exhibits asynchronous operation, leading to a decline in the user experience. Summary of the Invention

[0003] In view of this, the purpose of this application is to propose a method for controlling a vehicle window, an electronic device, and a vehicle to solve the problem of asynchronous operation of the vehicle window during automatic raising and lowering.

[0004] To achieve the above objectives, the first aspect of this application provides a method for controlling a vehicle window, comprising:

[0005] In response to receiving a synchronous control window command, determine the initial duty cycle, the reference window, and the adjustable window; Drive the drive motors corresponding to the reference window and the adjustment window based on the initial duty cycle, and obtain the first reference opening degree of the reference window and the first adjustment opening degree of the adjustment window; In response to the absolute value of the first opening difference between the first adjusted opening degree and the first reference opening degree being greater than or equal to a preset opening difference, an updated duty cycle is determined based on the first opening difference and the initial duty cycle; The drive motor corresponding to the adjusted window is driven based on the updated duty cycle until the reference window and the adjusted window meet the preset stopping conditions.

[0006] Optionally, determining the initial duty cycle, the reference window, and the adjustable window includes: The reference window and the adjustable window are determined based on the synchronous control window command; Obtain the initial window opening of the reference window and the adjustable window; The initial duty cycle is determined based on the initial window opening.

[0007] Optionally, determining the updated duty cycle based on the first opening difference and the initial duty cycle includes: Based on the first opening difference and the first adjusted opening, the first corrected duty cycle is determined; In response to the first opening difference being positive and the reference window rising, or the first opening difference being negative and the reference window falling, the sum of the initial duty cycle and the first modified duty cycle is determined as the updated duty cycle; Alternatively, in response to the first opening difference being negative and the reference window rising, or the first opening difference being positive and the reference window falling, the difference between the initial duty cycle and the first corrected duty cycle is determined as the updated duty cycle.

[0008] Optionally, determining the first corrected duty cycle based on the first opening difference and the first adjusted opening includes: In response to the first adjustment opening being within the normal opening range, a first correction duty cycle is determined based on the first opening difference and a first preset correction coefficient, wherein the normal opening range is the opening range formed by the first preset opening and the second preset opening, and the first preset opening is less than the second preset opening; Alternatively, in response to the first adjustment opening being less than the first preset opening or greater than the second preset opening, a first correction duty cycle is determined based on the first opening difference and a second preset correction coefficient, wherein the second preset correction coefficient is less than the first preset correction coefficient.

[0009] Optionally, the step of driving the drive motor corresponding to the adjusted window based on the updated duty cycle until the reference window and the adjusted window meet the preset stopping conditions includes: Obtain the second reference opening of the reference window and the second adjustment opening of the adjustment window; In response to the absolute value of the second opening difference between the second adjustment opening and the second reference opening being less than the preset opening difference, and the second reference opening and the second adjustment opening reaching the target stop opening range, it is determined that the reference window and the adjustment window meet the preset stop conditions, and the drive motor corresponding to the reference window and the drive motor corresponding to the adjustment window are stopped. Alternatively, in response to the absolute value of the second opening difference between the second adjustment opening and the second reference opening being greater than or equal to a preset opening difference, a correction strategy is periodically executed and a third reference opening of the reference window and a third adjustment opening of the adjustment window are determined. When the third reference opening and the third adjustment opening meet a preset synchronization condition, it is determined that the reference window and the adjustment window meet a preset stop condition, and the drive motor corresponding to the reference window and the drive motor corresponding to the adjustment window are stopped.

[0010] Optionally, the implementation correction strategy includes: Based on the second opening difference, the second adjusted opening, the second reference opening, and the updated duty cycle, the adjusted window duty cycle and the reference window duty cycle are determined; The drive motor corresponding to the adjusted window is driven based on the duty cycle of the adjusted window, and the drive motor corresponding to the reference window is driven based on the duty cycle of the reference window. Obtain the third reference opening of the reference window and the third adjustment opening of the adjustment window.

[0011] Optionally, determining the adjusted window duty cycle and the reference window duty cycle based on the second opening difference, the second adjusted opening, the second reference opening, and the updated duty cycle includes: In response to the second reference opening degree reaching the target stop opening degree range, the preset waiting duty cycle is determined as the reference window duty cycle; or, in response to the second reference opening degree not reaching the target stop opening degree range, the initial duty cycle is determined as the reference window duty cycle. The second adjusted duty cycle is determined based on the second adjusted opening degree; In response to the second opening difference being positive and the reference window rising, or the first opening difference being negative and the reference window falling, the sum of the updated duty cycle and the second corrected duty cycle is determined as the adjusted window duty cycle; or, in response to the second opening difference being negative and the reference window rising, or the first opening difference being positive and the reference window falling, the difference between the updated duty cycle and the second corrected duty cycle is determined as the adjusted window duty cycle.

[0012] Optionally, the method further includes: In response to the third reference opening degree and the third adjusted opening degree reaching the target stop opening degree range, and the absolute value of the third opening degree difference between the third adjusted opening degree and the third reference opening degree being less than the preset opening degree difference, it is determined that the third reference opening degree and the third adjusted opening degree meet the preset synchronization conditions.

[0013] Based on the same concept, a second aspect of this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the method as described in any of the first aspects above.

[0014] Based on the same concept, a third aspect of this application provides a vehicle that includes the electronic equipment described in the second aspect above.

[0015] As can be seen from the above, the window control method, electronic device, and vehicle provided in this application, in response to receiving a synchronous window control command, determine an initial duty cycle, a reference window, and an adjustable window; drive the drive motors corresponding to the reference window and the adjustable window based on the initial duty cycle, and obtain the first reference opening degree of the reference window and the first adjustment opening degree of the adjustable window. Thus, when the same initial duty cycle is initially used to drive the drive motors of the reference window and the adjustable window, if the absolute value of the difference between the first adjustment opening degree and the first reference opening degree is greater than or equal to a preset opening degree difference, indicating that the lifting and lowering of the reference window and the adjustable window are not synchronized, based on the first... The opening difference and the initial duty cycle determine the updated duty cycle; based on the updated duty cycle, the drive motor corresponding to the adjusted window is driven, thus adjusting the actual duty cycle corresponding to the adjusted window, while the actual duty cycle corresponding to the reference window remains unchanged. In this way, the actual duty cycles of the drive motors driving the reference window and the adjusted window are different, which in turn makes the actual movement range of the reference window and the adjusted window different under the drive of the drive motor. This difference in actual movement range can just compensate for the asynchrony of the window movement range caused by other factors, thereby ensuring that the reference window and the adjusted window can be raised and lowered synchronously, improving the synchronization of window control. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating the method for controlling a vehicle window according to an embodiment of this application; Figure 2 This is a schematic diagram of a vehicle window control device according to an embodiment of this application; Figure 3 This is a schematic diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0019] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0020] Many vehicles now feature synchronized window control. This function allows multiple windows to perform the same action simultaneously with a single operation, primarily achieved through the following methods: One-button linkage with remote key: Press and hold the lock button on the car key, and all windows will close simultaneously.

[0021] Physical button combination control: The driver can activate the simultaneous raising and lowering of all four windows by using the master control switch on the window panel or by pressing and holding a specific button (such as the driver's side window raising button) for several seconds.

[0022] Smart settings on the central control screen: In the "Vehicle Settings" menu on the central control screen, find the "Window" option to turn on or off functions such as "One-touch power window lift" and "Automatic window closing when locking the car" to achieve personalized settings.

[0023] Automatic response in special scenarios: Some vehicles will also trigger the windows to close synchronously when the automatic car wash mode is activated or when rain is detected, which is a type of advanced intelligent control. Alternatively, the windows can be triggered to rise and fall synchronously via voice control commands such as "one-click to raise and lower all windows".

[0024] Synchronized window operation greatly enhances a vehicle's intelligence. However, in actual use, due to differences in factors such as frictional resistance of the window guide rails, aging of the sealing strips, glass quality distribution, motor performance variations, and assembly tolerances, the automatic operation of each window generally exhibits asynchronous operation, leading to a decline in the user experience.

[0025] Based on this, see Figure 1 This application provides a method for controlling vehicle windows, executed by the vehicle's electronic control unit (ECU), specifically including the following steps: Step S100: In response to receiving the synchronous control window command, determine the initial duty cycle, the reference window, and the adjustment window; Step S200: Drive the drive motors corresponding to the reference window and the adjustment window based on the initial duty cycle, and obtain the first reference opening degree of the reference window and the first adjustment opening degree of the adjustment window; Step S300: In response to the absolute value of the first opening difference between the first adjusted opening degree and the first reference opening degree being greater than or equal to the preset opening difference, determine the updated duty cycle based on the first opening difference and the initial duty cycle; Step S400: Drive the drive motor corresponding to the adjusted window based on the updated duty cycle until the reference window and the adjusted window meet the preset stopping conditions.

[0026] Specifically, when a user presses and holds the lock button on the car key, presses the master control switch on the window panel, presses and holds a specific button (such as the driver's side window lift button), clicks the "one-click lift all windows" button on the central control screen, or issues a voice command to "one-click synchronized lift all windows", it means that the user has issued a synchronized control command for the windows.

[0027] Alternatively, in special scenarios, such as when some vehicles activate the automatic car wash mode, the "one-click all windows up" command will be automatically triggered, which means that the vehicle system automatically issues a synchronous control command for the windows.

[0028] It is worth noting that the "synchronous window control function" configured on existing vehicles adjusts at least two or all windows from the same initial opening degree to the same final opening degree. That is, it adjusts them from the same fully open state to the same fully closed state, or from the same fully closed state to the same fully open state.

[0029] When the electronic control unit receives a synchronized window control command, it indicates that at least two windows need to be controlled simultaneously to rise or fall. Therefore, based on the synchronized window control command, the windows that need to be controlled synchronously are determined. There are at least two windows that can be controlled synchronously, but there can also be three, four, etc.

[0030] Of the windows requiring synchronized control, one is designated as the reference window, and all other windows requiring synchronized control are designated as adjustment windows. In all subsequent adjustments, the opening degree of the reference window serves as a reference, and the opening degree of the adjustment windows is adjusted based on this reference window's opening degree.

[0031] Then, based on the opening degrees of the reference window and the adjustable window, and considering whether the synchronous control window command represents controlling the window to rise or fall, different initial duty cycles are determined. The initial duty cycle is the duty cycle of the drive motor corresponding to the reference window and the drive motor corresponding to the adjustable window that starts driving under the current conditions.

[0032] After determining the initial duty cycle, the drive motor corresponding to the reference window and the drive motor corresponding to the adjustment window are driven based on the initial duty cycle. That is, the initial duty cycle of the drive motor driving the reference window and the drive motor driving the adjustment window are the same at the beginning, that is, the drive motors are controlled to rotate with the same driving force.

[0033] In theory, when the drive motor is controlled to rotate with the same driving force, the corresponding window will rise or fall to the same degree, thus enabling synchronous control of the base window and the adjustable window.

[0034] However, in actual use, due to differences in factors such as frictional resistance of each window guide rail, aging degree of sealing strip, glass quality distribution, motor performance dispersion and assembly tolerance, even under the same driving force, the degree to which each window glass rises or falls is different.

[0035] Therefore, to ensure that the actual movement ranges of the reference window and the adjustment window are the same under the initial duty cycle, a first reference opening of the reference window and a first adjustment opening of the adjustment window are obtained. The first reference opening is the current opening of the reference window at the time of acquisition, and the first adjustment opening is the current opening of the adjustment window at the time of acquisition.

[0036] Furthermore, when acquiring the first reference opening degree and the first adjustment opening degree, the current Hall pulse count of the drive motor corresponding to the reference window and the adjustment window is acquired first. Based on the current Hall pulse count, the pre-calibrated maximum opening degree of the window, and the maximum Hall pulse count corresponding to the pre-calibrated maximum opening degree, the first reference opening degree and the first adjustment opening degree are determined.

[0037] For example, the ratio of the pre-calibrated maximum opening degree of the vehicle window to the maximum number of Hall pulses corresponding to the pre-calibrated maximum opening degree is determined as the first ratio, and the product of the current number of Hall pulses and the first ratio is determined as the current opening degree, wherein the current opening degree is the first reference opening degree or the first adjustment opening degree.

[0038] In addition, to eliminate sensor signal jitter or momentary interference, the average value of three consecutively acquired relevant values ​​can be determined as the first reference opening or the first adjustment opening, ensuring the stability and reliability of the opening position data.

[0039] A first opening difference is determined between the first adjusted opening degree and the first reference opening degree, and then compared with a preset opening difference. The preset opening difference is an allowable opening difference value for the window determined based on historical testing experience.

[0040] When the absolute value of the difference between the first adjusted opening degree and the first reference opening degree is less than the preset opening degree difference, it indicates that the difference between the first adjusted opening degree and the first reference opening degree is within the allowable range. When the difference is within the allowable range, the user cannot visually perceive the asynchrony of the window, and it will not reduce the user's experience. For example, the preset opening degree difference is 3mm, 2mm, or 1.5mm, etc.

[0041] When the absolute value of the difference between the first adjustment opening and the first reference opening is less than the preset opening difference, it means that the difference between the first adjustment opening and the first reference opening is within the allowable range. When the difference is within the allowable range, the user cannot visually observe the asynchrony of the car window, and it will not reduce the user's experience.

[0042] When the absolute value of the difference between the first adjustment opening and the first reference opening is greater than or equal to the preset opening difference, it means that the difference between the first adjustment opening and the first reference opening is not within the allowable range. When the difference is not within the allowable range, the user can visually observe the asynchrony of the car window, which will reduce the user experience.

[0043] Therefore, it is necessary to adjust the synchronization of the window control. The updated duty cycle is determined based on the first opening difference and the initial duty cycle. That is, the output duty cycle of the drive motor corresponding to the window is adjusted based on the current first opening difference and the initial duty cycle. The adjusted duty cycle is the updated duty cycle.

[0044] The drive motor corresponding to the adjusted window is driven based on the updated duty cycle until the reference window and the adjusted window meet the preset stopping conditions. The preset stopping conditions are that the opening degrees of the reference window and the adjusted window synchronously reach the target opening degree corresponding to the synchronous control window command.

[0045] For example, when the synchronous control command for the car window is a one-touch window raising command, the corresponding target opening degree is the opening degree corresponding to when all the car windows are closed.

[0046] The drive motor corresponding to the adjusted window is driven based on the updated duty cycle. Thus, the drive motor corresponding to the adjusted window is driven based on the adjusted duty cycle, while the drive motor corresponding to the reference window continues to be driven based on the initial duty cycle. In this way, the actual duty cycles of the drive motors driving the reference window and the adjusted window are different, resulting in different actual rotational speeds for the drive motors of the reference window and the adjusted window. Consequently, the actual movement range of the reference window and the adjusted window under the drive of the motors is different. This difference in actual movement range can compensate for the differences in window movement range caused by variations in the frictional resistance of the window guide rails, the aging degree of the sealing strips, and the performance dispersion of the motors, thereby ensuring that the reference window and the adjusted window can be raised and lowered synchronously, improving the synchronicity of window control.

[0047] In this application, initially, the same initial duty cycle is used to drive the drive motors of the reference window and the adjustable window. When it is determined that the absolute value of the first opening difference between the first adjustable opening and the first reference opening is greater than or equal to a preset opening difference, it indicates that the difference between the first adjustable opening and the first reference opening is not within the allowable range, and the synchronization of the window control needs to be adjusted. An updated duty cycle is determined based on the first opening difference and the initial duty cycle, and the drive motor corresponding to the adjustable window is driven based on the updated duty cycle. In this way, the actual duty cycle corresponding to the adjustable window is adjusted, while the actual duty cycle corresponding to the reference window is adjusted. The duty cycle remains constant, resulting in different actual duty cycles for the drive motors of the reference window and the adjusting window. This leads to different actual rotational speeds for the reference window drive motor and the adjusting window drive motor, and consequently, different actual movement ranges for the reference window and the adjusting window under the drive of the motors. This difference in actual movement range can compensate for the asynchrony in window movement range caused by differences in frictional resistance of the window guide rails, aging of the sealing strips, and motor performance variations, thus ensuring that the reference window and the adjusting window can be raised and lowered synchronously, improving the synchronicity of window control.

[0048] In some embodiments, determining the initial duty cycle, the reference window, and the adjusted window includes: The reference window and the adjustable window are determined based on the synchronous control window command; Obtain the initial window opening of the reference window and the adjustable window; The initial duty cycle is determined based on the initial window opening.

[0049] Specifically, based on the synchronized window control command, the windows that need to be controlled synchronously are determined. There are at least two windows that need synchronous control, but can also be three, four, etc. Of the windows requiring synchronous control, one is designated as the reference window, and all other windows requiring synchronous control are designated as adjustment windows. In all subsequent adjustments, the opening degree of the reference window serves as a reference, and the opening degree of the adjustment windows is adjusted based on the opening degree of the reference window.

[0050] For example, the driver's side window can typically be designated as the reference window, and the other windows as adjustable windows. When the driver's side window signal is faulty or it is not a window that needs to be controlled synchronously, the passenger side window can be designated as the reference window, and the other windows as adjustable windows.

[0051] Then, the initial window opening of the reference window and the adjustable window is obtained. The initial window opening is the opening before the window is adjusted. For example, the initial window opening can be determined based on the obtained initial Hall pulse count.

[0052] Based on the initial window opening, an initial duty cycle is determined from a preset duty cycle library. This preset duty cycle library represents a mapping between preset initial window openings and initial duty cycles. This mapping is based on historical testing experience or is a system default setting before the vehicle leaves the factory. Different initial window openings will correspond to different initial duty cycles.

[0053] For example, suppose the opening degree corresponding to the window being lowered to the lowest point is the calibrated maximum opening degree (for example, it can be 400mm), and the opening degree corresponding to the window being raised to the highest point is the calibrated minimum opening degree (for example, it can be 0mm).

[0054] There are two possibilities for the initial window opening position: either it is within the normal opening range, or it is not within the normal opening range.

[0055] The normal opening range is the opening range formed by a first preset opening and a second preset opening, wherein the first preset opening is smaller than the second preset opening, the first preset opening is larger than the calibrated minimum opening, and the second preset opening is smaller than the calibrated maximum opening. For example, the first preset opening is 120mm and the second preset opening is 280mm. Alternatively, the first preset opening is 100mm and the second preset opening is 300mm.

[0056] When the initial window opening is greater than the second preset opening or less than the first preset opening (i.e., greater than 280mm or less than 120mm), the initial window opening is not within the normal opening range. At this time, the window is close to the control endpoint area. Therefore, the corresponding initial duty cycle is 50% or 45%, etc., to ensure that the drive motor drives more smoothly in the endpoint area and can effectively suppress the inertial impact of the window and avoid hard contact with the limiter. The specific value of this initial duty cycle has been verified by actual vehicle testing. It can not only ensure sufficient driving force to complete the final stroke, but also greatly reduce the impact risk.

[0057] When the initial window opening is in the normal opening range (i.e., 120mm~280mm), the initial duty cycle is 65% or 60% when the window is raised and 70% or 75% when the window is lowered, so that the window can be raised or lowered at a relatively fast speed.

[0058] In this application, different initial duty cycles are determined based on different initial window openings, so that the reference window and the window can be driven and adjusted based on a suitable initial duty cycle at the beginning, which ensures the smoothness of window control and reduces the risk of impact.

[0059] In some embodiments, determining the updated duty cycle based on the first opening difference and the initial duty cycle includes: Based on the first opening difference and the first adjusted opening, the first corrected duty cycle is determined; In response to the first opening difference being positive and the reference window rising, or the first opening difference being negative and the reference window falling, the sum of the initial duty cycle and the first modified duty cycle is determined as the updated duty cycle; Alternatively, in response to the first opening difference being negative and the reference window rising, or the first opening difference being positive and the reference window falling, the difference between the initial duty cycle and the first corrected duty cycle is determined as the updated duty cycle.

[0060] Specifically, based on the first opening difference and the first adjusted opening, a first corrected duty cycle is determined, wherein the first corrected duty cycle is the determined range of the duty cycle that needs to be adjusted.

[0061] When the first opening difference is positive and the reference window rises, it indicates that the first adjustment opening is greater than the first reference opening during the window's rise. This means that the adjustment window rises more slowly while the reference window rises more quickly. Therefore, the sum of the initial duty cycle and the first corrected duty cycle is determined as the updated duty cycle, making the updated duty cycle greater than the initial duty cycle. In this way, when the drive motor of the adjustment window is driven based on the updated duty cycle, the adjustment window can be driven to rise faster, thereby achieving synchronization between the adjustment window and the reference window.

[0062] When the first opening difference is negative and the reference window descends, it indicates that the first adjustment opening is less than the first reference opening during the window descent process. This means that the adjustment window descends more slowly while the reference window descends more quickly. Therefore, the sum of the initial duty cycle and the first corrected duty cycle is determined as the updated duty cycle, making the updated duty cycle greater than the initial duty cycle. In this way, when the drive motor of the adjustment window is driven based on the updated duty cycle, the adjustment window can be driven to descend faster, thereby achieving synchronization between the adjustment window and the reference window.

[0063] When the first opening difference is negative and the reference window rises, it indicates that the first adjustment opening is less than the first reference opening during the window's rise. This means that the adjustment window rises faster than the reference window. Therefore, the difference between the initial duty cycle and the first corrected duty cycle is determined as the updated duty cycle, making the updated duty cycle less than the initial duty cycle. In this way, when the drive motor for adjusting the window is driven based on the updated duty cycle, the adjustment window can rise more slowly, thereby achieving synchronization between the adjustment window and the reference window.

[0064] When the first opening difference is positive and the reference window descends, it indicates that the first adjustment opening is greater than the first reference opening during the window descent process. This means that the adjustment window descends faster than the reference window. Therefore, the difference between the initial duty cycle and the first corrected duty cycle is determined as the updated duty cycle, making the updated duty cycle smaller than the initial duty cycle. In this way, when the drive motor of the adjustment window is driven based on the updated duty cycle, the adjustment window can be driven to descend more slowly, thereby achieving synchronization between the adjustment window and the reference window.

[0065] It is worth noting that in this application, there may be multiple adjustable windows, and the same operation is performed for each adjustable window.

[0066] In this application, different methods are used to determine the update duty cycle based on different first opening differences and different window heights, so that the finally determined update duty cycle can effectively adjust the corresponding adjustable window.

[0067] In some embodiments, determining the first corrected duty cycle based on the first opening difference and the first adjusted opening includes: In response to the first adjustment opening being within the normal opening range, a first correction duty cycle is determined based on the first opening difference and a first preset correction coefficient, wherein the normal opening range is the opening range formed by the first preset opening and the second preset opening, and the first preset opening is less than the second preset opening; Alternatively, in response to the first adjustment opening being less than the first preset opening or greater than the second preset opening, a first correction duty cycle is determined based on the first opening difference and a second preset correction coefficient, wherein the second preset correction coefficient is less than the first preset correction coefficient.

[0068] Specifically, when the first adjustment opening is within the normal opening range, it indicates that the first adjustment opening has not yet approached the endpoint region. At this time, the duty cycle can be adjusted by a larger magnitude. Therefore, the first corrected duty cycle is determined based on the first opening difference and the first preset correction coefficient. Specifically, the product of the first opening difference and the first preset correction coefficient is determined as the first corrected duty cycle.

[0069] When the first adjustment opening is less than the first preset opening or greater than the second preset opening, it indicates that the first adjustment opening is approaching the endpoint region. At this time, it is not advisable to make a large adjustment to the duty cycle to avoid collision or instability. Therefore, the first corrected duty cycle is determined based on the first opening difference and the second preset correction coefficient. Specifically, the product of the first opening difference and the second preset correction coefficient is determined as the first corrected duty cycle.

[0070] Both the second preset correction coefficient and the first preset correction coefficient are preset based on historical testing experience. The second preset correction coefficient is smaller than the first preset correction coefficient, which makes the adjustment of the duty cycle more subtle and gentle when approaching the end area, ensuring that it does not affect the user experience.

[0071] For example, the first preset correction coefficient can be 1.0% and the second preset correction coefficient can be 0.5%; or, the first preset correction coefficient can be 2.0% and the second preset correction coefficient can be 1.0%.

[0072] In this application, different first correction duty cycles are determined based on the different positions of the first adjustment opening, thereby improving the accuracy of the determined first correction duty cycle. This allows for the accurate and effective determination of a suitable update duty cycle based on the first correction duty cycle, ensuring that the duty cycle can be adjusted to an appropriate range. This not only improves the synchronization of window control but also avoids excessive adjustment of the duty cycle, which could lead to collisions or instability.

[0073] In some embodiments, driving the drive motor corresponding to the adjusted window based on the updated duty cycle until the reference window and the adjusted window meet a preset stopping condition includes: Obtain the second reference opening of the reference window and the second adjustment opening of the adjustment window; In response to the absolute value of the second opening difference between the second adjustment opening and the second reference opening being less than the preset opening difference, and the second reference opening and the second adjustment opening reaching the target stop opening range, it is determined that the reference window and the adjustment window meet the preset stop conditions, and the drive motor corresponding to the reference window and the drive motor corresponding to the adjustment window are stopped. Alternatively, in response to the absolute value of the second opening difference between the second adjustment opening and the second reference opening being greater than or equal to a preset opening difference, a correction strategy is periodically executed and a third reference opening of the reference window and a third adjustment opening of the adjustment window are determined. When the third reference opening and the third adjustment opening meet a preset synchronization condition, it is determined that the reference window and the adjustment window meet a preset stop condition, and the drive motor corresponding to the reference window and the drive motor corresponding to the adjustment window are stopped.

[0074] Specifically, the second reference opening degree and the second adjustment opening degree are obtained based on the updated duty cycle driving the drive motor corresponding to the adjusted window. Therefore, for Judging by the second reference opening degree and the second adjustment opening degree, it can be determined whether the adjusted window is synchronized with the reference window after the window is adjusted based on the updated duty cycle.

[0075] When the absolute value of the difference between the second adjustment opening degree and the second reference opening degree is less than the preset opening degree difference, and the second reference opening degree and the second adjustment opening degree reach the target stop opening degree range, it indicates that the opening degree difference between the adjustment window and the reference window is small and within the allowable range, and the opening degrees of both the reference window and the adjustment window have reached the target stop opening degree range. At this time, it is determined that the reference window and the adjustment window meet the preset stop conditions, and the drive motors corresponding to the reference window and the adjustment window are stopped. At this time, the synchronous control of the adjustment window and the reference window is completed.

[0076] The target stop opening range is the range within which the window rises or falls to the target opening area as indicated by the control command.

[0077] For example, the opening degree corresponding to the window being lowered to its lowest point is the calibrated maximum opening degree (for example, 400mm), and the opening degree corresponding to the window being raised to its highest point is the calibrated minimum opening degree (for example, 0mm). When the window is raised, the corresponding target stop opening degree range is 0mm~2mm, or 0mm~3mm. When the window is lowered, the corresponding target stop opening degree range is 398mm~400mm, or 396mm~400mm.

[0078] When the absolute value of the difference between the second adjustment opening degree and the second reference opening degree is greater than or equal to the preset opening degree difference, it indicates that the opening degree difference between the adjustment window and the reference window is large and not within the allowable range. It is necessary to continue to correct the duty cycle of the adjustment window. Therefore, the correction strategy is periodically executed and the third reference opening degree of the reference window and the third adjustment opening degree of the adjustment window are determined. When the third reference opening degree and the third adjustment opening degree meet the preset synchronization conditions, it is determined that the reference window and the adjustment window meet the preset stop conditions, and the drive motor corresponding to the reference window and the drive motor corresponding to the adjustment window are stopped.

[0079] The preset synchronization condition is a condition that the preset reference window and the actual opening degree of the adjusted window are kept synchronized.

[0080] The periodic execution refers to re-inquiring about information after a preset time interval. The preset time interval can be 10ms or 15ms, etc.

[0081] In this application, after driving the drive motor corresponding to the adjusted window based on the updated duty cycle, the synchronization between the reference window and the adjusted window is verified and judged. If it is determined that the reference window and the adjusted window are not synchronized, the correction strategy needs to be executed periodically to continuously correct the duty cycle of the adjusted window until the reference window and the adjusted window meet the preset stopping conditions, thus ensuring that the reference window and the adjusted window are controlled synchronously when finally stopped, thereby improving the synchronization of window control.

[0082] In some embodiments, the implementation of the correction strategy includes: Based on the second opening difference, the second adjusted opening, the second reference opening, and the updated duty cycle, the adjusted window duty cycle and the reference window duty cycle are determined; The drive motor corresponding to the adjusted window is driven based on the duty cycle of the adjusted window, and the drive motor corresponding to the reference window is driven based on the duty cycle of the reference window. Obtain the third reference opening of the reference window and the third adjustment opening of the adjustment window.

[0083] Specifically, when implementing the correction strategy, the adjusted window duty cycle and the reference window duty cycle are first determined based on the second opening difference, the second adjusted opening, the second reference opening, and the updated duty cycle. The adjusted window duty cycle is the corrected duty cycle corresponding to the adjusted window, and the reference window duty cycle is the corrected duty cycle corresponding to the reference window.

[0084] Then, based on the duty cycle of the adjusted window, the drive motor corresponding to the adjusted window is driven, and based on the duty cycle of the reference window, the drive motor corresponding to the reference window is driven. This is done so that the adjusted window and the reference window are driven based on the adjusted duty cycle. This process continues to drive the drive motors of the reference window and the adjusted window based on different actual duty cycles. As a result, the actual movement range of the reference window and the adjusted window is different under the drive of the drive motor. This difference in actual movement range can compensate for the asynchrony of the window movement range caused by other factors, thereby ensuring that the reference window and the adjusted window can be raised and lowered synchronously, improving the synchronicity of window control.

[0085] Furthermore, after driving the drive motors of the reference window and the adjustment window based on different actual duty cycles, the third reference opening degree of the reference window and the third adjustment opening degree of the adjustment window are obtained, and it is determined whether the third reference opening degree and the third adjustment opening degree meet the preset synchronization conditions.

[0086] If the third reference opening degree and the third adjustment opening degree obtained by executing the correction strategy do not meet the preset synchronization conditions, it means that the control of the adjustment window and the reference window is still out of sync. Therefore, it is necessary to continue to execute the correction strategy after a preset time interval.

[0087] When it is determined that the third reference opening degree and the third adjustment opening degree obtained by executing the correction strategy meet the preset synchronization conditions, it indicates that the control of the adjustment window and the reference window is synchronized. Then, it is determined that the reference window and the adjustment window meet the preset stop conditions, and the drive motors corresponding to the reference window and the adjustment window are stopped.

[0088] In this application, each execution of the correction strategy involves adjusting the duty cycle of the vehicle being adjusted. By periodically executing the correction strategy, the duty cycle of the vehicle being adjusted can be continuously adjusted periodically, ensuring that the control of the adjusted window and the reference window is synchronized under the drive of the final adjusted duty cycle, thereby improving the synchronicity of window control.

[0089] In some embodiments, determining the adjusted window duty cycle and the reference window duty cycle based on the second opening difference, the second adjusted opening, the second reference opening, and the updated duty cycle includes: In response to the second reference opening degree reaching the target stop opening degree range, the preset waiting duty cycle is determined as the reference window duty cycle; or, in response to the second reference opening degree not reaching the target stop opening degree range, the initial duty cycle is determined as the reference window duty cycle. The second adjusted duty cycle is determined based on the second adjusted opening degree; In response to the second opening difference being positive and the reference window rising, or the first opening difference being negative and the reference window falling, the sum of the updated duty cycle and the second corrected duty cycle is determined as the adjusted window duty cycle; Alternatively, in response to the second opening difference being negative and the reference window rising, or the first opening difference being positive and the reference window falling, the difference between the updated duty cycle and the second corrected duty cycle is determined as the window duty cycle to be adjusted.

[0090] Specifically, when the second reference opening degree reaches the target stop opening degree range, it means that the actual opening degree of the reference window has reached the target stop opening degree range. However, in order to ensure the control synchronization between the reference window and the adjustment window, the drive motor of the reference window will not be stopped. Instead, the preset waiting duty cycle will be determined as the duty cycle of the reference window.

[0091] The preset waiting duty cycle is a duty cycle determined based on historical testing experience that allows the window to be kept in a low-speed maintenance mode (also known as a waiting state, i.e., neither rising nor falling).

[0092] For example, the preset waiting duty cycle can be 35%.

[0093] In actual testing, driving the reference window with a preset waiting duty cycle can keep the reference window in a low-speed maintenance mode, keeping the reference window in a stable waiting state, providing a time window for other windows to "catch up". At the same time, it can maintain a certain driving force to overcome the slight sliding caused by the window's own weight or wind pressure, and can avoid the window "slowly falling" due to motor power failure.

[0094] Real-vehicle testing shows that when the actual duty cycle is 30%, the window may slowly slide down (>0.5mm / s) due to excessive friction of the sealing strip; when the actual duty cycle is 35%, the window glass is completely still, with no displacement, vibration, or noise; when the actual duty cycle is 40%, the window moves slightly, which may cause users to mistakenly believe that it is "not closed properly". Therefore, an actual duty cycle of 35% is the optimal balance point, and the actual test shows that it can maintain a stable position for more than 10 seconds without deviation.

[0095] Alternatively, if the second reference opening degree does not reach the target stop opening degree range, it means that the reference window has not yet reached the target stop opening degree range. In this case, the initial duty cycle is determined as the reference window duty cycle, and the reference window continues to be driven based on the initial duty cycle.

[0096] That is, during the entire window control process, the duty cycle of the reference window will only be adjusted when the absolute value of the difference between the second adjustment opening degree and the second reference opening degree is greater than or equal to the preset opening degree difference, and the second reference opening degree has not reached the target stop opening degree range, so that the reference window is in a low-speed waiting state. In other cases, the duty cycle of the reference window remains unchanged, and only the duty cycle of the adjustment window is corrected.

[0097] A second corrected duty cycle is determined based on the second adjusted opening degree. Specifically, in response to the second adjusted opening degree being within the normal opening degree range, the second corrected duty cycle is determined based on the second opening degree difference and the first preset correction coefficient; or, in response to the second adjusted opening degree being less than the first preset opening degree or greater than the second preset opening degree, the second corrected duty cycle is determined based on the second opening degree difference and the second preset correction coefficient.

[0098] In response to the second opening difference being positive and the reference window rising, or the first opening difference being negative and the reference window falling, the sum of the updated duty cycle and the second corrected duty cycle is determined as the adjustment window duty cycle, such that the adjustment window duty cycle is greater than the initial duty cycle. Thus, when the drive motor of the adjustment window is driven based on the updated duty cycle, the adjustment window can be driven to rise or fall faster, thereby achieving synchronization between the adjustment window and the reference window.

[0099] Alternatively, in response to the second opening difference being negative and the reference window rising, or the first opening difference being positive and the reference window falling, the difference between the updated duty cycle and the second corrected duty cycle is determined as the adjusted window duty cycle, such that the adjusted window duty cycle is less than the initial duty cycle. In this way, when the drive motor of the adjusted window is driven based on the updated duty cycle, the adjusted window can be driven to rise or fall more slowly, thereby achieving synchronization between the adjusted window and the reference window.

[0100] In this application, different methods are used to determine the duty cycle of the adjustable window based on different second opening differences and different window heights, so that the finally determined duty cycle of the adjustable window can effectively adjust the corresponding adjustable window.

[0101] In some embodiments, the method further includes: in response to the third reference opening degree and the third adjusted opening degree reaching a target stop opening degree interval, and the absolute value of the third opening degree difference between the third adjusted opening degree and the third reference opening degree being less than a preset opening degree difference, determining that the third reference opening degree and the third adjusted opening degree meet a preset synchronization condition.

[0102] Specifically, when the third reference opening degree and the third adjustment opening degree reach the target stop opening degree range, and the absolute value of the third opening degree difference between the third adjustment opening degree and the third reference opening degree is less than the preset opening degree difference, it indicates that the opening degree difference between the adjustment window and the reference window is small and within the allowable range, and the opening degrees of both the reference window and the adjustment window have reached the target stop opening degree range. At this time, it is determined that the third reference opening degree and the third adjustment opening degree meet the preset synchronization conditions, and then it is determined that the reference window and the adjustment window meet the preset stop conditions. The drive motors corresponding to the reference window and the adjustment window are stopped, and the synchronization control of the adjustment window and the reference window is completed.

[0103] In practice, to achieve synchronization of the four windows, each window is equipped with an independent duty cycle output channel. The final duty cycle output of each window is determined by its state, and it has different final duty cycles depending on its position and role during the lifting and lowering process.

[0104] Taking the synchronous raising of car windows as an example, and adjusting the window raising to a slower pace, different methods are used to determine the final duty cycle when the window opening is adjusted at different stages: Method 1 (normal stage, i.e., the first adjustment opening is in the normal opening range): final duty cycle = base duty cycle (i.e., initial duty cycle) + first correction duty cycle (determined based on the first preset correction coefficient); Method 2 (final stage, i.e., the first adjustment opening is less than the first preset opening or greater than the second preset opening for non-reference windows): final duty cycle = basic duty cycle (i.e., initial duty cycle) + first correction duty cycle (determined based on the second preset correction coefficient); Method 3 (final stage, the reference window has reached the target stop opening range): control the reference window to wait in coordination with the preset waiting duty cycle.

[0105] Mode 1: Normal stage (aperture ∈ [120mm, 280mm]) All windows operate at the basic duty cycle: 65% for upward movement and 70% for downward movement.

[0106] If the absolute value of the deviation between the opening of a certain vehicle window and the reference window is ΔD > 3mm, then the first corrected duty cycle is ΔD plus the first preset correction coefficient (exemplarily 1.0%), which is added to the base duty cycle to form the final duty cycle. Final duty cycle = base duty cycle + first corrected duty cycle.

[0107] Correction limit: ±15%, final duty cycle range: 30%–100%.

[0108] Mode 2: End stage (opening greater than 280mm or less than 120mm), non-reference window The base occupancy ratio of all vehicle windows has been uniformly reduced to 50% to suppress inertial impact; If the absolute value ΔD of the opening deviation between a certain vehicle window (non-reference window) and the reference window is greater than 1.5mm, then high-precision correction is initiated: Final duty cycle = base duty cycle + first modified duty cycle, where the first modified duty cycle is the product of ΔD and the second preset correction factor (exemplarily, 0.5%).

[0109] Correction limit: ±15%, final duty cycle range: 35%–65%; The reference window continues to operate in this mode until it enters the target area.

[0110] Mode 3: In the final stage, the reference window has entered the target stop opening range (cooperative waiting mode). When the reference window opening is ≥398mm (downward) or ≤2mm (upward), the system determines that it has reached the target position and entered the target stop opening range.

[0111] At this point, regardless of the deviation, the system immediately forces its duty cycle output to a fixed value, i.e., the preset waiting duty cycle (for example, it can be 35%), and controls the reference window to enter the "cooperative waiting mode" to maintain the current position at a low speed to prevent it from sliding down and wait for the other three windows to catch up. The remaining three windows continue to operate in mode two until all windows enter the target stop opening range and the opening deviation between any two is ≤1.0mm. This confirms that the four-window synchronization condition is met, and the duty cycle output of the drive motors of all windows is simultaneously cut off, thus completing the window synchronization control.

[0112] "Base window collaborative delay control" is the core innovative mechanism that distinguishes this application from all related technologies. Its essence is that when the base window arrives at the target position first (i.e., enters the target stop opening range), it does not stop immediately, but actively slows down to "wait" for the other windows, ensuring that all four windows arrive at the destination synchronously. This mechanism completely solves the pseudo-synchronization problem of "first come, first served, others not yet arrived" in traditional systems.

[0113] This control process is a state-driven closed-loop logic, which is determined and executed in real time by the electronic control unit within each preset time period (e.g., 10ms) control cycle. The specific execution steps are as follows: Step 1: Real-time monitoring of the relationship between the baseline window position and the target stop opening range In each control cycle (10ms), the real-time opening value (unit: mm) of the reference window (default driver's side) is read, and it is determined whether it has entered the target stop opening range (defined as: descent phase: opening ≥ 398 mm (i.e., fully open 400mm ± 1.5mm); rise phase: opening ≤ 2 mm (i.e., fully closed 0mm ± 1.5mm)). This range is the safety tolerance zone for the user's perception of "fully closed / open".

[0114] Step 2: Determine whether to enter the "cooperative waiting" state. If the reference window opening enters the target stop opening range (≥398mm or ≤2mm), then: the system immediately triggers the "cooperative waiting" status flag, forcibly switching the duty cycle output of the reference window from the current value (e.g., 50%) to a fixed value, i.e., the preset waiting duty cycle (for example, 35%). Any deviation correction calculations for the reference window are prohibited (i.e., ignoring the opening difference between it and other windows).

[0115] Step 3: Continuously monitor the chasing status of the other three car windows. While the reference window is in the "cooperative waiting" state, the system continues to perform the following operations: The system continuously collects the real-time opening of the other three windows (front passenger side, left rear window, and right rear window). For each adjusted window, it continues to operate according to the final stage correction logic (mode two), without stopping the correction of the adjusted windows even though the reference window has "reached its limit," ensuring that they continue to catch up. The reference window is "paused," but the adjustment "continues to work"—this is the only feasible way to achieve "coordinated arrival."

[0116] Step 4: Determine if the four windows meet the "simultaneous arrival" condition. The system continuously monitors whether the following three conditions are met simultaneously: all windows are in the standard stop opening range; the maximum opening deviation between the four windows is ≤1.0 mm, and the opening difference between any two windows is ≤1.0 mm; the state remains stable for ≥200 ms, and the above conditions are met for a preset number of control cycles (e.g., 20).

[0117] Step 5: Synchronize and stop, end control. When all three conditions are met simultaneously, it is determined that the four windows meet the "synchronous arrival" condition. Immediately cut off all four duty cycle outputs (output value = 0%). At this time, the motors corresponding to all windows are de-energized, the windows are completely still, the system enters the "fully closed / open" state, and the window status indicator lights up.

[0118] In this way, it is ensured that all four windows stop at the same time, in the same position, and at the same speed, without any sequence, misalignment, or gaps, so that the user perceives them as "closing tightly at the same time".

[0119] Step 6: Exception and Degradation Handling To ensure system robustness, the system has the following fault tolerance mechanisms during the collaborative waiting process: When the reference window Hall signal is lost, the system automatically switches to the front passenger side as the new reference window.

[0120] If the motor corresponding to a certain window stalls for more than 500ms, the system immediately cuts off the duty cycle of all window drive motors and enters a safety lockout mode to prevent cascading failures.

[0121] If the power supply voltage is below 10V, the system will terminate all automatic control and retain only manual operation privileges.

[0122] Hall signal abnormality: If the drive motor corresponding to a certain window fails to generate a valid pulse for three consecutive samplings, the system will suspend the speed control of that window, maintain the current duty cycle output, and the other three windows will continue to operate synchronously. The instrument panel window fault indicator light will be illuminated, and the fault code will be recorded.

[0123] Motor stall protection: When a motor current is detected to exceed a set threshold (e.g., 1.5A) and last for more than 500 milliseconds, the system immediately cuts off the duty cycle output and attempts to restart at a low speed with a 30% duty cycle after a 1-second delay; if the restart fails three times in a row, the window is locked and automatic control is disabled.

[0124] Human intervention: If the user manually operates the window switch during automatic raising and lowering, the system will immediately exit automatic mode, clear all correction states, and switch to manual control; System self-test: Each time the system is powered on, it automatically performs a self-test of the validity of the Hall signal. If an abnormality is found, the fault is recorded and the user is notified.

[0125] In this application, four independent duty cycle output channels are used to send the final calculated duty cycle commands to the H-bridge drive circuits of the four windows respectively. Each duty cycle frequency is fixed at 20kHz, which is above the range of human hearing, effectively eliminating the whistling sound of the motors. Each duty cycle signal only controls the motor of the corresponding window, without interference. This allows for independent adjustment and control of each window, ensuring more synchronized control of all windows.

[0126] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.

[0127] It should be noted that some embodiments of this application have been described above. In some cases, the actions or steps described in the above embodiments can be performed in a different order than that shown in the above embodiments and the desired result can still be achieved. In addition, the processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0128] Based on the same concept, and corresponding to any of the above embodiments, this application also provides a window control device.

[0129] refer to Figure 2 The control device for the vehicle window includes: The receiving module 100 is configured to determine the initial duty cycle, the reference window, and the adjustable window in response to receiving a synchronous control window command; The acquisition module 200 is configured to drive the drive motors corresponding to the reference window and the adjustment window based on the initial duty cycle, and to acquire the first reference opening degree of the reference window and the first adjustment opening degree of the adjustment window. The determination module 300 is configured to determine an updated duty cycle based on the first opening difference and the initial duty cycle in response to the absolute value of the first opening difference between the first adjusted opening degree and the first reference opening degree being greater than or equal to a preset opening difference. The drive module 400 is configured to drive the drive motor corresponding to the adjusted window based on the updated duty cycle, until the reference window and the adjusted window meet the preset stopping conditions.

[0130] In some embodiments, the receiving module 100 is further configured to: The reference window and the adjustable window are determined based on the synchronous control window command; Obtain the initial window opening of the reference window and the adjustable window; The initial duty cycle is determined based on the initial window opening.

[0131] In some embodiments, the determining module 300 is further configured to: Based on the first opening difference and the first adjusted opening, the first corrected duty cycle is determined; In response to the first opening difference being positive and the reference window rising, or the first opening difference being negative and the reference window falling, the sum of the initial duty cycle and the first modified duty cycle is determined as the updated duty cycle; Alternatively, in response to the first opening difference being negative and the reference window rising, or the first opening difference being positive and the reference window falling, the difference between the initial duty cycle and the first corrected duty cycle is determined as the updated duty cycle.

[0132] In some embodiments, the determining module 300 is further configured to: In response to the first adjustment opening being within the normal opening range, a first correction duty cycle is determined based on the first opening difference and a first preset correction coefficient, wherein the normal opening range is the opening range formed by the first preset opening and the second preset opening, and the first preset opening is less than the second preset opening; Alternatively, in response to the first adjustment opening being less than the first preset opening or greater than the second preset opening, a first correction duty cycle is determined based on the first opening difference and a second preset correction coefficient, wherein the second preset correction coefficient is less than the first preset correction coefficient.

[0133] In some embodiments, the driver module 400 is further configured to: Obtain the second reference opening of the reference window and the second adjustment opening of the adjustment window; In response to the absolute value of the second opening difference between the second adjustment opening and the second reference opening being less than the preset opening difference, and the second reference opening and the second adjustment opening reaching the target stop opening range, it is determined that the reference window and the adjustment window meet the preset stop conditions, and the drive motor corresponding to the reference window and the drive motor corresponding to the adjustment window are stopped. Alternatively, in response to the absolute value of the second opening difference between the second adjustment opening and the second reference opening being greater than or equal to a preset opening difference, a correction strategy is periodically executed and a third reference opening of the reference window and a third adjustment opening of the adjustment window are determined. When the third reference opening and the third adjustment opening meet a preset synchronization condition, it is determined that the reference window and the adjustment window meet a preset stop condition, and the drive motor corresponding to the reference window and the drive motor corresponding to the adjustment window are stopped.

[0134] In some embodiments, the driver module 400 is further configured to: Based on the second opening difference, the second adjusted opening, the second reference opening, and the updated duty cycle, the adjusted window duty cycle and the reference window duty cycle are determined; The drive motor corresponding to the adjusted window is driven based on the duty cycle of the adjusted window, and the drive motor corresponding to the reference window is driven based on the duty cycle of the reference window. Obtain the third reference opening of the reference window and the third adjustment opening of the adjustment window.

[0135] In some embodiments, the driver module 400 is further configured to: In response to the second reference opening degree reaching the target stop opening degree range, the preset waiting duty cycle is determined as the reference window duty cycle; or, in response to the second reference opening degree not reaching the target stop opening degree range, the initial duty cycle is determined as the reference window duty cycle. The second adjusted duty cycle is determined based on the second adjusted opening degree; In response to the second opening difference being positive and the reference window rising, or the first opening difference being negative and the reference window falling, the sum of the updated duty cycle and the second corrected duty cycle is determined as the adjusted window duty cycle; or, in response to the second opening difference being negative and the reference window rising, or the first opening difference being positive and the reference window falling, the difference between the updated duty cycle and the second corrected duty cycle is determined as the adjusted window duty cycle.

[0136] In some embodiments, the driver module 400 is further configured to: In response to the third reference opening degree and the third adjusted opening degree reaching the target stop opening degree range, and the absolute value of the third opening degree difference between the third adjusted opening degree and the third reference opening degree being less than the preset opening degree difference, it is determined that the third reference opening degree and the third adjusted opening degree meet the preset synchronization conditions.

[0137] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.

[0138] The apparatus described above is used to implement the corresponding window control method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0139] Based on the same concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the window control method described in any of the above embodiments.

[0140] Figure 3 This embodiment illustrates a more specific hardware structure of an electronic device. The device may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.

[0141] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0142] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0143] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.

[0144] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0145] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.

[0146] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0147] The electronic devices described above are used to implement the corresponding window control methods in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0148] Based on the same concept, and corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the window control method as described in any of the above embodiments.

[0149] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0150] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the window control method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0151] Based on the same application concept, and corresponding to the methods of any of the above embodiments, this application also provides a computer program product, including computer program instructions. When the computer program instructions are run on a computer, the computer causes the computer to execute the window control method as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0152] Based on the same concept, and corresponding to the methods of any of the above embodiments, this application also provides a vehicle, which includes the window control device, electronic device, computer-readable storage medium, or computer program product described in any of the above embodiments. The vehicle has the technical effects corresponding to any of the above embodiments, which will not be elaborated further here.

[0153] It is understood that before using the technical solutions of the various embodiments in this application, users will be informed of the type, scope of use, and usage scenarios of the personal information involved in an appropriate manner, and user authorization will be obtained.

[0154] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose, based on the prompt message, whether to provide personal information to the software or hardware such as electronic devices, applications, servers, or storage media performing the operations described in this application.

[0155] As an optional but not limited implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0156] It is understood that the above notification and user authorization process is merely illustrative and does not limit the implementation of this application. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this application.

[0157] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application is limited to these examples; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in detail for the sake of brevity.

[0158] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0159] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0160] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of this application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A method for controlling a vehicle window, characterized in that, include: In response to receiving a synchronous control window command, determine the initial duty cycle, the reference window, and the adjustable window; Drive the drive motors corresponding to the reference window and the adjustment window based on the initial duty cycle, and obtain the first reference opening degree of the reference window and the first adjustment opening degree of the adjustment window; In response to the absolute value of the first opening difference between the first adjusted opening degree and the first reference opening degree being greater than or equal to a preset opening difference, an updated duty cycle is determined based on the first opening difference and the initial duty cycle; The drive motor corresponding to the adjusted window is driven based on the updated duty cycle until the reference window and the adjusted window meet the preset stopping conditions.

2. The method according to claim 1, characterized in that, The determination of the initial duty cycle, the reference window, and the adjustable window includes: The reference window and the adjustable window are determined based on the synchronous control window command; Obtain the initial window opening of the reference window and the adjustable window; The initial duty cycle is determined based on the initial window opening.

3. The method according to claim 1, characterized in that, The step of determining the updated duty cycle based on the first opening difference and the initial duty cycle includes: Based on the first opening difference and the first adjusted opening, the first corrected duty cycle is determined; In response to the first opening difference being positive and the reference window rising, or the first opening difference being negative and the reference window falling, the sum of the initial duty cycle and the first modified duty cycle is determined as the updated duty cycle; Alternatively, in response to the first opening difference being negative and the reference window rising, or the first opening difference being positive and the reference window falling, the difference between the initial duty cycle and the first corrected duty cycle is determined as the updated duty cycle.

4. The method according to claim 3, characterized in that, The step of determining the first corrected duty cycle based on the first opening difference and the first adjusted opening includes: In response to the first adjustment opening being within the normal opening range, a first correction duty cycle is determined based on the first opening difference and a first preset correction coefficient, wherein the normal opening range is the opening range formed by the first preset opening and the second preset opening, and the first preset opening is less than the second preset opening; Alternatively, in response to the first adjustment opening being less than the first preset opening or greater than the second preset opening, a first correction duty cycle is determined based on the first opening difference and a second preset correction coefficient, wherein the second preset correction coefficient is less than the first preset correction coefficient.

5. The method according to claim 1, characterized in that, The step of driving the drive motor corresponding to the adjusted window based on the updated duty cycle until the reference window and the adjusted window meet the preset stopping conditions includes: Obtain the second reference opening of the reference window and the second adjustment opening of the adjustment window; In response to the absolute value of the second opening difference between the second adjustment opening and the second reference opening being less than the preset opening difference, and the second reference opening and the second adjustment opening reaching the target stop opening range, it is determined that the reference window and the adjustment window meet the preset stop conditions, and the drive motor corresponding to the reference window and the drive motor corresponding to the adjustment window are stopped. Alternatively, in response to the absolute value of the second opening difference between the second adjustment opening and the second reference opening being greater than or equal to a preset opening difference, a correction strategy is periodically executed and a third reference opening of the reference window and a third adjustment opening of the adjustment window are determined. When the third reference opening and the third adjustment opening meet a preset synchronization condition, it is determined that the reference window and the adjustment window meet a preset stop condition, and the drive motor corresponding to the reference window and the drive motor corresponding to the adjustment window are stopped.

6. The method according to claim 5, characterized in that, The execution correction strategy includes: Based on the second opening difference, the second adjusted opening, the second reference opening, and the updated duty cycle, the adjusted window duty cycle and the reference window duty cycle are determined; The drive motor corresponding to the adjusted window is driven based on the duty cycle of the adjusted window, and the drive motor corresponding to the reference window is driven based on the duty cycle of the reference window. Obtain the third reference opening of the reference window and the third adjustment opening of the adjustment window.

7. The method according to claim 6, characterized in that, The determination of the adjusted window duty cycle and the reference window duty cycle based on the second opening difference, the second adjusted opening, the second reference opening, and the updated duty cycle includes: In response to the second reference opening degree reaching the target stop opening degree range, the preset waiting duty cycle is determined as the reference window duty cycle; or, in response to the second reference opening degree not reaching the target stop opening degree range, the initial duty cycle is determined as the reference window duty cycle. The second adjusted duty cycle is determined based on the second adjusted opening degree; In response to the second opening difference being positive and the reference window rising, or the first opening difference being negative and the reference window falling, the sum of the updated duty cycle and the second corrected duty cycle is determined as the adjusted window duty cycle; Alternatively, in response to the second opening difference being negative and the reference window rising, or the first opening difference being positive and the reference window falling, the difference between the updated duty cycle and the second corrected duty cycle is determined as the window duty cycle to be adjusted.

8. The method according to claim 5, characterized in that, The method further includes: In response to the third reference opening degree and the third adjusted opening degree reaching the target stop opening degree range, and the absolute value of the third opening degree difference between the third adjusted opening degree and the third reference opening degree being less than the preset opening degree difference, it is determined that the third reference opening degree and the third adjusted opening degree meet the preset synchronization conditions.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 8.

10. A vehicle, characterized in that, Includes the electronic device as described in claim 9.