Method and device for determining the stall current of an electric window

By automatically analyzing the operating current characteristics of the electric window, the stall current is determined and updated, solving the problems of low efficiency and inaccuracy of manual setting, and improving the control accuracy and service life of the electric window.

CN116679110BActive Publication Date: 2026-04-24TIANJIN JINGWEI HIRAIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TIANJIN JINGWEI HIRAIN TECH CO LTD
Filing Date
2023-05-25
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

In existing technologies, the stall threshold of electric windows is set manually, which leads to low efficiency and inaccuracy, affecting user experience and controller lifespan.

Method used

By collecting the operating current of the electric window under a preset operating voltage, analyzing the current characteristics during the movement and stopping phases using preset calibration rules, the effective operating current and initial stall current are automatically determined, a target stall current is generated, and its accuracy is ensured through periodic updates.

Benefits of technology

It achieves efficient and accurate setting of the stall current for electric windows, improving user experience and extending the lifespan of the controller.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116679110B_ABST
    Figure CN116679110B_ABST
Patent Text Reader

Abstract

The application discloses a method and device for determining the stall current of an electric window. The method for determining the stall current of the electric window comprises: obtaining a data set corresponding to the operation process of the electric window under the condition that the electric window is controlled to move based on a preset operating voltage; performing characteristic change analysis on a plurality of operating currents corresponding to each operation process according to a preset calibration rule, and determining the operating current corresponding to the movement stage and the operating current corresponding to the stop stage in each operation process respectively; determining the effective working current of the electric window based on the preset operating voltage according to the operating current corresponding to the movement stage in each operation process; determining the initial stall current of the electric window based on the preset operating voltage according to the operating current corresponding to the stop stage in each operation process; and generating the first target stall current corresponding to the preset operating voltage according to the mean value information of the effective working current and the initial stall current. According to the embodiment of the application, the stall threshold can be efficiently and accurately set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of automatic control technology, and in particular relates to a method and apparatus for determining the stall current of an electric window. Background Technology

[0002] With the development and application of technology, more and more automatic detection and control applications are being used in daily life. For example, electronic controllers can automatically control the opening and closing of windows. These windows can be windows installed in vehicles or other facilities equipped with windows.

[0003] In the process of controlling window operation using an electronic controller, a stall threshold is often set. During window operation, the operating current is collected, and the window is stopped based on the relationship between this operating current and the stall threshold. When the stall threshold is inaccurate, the window may fail to open or close accurately to the target state, affecting the user experience and potentially causing the window controller to overheat, thus shortening its lifespan.

[0004] Currently, the stall threshold of windows controlled by electronic controllers is often set manually. Since different windows require different stall thresholds under different operating environments, the threshold setting process not only requires high professionalism from the operator, but also often requires the cooperation of multiple people, resulting in low efficiency and inaccuracy in setting the stall threshold. Summary of the Invention

[0005] This application provides a method and apparatus for determining the stall current of an electric window, which can efficiently and accurately set the stall threshold.

[0006] In a first aspect, embodiments of this application provide a method for determining the stall current of an electric window, the method comprising:

[0007] When the electric window is controlled to move based on a preset operating voltage, a dataset corresponding to the electric window's operation process is obtained. The preset operating voltage is associated with the preset application scenario of the electric window. The operation process includes a first operation process from the starting position to the ending position and / or a second operation process from the ending position to the starting position. The dataset includes multiple operating currents of the electric window collected based on a preset acquisition frequency for each operation process.

[0008] Based on the preset calibration rules, the characteristic change analysis of multiple operating currents corresponding to each operating process is performed to determine the operating current corresponding to the motion stage and the operating current corresponding to the stop stage in each operating process.

[0009] Based on the operating current corresponding to the movement stage in each operation process, determine the effective operating current of the electric window based on the preset operating voltage; and based on the operating current corresponding to the stop stage in each operation process, determine the initial stall current of the electric window based on the preset operating voltage.

[0010] Based on the average values ​​of the effective operating current and the initial stall current, a first target stall current corresponding to the preset operating voltage is generated.

[0011] In some possible implementations of the first aspect, after generating a first target stall current corresponding to a preset operating voltage based on the average information of the effective operating current and the initial stall current, the method further includes:

[0012] At predetermined update intervals, the target stall current corresponding to the preset operating voltage is reacquired to obtain the second target stall current;

[0013] Calculate the difference between the first target stall current and the second target stall current;

[0014] If the difference is greater than a preset threshold, the first target stall current will be updated to the second target stall current.

[0015] In some possible implementations of the first aspect, the operation process further includes a static phase and a startup phase; based on preset calibration rules, characteristic change analysis is performed on multiple operating currents corresponding to each operation process to determine the motion phase and stopping phase of each operation process, including:

[0016] According to the preset sliding window and the acquisition order of the operating current corresponding to each running process, the set of operating currents to be analyzed is obtained in sequence. The preset sliding window is used to acquire a first preset number of operating currents, the step size of the preset sliding window is a second preset number of operating currents, and the set of operating currents includes the first preset number of operating currents.

[0017] According to the preset calibration rules, the current change characteristics of the operating current set are analyzed in sequence to determine the static stage, starting stage, moving stage and stopping stage to be calibrated in sequence.

[0018] Extract the operating current corresponding to the motion phase and the operating current corresponding to the stopping phase in each operation process.

[0019] Among some possible implementations of the first aspect, the preset calibration rules include:

[0020] According to the collection order, the operating current in the operating current set is analyzed to see if it is greater than 0. If the operating current set is found to include a current value greater than 0, the first operating current greater than 0 is taken as the starting point of the start-up phase. The period before the starting point of the start-up phase is the static phase.

[0021] Given that the starting point of the start-up phase in the operation process is determined, the first current change rate of each operating current set is obtained sequentially from the starting point of the start-up phase, and the first target operating current set is determined based on the first current change rate of each operating current set. The current change rate of the first target operating current set is less than the first threshold. The first operating current in the first target operating current set is taken as the end point of the start-up phase, and the second operating current in the first target operating current set is taken as the starting point of the operation phase.

[0022] Given that the starting point of the motion phase in the operation process is determined, the second current change rate of each running current set is obtained sequentially from the starting point of the motion phase, and the second target running current set is determined based on the second current change rate of each running current set. The current change rate of the second target running current set is greater than the second threshold. The first running current in the second target running current set is taken as the end point of the motion phase, and the second running current in the second target running current set is taken as the starting point of the stopping phase.

[0023] Given a defined starting point for the stopping phase during operation, starting from the beginning of the moving phase, each operating current is sequentially checked to see if it is less than a third threshold. The first operating current that is less than the third threshold is then defined as the end point of the stopping phase.

[0024] In some possible implementations of the first aspect, when the operation process includes a first operation process of the electric window from the starting position to the ending position, the effective operating current of the preset operating voltage includes the effective operating current corresponding to the first operation process.

[0025] In the case where the operation process includes a second operation process in which the electric window moves from the end position to the start position, the effective operating current of the preset operating voltage includes the effective operating current corresponding to the second operation process.

[0026] Based on the operating current corresponding to each movement stage during operation, determine the effective operating current of the electric window based on the preset operating voltage, including:

[0027] Obtain the number M of the first target sliding window and the number N of the second target sliding window, wherein the first target sliding window is a preset sliding window corresponding to the motion stage in the first running process, and the second target sliding window is a preset sliding window corresponding to the motion stage in the second running process;

[0028] When both the quantity M and the quantity N are greater than or equal to the first quantity threshold, the mean value of the operating current in each first target sliding window is calculated to obtain M first mean values; and the mean value of the operating current in each second target sliding window is calculated to obtain N second mean values.

[0029] Calculate the mean of the m smallest first means among the M first means to obtain the effective operating current corresponding to the first operating process; and calculate the mean of the m smallest second means among the N second means to obtain the effective operating current corresponding to the second operating process.

[0030] In some possible implementations of the first aspect, when the operation process includes a first operation process of the electric window from the starting position to the ending position, the initial stall current of the preset operating voltage includes the initial stall current corresponding to the first operation process.

[0031] In the case where the operation process includes a second operation process where the electric window moves from the end position to the start position, the initial stall current of the preset operating voltage includes the initial stall current corresponding to the second operation process;

[0032] Based on the operating current corresponding to the stop phase during each operation, determine the initial stall current of the electric window based on the preset operating voltage, including:

[0033] Obtain the peak value of the operating current corresponding to the motion phase during the first operating process to obtain the initial stall current corresponding to the first operating process; and,

[0034] The peak value of the operating current corresponding to the motion stage during the second operation is obtained to obtain the initial stall current corresponding to the second operation.

[0035] In some possible implementations of the first aspect, a first target stall current corresponding to a preset operating voltage is generated based on the average information of the effective operating current and the initial stall current, including:

[0036] In the case that the operation process includes a first operation process where the electric window moves from the starting position to the ending position and a second operation process where the electric window moves from the ending position to the starting position, the average of the effective operating current and the average of the initial stall current corresponding to the first operation process are calculated to obtain the first average value; and,

[0037] Calculate the average of the effective operating current corresponding to the second operating process and the initial stall current corresponding to the second operating process to obtain the second average value;

[0038] Calculate the average of the first mean and the second mean to obtain the first target stall current corresponding to the preset operating voltage.

[0039] Among some possible implementations of the first aspect, extracting the operating current corresponding to the motion phase and the operating current corresponding to the stopping phase in each operation process further includes:

[0040] Based on the amount of operating current corresponding to the stationary phase, startup phase, motion phase, and stop phase, determine the first duration corresponding to the stationary phase, the second duration corresponding to the startup phase, the third duration corresponding to the motion phase, and the fourth duration corresponding to the stop phase.

[0041] If the first duration is less than the first preset duration associated with the stationary phase, the second duration is less than the second preset duration associated with the start-up phase, the third duration is less than the third preset duration associated with the motion phase, and the fourth duration is less than the fourth preset duration associated with the stop phase, then extract the operating current corresponding to the motion phase and the operating current corresponding to the stop phase in each operation process.

[0042] In some possible implementations of the first aspect, if the first duration is not less than the first preset duration associated with the stationary phase, or the second duration is not less than the second preset duration associated with the start-up phase, or the third duration is not less than the third preset duration associated with the movement phase, or the fourth duration is not less than the fourth preset duration associated with the stop phase, the electric window movement is re-controlled based on the preset operating voltage, and the dataset corresponding to the electric window operation process is obtained.

[0043] Secondly, embodiments of this application provide a device for determining the stall current of an electric window, comprising:

[0044] The acquisition module is used to acquire the dataset corresponding to the operation process of the electric window when the electric window is controlled to move based on a preset operating voltage. The preset operating voltage is associated with the application scenario of the preset electric window. The operation process includes a first operation process from the starting position to the ending position and / or a second operation process from the ending position to the starting position. The dataset includes multiple operating currents of the electric window collected based on a preset acquisition frequency corresponding to each operation process.

[0045] The processing module is used to perform characteristic change analysis on multiple operating currents corresponding to each operating process according to preset calibration rules, and to determine the operating current corresponding to the motion stage and the operating current corresponding to the stop stage in each operating process respectively.

[0046] The processing module is also used to determine the effective operating current of the electric window based on the preset operating voltage according to the operating current corresponding to the movement stage in each operation process; and to determine the initial stall current of the electric window based on the preset operating voltage according to the operating current corresponding to the stop stage in each operation process.

[0047] The processing module is also used to generate a first target stall current corresponding to the preset operating voltage based on the average information of the effective operating current and the initial stall current.

[0048] Thirdly, this application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions; and a method for determining the stall current of an electric window in the first aspect or any implementable mode of the first aspect when the processor executes the computer program instructions.

[0049] Fourthly, this application provides a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the method for determining the stall current of the electric window in the first aspect or any implementable mode of the first aspect.

[0050] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform a method for determining the stall current of an electric window as described in the first aspect or any implementable method of the first aspect.

[0051] This application discloses a method and apparatus for determining the stall current of an electric window. First, during the process of controlling the electric window's movement based on a preset operating voltage, multiple operating currents of the electric window are collected based on a preset acquisition frequency. Since the operation process may include a first operation process from the starting position to the ending position and / or a second operation process from the ending position to the starting position, then, characteristic change analysis can be performed on the multiple operating currents corresponding to each operation process according to preset calibration rules to determine the operating current corresponding to the movement stage and the operating current corresponding to the stopping stage in each operation process. In this way, multiple different stages in the operation process can be quickly and accurately calibrated. Next, based on the operating current corresponding to the movement stage in each operation process, the effective operating current of the electric window based on the preset operating voltage can be determined; and based on the operating current corresponding to the stopping stage in each operation process, the initial stall current of the electric window based on the preset operating voltage can be determined; finally, based on the average information of the effective operating current and the initial stall current, a first target stall current corresponding to the preset operating voltage is generated. Therefore, the stall current is automatically acquired, improving the efficiency of stall current acquisition. In addition, since the preset operating voltage is related to the preset application scenario of the electric window, the stall current obtained based on the embodiments of this application is highly accurate and can be more applied to the application scenario of the electric window, improving the user's experience of using the electric window and extending the service life of the electronic control. Attached Figure Description

[0052] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a flowchart illustrating a method for determining the stall current of an electric window according to an embodiment of this application.

[0054] Figure 2 This is a schematic diagram illustrating the change in operating current provided in an embodiment of this application;

[0055] Figure 3 This is a schematic diagram of operating current calibration provided in an embodiment of this application;

[0056] Figure 4 This is a schematic diagram of a cache queue provided in an embodiment of this application;

[0057] Figure 5 This is a schematic diagram of the structure of a device for determining the stall current of an electric window provided in an embodiment of this application;

[0058] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0059] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0060] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0061] With the development and application of technology, more and more automatic detection and control applications are being used in daily life. For example, electronic controllers can automatically control the opening and closing of windows. These windows can be windows installed in vehicles or other facilities equipped with windows.

[0062] In the process of controlling window operation using an electronic controller, a stall threshold is often set. During window operation, the operating current is collected, and the window is stopped based on the relationship between this operating current and the stall threshold. For example, if the actual operating current during window operation exceeds the set stall threshold, the window stops; if the operating current is less than the set stall threshold, the window continues to operate.

[0063] When the stall threshold is inaccurate, the window may not be able to open or close accurately to the target state, affecting the user experience and potentially causing the window controller to overheat, thus affecting the lifespan of the electronic controller.

[0064] Currently, the stall threshold of windows controlled by electronic controllers is often set manually. Since different windows require different stall thresholds under different operating environments, the threshold setting process not only requires high professionalism from the operator, but also often requires the cooperation of multiple people, resulting in low efficiency and inaccuracy in setting the stall threshold.

[0065] To address the problems of the prior art, embodiments of this application provide a method and apparatus for determining the stall current of an electric window, which can efficiently and accurately set the stall threshold. The method for determining the stall current of an electric window provided in this application embodiment will be described below first.

[0066] Figure 1 A flowchart illustrating a method for determining the stall current of an electric window according to an embodiment of this application is shown. Figure 1 As shown, the method may include steps 110 to 140.

[0067] Step 110: Under the condition of controlling the movement of the electric window based on the preset operating voltage, obtain the dataset corresponding to the operation process of the electric window.

[0068] The preset operating voltage is associated with the preset application scenario of the electric window. The operation process includes a first operation process from the starting position to the ending position and / or a second operation process from the ending position to the starting position. The dataset includes multiple operating currents of the electric window collected based on a preset acquisition frequency for each operation process.

[0069] Step 120: Perform characteristic change analysis on multiple operating currents corresponding to each operating process according to the preset calibration rules, and determine the operating current corresponding to the motion stage and the operating current corresponding to the stop stage in each operating process respectively.

[0070] Step 130: Determine the effective operating current of the electric window based on the preset operating voltage according to the operating current corresponding to the movement stage in each operation process; and determine the initial stall current of the electric window based on the preset operating voltage according to the operating current corresponding to the stop stage in each operation process.

[0071] Step 140: Based on the average information of the effective operating current and the initial stall current, generate the first target stall current corresponding to the preset operating voltage.

[0072] Specifically, the preset operating voltage is correlated with the preset application scenario of the power windows. Taking the power windows configured in a vehicle as an example, the stall voltage required for the power windows when the vehicle is not running is different from the stall voltage required when the vehicle is running. Therefore, by correlating the preset operating voltage with the preset application scenario of the power windows, the final obtained stall current can be highly accurate and better adapted to the application scenario of the power windows.

[0073] For example, the operation of a power window may include a first operation from a starting position to an ending position and / or a second operation from an ending position to a starting position. Taking an application scenario where the vehicle is not started as an example, the first operation may be a complete upward movement of the power window from the bottom, and the second operation may be a complete downward movement of the power window from the top.

[0074] During the operation of the electric window, the operating current of the electric window can be collected based on a preset sampling frequency, thereby obtaining the dataset corresponding to the operation process. It can be understood that when the operation process includes the aforementioned first operation process and the aforementioned second operation process, the dataset can specifically include the dataset corresponding to the first operation process and the dataset corresponding to the second operation process.

[0075] After obtaining the dataset corresponding to the operation process, characteristic change analysis can be performed on the operating current in each dataset according to the preset calibration rules, thereby determining the operating current corresponding to the moving and stopping phases of the electric window from the dataset.

[0076] After determining the operating currents corresponding to the motion phase and the stop phase respectively, the effective operating current of the electric window based on the preset operating voltage can be determined according to the operating current corresponding to the motion phase in each operation process; and the initial stall current of the electric window based on the preset operating voltage can be determined according to the operating current corresponding to the stop phase in each operation process.

[0077] Finally, based on the average information of the effective operating current and the initial stall current, a first target stall current corresponding to the preset operating voltage is generated.

[0078] According to the embodiments of this application, by using preset calibration rules, the operating current corresponding to the motion stage and the operating current corresponding to the stop stage in each operation process can be analyzed and calibrated, thereby achieving rapid and accurate calibration of multiple different stages in the operation process. Then, based on the operating current corresponding to the motion stage in each operation process, the effective operating current of the electric window based on the preset operating voltage can be determined; and based on the operating current corresponding to the stop stage in each operation process, the initial stall current of the electric window based on the preset operating voltage can be determined; finally, based on the average information of the effective operating current and the initial stall current, a first target stall current corresponding to the preset operating voltage is generated.

[0079] In some embodiments, after generating a first target stall current corresponding to a preset operating voltage based on the average information of the effective operating current and the initial stall current, the method further includes:

[0080] At predetermined update intervals, the target stall current corresponding to the preset operating voltage is reacquired to obtain the second target stall current;

[0081] Calculate the difference between the first target stall current and the second target stall current;

[0082] If the difference is greater than a preset threshold, the first target stall current will be updated to the second target stall current.

[0083] For example, the predetermined update cycle can be set to a period based on time units such as weeks, months, or years, and is not specifically limited here.

[0084] After obtaining the first target stall current, at the predetermined update intervals mentioned above, the stall current determination method provided in the embodiments of this application is used to re-obtain the target stall current corresponding to the preset operating voltage, i.e., the second target stall current.

[0085] By calculating the difference between the first target stall current and the second target stall current, and comparing it with a preset threshold, it can be determined whether the first target stall current still meets the current application scenario. Especially when the difference exceeds the preset threshold, the first target stall current is updated to the second target stall current. The second target stall current is then used as the stall current required for the power window.

[0086] According to the embodiments of this application, by periodically checking whether the stall current needs to be updated, and especially updating the stall current when it needs to be updated, the rationality of the stall current setting in the application scenario can be ensured. Thus, it can effectively avoid the unreasonable initial stall current threshold caused by mechanical structure wear and friction strip aging during the use of electric windows.

[0087] As a specific embodiment, the operation process also includes a static phase and a startup phase; involving the above step 120, the characteristic change analysis of multiple operating currents corresponding to each operation process is performed according to the preset calibration rules, and the operating current corresponding to the motion phase and the operating current corresponding to the stop phase of each operation process are determined respectively, which may specifically include the following steps.

[0088] Step 1201: According to the preset sliding window and the acquisition order of the operating current corresponding to each operating process, the set of operating currents to be analyzed is obtained sequentially.

[0089] Wherein, the length of the preset sliding window is a first preset number, the step size of the preset sliding window is a second preset number, and the operating current set includes the first preset number of operating currents;

[0090] Step 1202: According to the preset calibration rules, analyze the current change characteristics of the running current set in sequence to determine the static stage, starting stage, moving stage and stopping stage in sequence.

[0091] Step 1203: Extract the operating current corresponding to the motion stage and the operating current corresponding to the stopping stage in each operation process.

[0092] For example, the operation of an electric window can be specifically divided into a stationary phase, a starting phase, a moving phase, and a stopping phase. Taking the aforementioned moving phase of an electric window in a vehicle as an example... Figure 2 This is a schematic diagram illustrating the change in operating current provided in an embodiment of this application. Figure 2 The corresponding current has not yet been calibrated. Figure 3 This is a schematic diagram illustrating the calibration of operating current provided in an embodiment of this application. Combined with... Figure 3 As shown, the operating current is in the static stage 301, the starting stage 302, the moving stage 303, and the stopping stage 304, respectively.

[0093] In some embodiments, the preset sliding window can also be understood as a buffer queue. The length of the preset sliding window is the buffer size of the buffer queue, which is a first preset number. For example, the buffer can be used to obtain the set of operating currents to be analyzed; that is, based on the preset sliding window, a first preset number of operating currents can be obtained each time. The step size of the preset sliding window is the number of operating currents popped from the buffer queue each time. If the step size of the preset sliding window is 1, then the number of operating currents popped from the buffer queue each time is 1.

[0094] Taking a cache queue with a cache size of 10 as an example, the first preset quantity is 10, meaning that the operating current set to be analyzed includes 10 operating currents. For example... Figure 4As shown in the buffer queue 401, direction 402 indicates the movement direction of the buffer queue, which is also the sliding direction of the sliding window. The operating current is sorted sequentially from earliest to latest according to the acquisition time. Continuing with... Figure 4 As shown, the set of running currents to be analyzed is obtained by using a cache queue. Specifically, during each update of the cache queue, the original head of the queue (i.e., Buffer[0]) is popped, the data of the original Buffer[1] to Buffer[9] is moved forward one position as the data in the new Buffer[0] to Buffer[8], and then the new data is inserted into the tail of the queue (Buffer[9]).

[0095] According to the embodiments of this application, after each extraction of the operating current to be analyzed, the multiple operating currents of the electric window can be sequentially calibrated into a stationary phase, a starting phase, a moving phase, and a stopping phase according to a preset calibration rule.

[0096] As a specific example, the preset calibration rules involved in step 1202 above may include:

[0097] According to the collection order, the operating current in the operating current set is analyzed to see if it is greater than 0. If the operating current set is found to include a current value greater than 0, the first operating current greater than 0 is taken as the starting point of the start-up phase. The period before the starting point of the start-up phase is the static phase.

[0098] Given a determined start point for the startup phase during operation, the first current change rate of each operating current set is sequentially acquired from the start point of the startup phase. Based on the first current change rate of each operating current set, a first target operating current set is determined. Where the current change rate of the first target operating current set is less than a first threshold, the first operating current in the first target operating current set is taken as the end point of the startup phase, and the second operating current in the first target operating current set is taken as the start point of the operation phase.

[0099] Given that the starting point of the motion phase in the operation process is determined, the second current change rate of each running current set is obtained sequentially from the starting point of the motion phase, and the second target running current set is determined based on the second current change rate of each running current set. The current change rate of the second target running current set is greater than the second threshold. The first running current in the second target running current set is taken as the end point of the motion phase, and the second running current in the second target running current set is taken as the starting point of the stopping phase.

[0100] Given a defined starting point for the stopping phase during operation, starting from the beginning of the moving phase, each operating current is sequentially checked to see if it is less than a third threshold. The first operating current to be less than the third threshold is then defined as the end point of the stopping phase.

[0101] Specifically, since the operating current is analyzed sequentially according to the acquisition order, when the acquired operating current is greater than 0, it indicates that the electric window has started to move and the operation process has entered the startup stage.

[0102] Following the data collection sequence, the operating current is analyzed further. Since the rate of change of current during the running phase is smaller than that during the startup phase, the end point of the startup phase and the start point of the running phase can be determined by analyzing the changes in the rate of change of current.

[0103] Optionally, the maximum slope of the fitting function corresponding to the current value in the operating current set can be used as the first current change rate of the operating current set, or the difference between the maximum and minimum current values ​​in the operating current set can be used as the first current change rate of the operating current set. There is no specific limitation here.

[0104] Given a defined starting point for the startup phase during operation, the first current change rate of each operating current set is sequentially acquired from that starting point. When the current change rate of an operating current set is detected to be less than a first threshold, the first operating current in that current set is taken as the end point of the startup phase, and the second operating current in the first target operating current set is taken as the starting point of the next phase. This allows for the accurate identification of the operating current corresponding to the startup phase throughout the entire operation.

[0105] Optionally, the effective starting current value of the power window can be determined based on the operating current corresponding to the start-up phase. For example, the peak value of the operating current can be found from the operating current corresponding to the start-up phase, and this peak value can be used as the effective starting current value of the power window.

[0106] In some embodiments, once the starting point of the motion phase in the operation process is determined, the operating current is further analyzed. Since the rate of change of the operating current corresponding to the stationary phase is larger than the rate of change of the operating current corresponding to the motion phase, the end point of the motion phase and the starting point of the stationary phase can be determined by analyzing the changes in the rate of change of the current.

[0107] Optionally, the maximum slope of the fitting function corresponding to the current value in the operating current set can be used as the second current change rate of the operating current set, or the difference between the maximum and minimum current values ​​in the operating current set can be used as the second current change rate of the operating current set. There is no specific limitation here.

[0108] Given a defined starting point for the stopping phase during operation, starting from the beginning of the moving phase, each operating current is sequentially checked to see if it is less than a third threshold. The first operating current to be less than the third threshold is then defined as the end point of the stopping phase.

[0109] According to the embodiments of this application, the operation process of an electric window can be automatically calibrated with high accuracy, which can effectively improve calibration efficiency.

[0110] To further improve the accuracy of the calibration results, integrity checks can be performed on multiple currents corresponding to the operation process. Specifically, the operating current corresponding to the motion phase and the operating current corresponding to the stop phase in each operation process can be extracted. This can also include determining the first duration corresponding to the stationary phase, the second duration corresponding to the start phase, the third duration corresponding to the motion phase, and the fourth duration corresponding to the stop phase based on the number of operating currents corresponding to the stationary phase, the start phase, the motion phase, and the stop phase, respectively.

[0111] If the first duration is less than the first preset duration associated with the stationary phase, the second duration is less than the second preset duration associated with the start-up phase, the third duration is less than the third preset duration associated with the motion phase, and the fourth duration is less than the fourth preset duration associated with the stop phase, then extract the operating current corresponding to the motion phase and the operating current corresponding to the stop phase in each operation process.

[0112] In some embodiments, if the first duration is not less than the first preset duration associated with the stationary phase, or the second duration is not less than the second preset duration associated with the start-up phase, or the third duration is not less than the third preset duration associated with the movement phase, or the fourth duration is not less than the fourth preset duration associated with the stop phase, the electric window movement is re-controlled based on the preset operating voltage, and the dataset corresponding to the electric window operation process is obtained.

[0113] In other words, if the operation is in a certain stage for more than a certain period of time, it is determined that the operation of the electric window is incomplete, which may cause a large error in the stall current. It is necessary to re-collect the operating current and then determine the stall current.

[0114] In some embodiments, when the operation process includes a first operation process in which the electric window moves from a starting position to an ending position, the effective operating current of the preset operating voltage includes the effective operating current corresponding to the first operation process; when the operation process includes a second operation process in which the electric window moves from an ending position to a starting position, the effective operating current of the preset operating voltage includes the effective operating current corresponding to the second operation process. For details relating to step 130 above, please refer to the following steps.

[0115] Step 1301: Obtain the number M of the first target sliding window and the number N of the second target sliding window.

[0116] The first target sliding window is a preset sliding window corresponding to the motion stage during the first operation, and the second target sliding window is a preset sliding window corresponding to the motion stage during the second operation.

[0117] Step 132: When both the quantity M and the quantity N are greater than or equal to the first quantity threshold, calculate the average value of the operating current in each first target sliding window to obtain M first average values; and calculate the average value of the operating current in each second target sliding window to obtain N second average values.

[0118] Step 1303: Calculate the mean of the m smallest first means among the M first means to obtain the effective operating current corresponding to the first operating process; and calculate the mean of the m smallest second means among the N second means to obtain the effective operating current corresponding to the second operating process.

[0119] Specifically, taking the first running process from the starting position to the ending position as an example, when calculating the effective operating current, by calculating the number M of the first target sliding windows and judging the relationship between the number M of the first target sliding windows and the first quantity threshold, it can be determined whether there is an abnormality in the running process. When the number M of the first target sliding windows is less than the first quantity threshold, it indicates that there is an abnormality in the running process. If the effective operating current is continued to be calculated, the reliability of the calculated effective operating current will be low. When both the number M and the number N are greater than or equal to the first quantity threshold, the average value of the running current in each first target sliding window is calculated to obtain M first average values; and the average value of the running current in each second target sliding window is calculated to obtain N second average values.

[0120] As a specific example, taking the first running process of the electric window from the starting position to the ending position as an example, the number of the first target sliding windows collected during the first running process is denoted as M.

[0121] The first quantity threshold can determine whether there is an abnormality in the operation process. For example, if the first quantity threshold is 40, when the number M of the first target sliding window is less than 40, it indicates that there is an abnormality in the operation process. If the effective working current is calculated, the reliability of the calculated effective working current is low. It is possible to choose to re-acquire the dataset corresponding to the operation process of the electric window to obtain the first target stall current with higher reliability.

[0122] In some embodiments, a temporary array can be pre-defined to store the first mean. After calculating M first means, these M means are stored in the pre-defined temporary array (SZ_BUFFER), and the M first means are sorted in monotonically decreasing order. The smallest m first means can be extracted from this array to calculate the average of the smallest m first means, thus obtaining the effective operating current corresponding to the first operating process. For example, m = 10 can be used to calculate the average of the 10 smallest first means, thus obtaining the effective operating current corresponding to the first operating process. Optionally, a temporary array can also be pre-defined to store the second mean. After calculating N second means, these N second means are stored in the temporary array, and the N second means are sorted in monotonically decreasing order. The smallest n second means can be extracted from this array to calculate the average of the smallest n second means, thus obtaining the effective operating current corresponding to the second operating process. It is understood that M is greater than m, and N is greater than n.

[0123] The second operation involves the electric window moving from the endpoint to the starting point. The number of second target sliding windows collected during this second operation is denoted as N. A first quantity threshold can also be used to determine if there are any anomalies in the second operation. For example, if the first quantity threshold is 40, and the number of second target sliding windows N is less than 40, it indicates an anomaly in the operation. If the effective operating current continues to be calculated, the reliability of the calculated effective operating current will be low. Therefore, it is advisable to re-acquire the dataset corresponding to the electric window's operation to obtain a more reliable first target stall current.

[0124] In some embodiments, a temporary array can be pre-defined to store the second means. After calculating N second means, these N means are stored in the pre-defined temporary array (SZ_BUFFER), and the N second means are sorted in monotonically decreasing order. The smallest n second means can be extracted from this array to calculate the average of the smallest n second means, thus obtaining the effective operating current corresponding to the second operating process. For example, n = 10 can be chosen, and the average of the 10 smallest second means can be calculated to obtain the effective operating current corresponding to the second operating process.

[0125] In some embodiments, when the operation process includes a first operation process in which the electric window moves from the starting position to the ending position, the initial stall current of the preset operating voltage includes the initial stall current corresponding to the first operation process.

[0126] In the case where the operation process includes a second operation process where the electric window moves from the end position to the start position, the initial stall current of the preset operating voltage includes the initial stall current corresponding to the second operation process;

[0127] In step 130 above, determining the initial stall current of the electric window based on the preset operating voltage according to the operating current corresponding to the stop phase in each of the operating processes can specifically involve obtaining the peak value of the operating current corresponding to the movement phase in the first operating process to obtain the initial stall current corresponding to the first operating process; and obtaining the peak value of the operating current corresponding to the movement phase in the second operating process to obtain the initial stall current corresponding to the second operating process.

[0128] According to the embodiments of this application, by obtaining the peak value of the operating current corresponding to the motion phase during the first operation, the initial stall current corresponding to the first operation can be quickly determined. Similarly, by obtaining the peak value of the operating current corresponding to the motion phase during the second operation, the initial stall current corresponding to the second operation can be quickly determined.

[0129] In some embodiments, step 140 above involves generating a first target stall current corresponding to a preset operating voltage based on the average information of the effective operating current and the initial stall current. Specifically, this may include:

[0130] Step 1401: In the case that the operation process includes a first operation process of the electric window moving from the starting position to the ending position and a second operation process of the electric window moving from the ending position to the starting position, calculate the average of the effective operating current and the initial stall current corresponding to the first operation process to obtain a first average; and calculate the average of the effective operating current and the initial stall current corresponding to the second operation process to obtain a second average.

[0131] Step 1402: Calculate the average of the first mean and the second mean to obtain the first target stall current corresponding to the preset operating voltage.

[0132] For example, the effective stall current is typically greater than the operating current of the electric window during normal operation and greater than the starting current of the electric window, but less than a certain value of the actual stall current. To improve the reliability of the target stall current, after obtaining the effective operating current of the first operating process and the first average value of the initial stall current corresponding to the first operating process, and the second average value of the effective operating current corresponding to the second operating process and the initial stall current corresponding to the second operating process, the average of the first average value and the second average value is further calculated, and the average of the first average value and the second average value is used as the first target stall current. This can effectively improve the reliability of the stall current provided in the embodiments of this application, avoid the electric window from failing to return to the starting point completely or failing to reach the destination, and also avoid the electric window from entering a thermal protection state and stopping operation midway.

[0133] Based on the same inventive concept, this application also provides a device 500 for determining the stall current of an electric window, corresponding to the aforementioned method for determining the stall current of an electric window. Specifically, in conjunction with... Figure 5 Please provide a detailed explanation.

[0134] Figure 5 This is a schematic diagram of the structure of a device for determining the stall current of an electric window according to an embodiment of this application, as shown below. Figure 5 As shown, the device 500 for determining the stall current of the electric window may include an acquisition module 510 and a processing module 520.

[0135] The acquisition module 510 is used to acquire a dataset corresponding to the operation process of the electric window when the electric window is controlled to move based on a preset operating voltage. The preset operating voltage is associated with the application scenario of the preset electric window. The operation process includes a first operation process from the starting position to the ending position and / or a second operation process from the ending position to the starting position. The dataset includes multiple operating currents of the electric window collected based on a preset acquisition frequency corresponding to each operation process.

[0136] Processing module 520 is used to perform characteristic change analysis on multiple operating currents corresponding to each operating process according to preset calibration rules, and to determine the operating current corresponding to the motion stage and the operating current corresponding to the stop stage in each operating process respectively.

[0137] The processing module 520 is also used to determine the effective operating current of the electric window based on the preset operating voltage according to the operating current corresponding to the movement stage in each operation process; and to determine the initial stall current of the electric window based on the preset operating voltage according to the operating current corresponding to the stop stage in each operation process.

[0138] The processing module 520 is also used to generate a first target stall current corresponding to a preset operating voltage based on the average information of the effective operating current and the initial stall current.

[0139] In some embodiments, the processing module 520 is further configured to reacquire the target stall current corresponding to the preset operating voltage at predetermined update intervals to obtain a second target stall current;

[0140] The processing module 520 is also used to calculate the difference between the first target stall current and the second target stall current;

[0141] The processing module 520 is also used to update the first target stall current to the second target stall current when the difference is greater than a preset threshold.

[0142] In some embodiments, the acquisition module 510 is further configured to sequentially acquire the set of operating currents to be analyzed according to a preset sliding window and the acquisition order of the operating currents corresponding to each operating process, wherein the preset sliding window is used to acquire a first preset number of operating currents, the step size of the preset sliding window is a second preset number of operating currents, and the set of operating currents includes the first preset number of operating currents.

[0143] The processing module 520 is also used to analyze the current change characteristics of the running current set in sequence according to the preset calibration rules, and determine the static stage, starting stage, moving stage and stopping stage in sequence.

[0144] The processing module 520 is also used to extract the operating current corresponding to the motion stage and the operating current corresponding to the stopping stage in each running process.

[0145] In some embodiments, the preset calibration rules include:

[0146] According to the collection order, the operating current in the operating current set is analyzed to see if it is greater than 0. If the operating current set is found to include a current value greater than 0, the first operating current greater than 0 is taken as the starting point of the start-up phase. The period before the starting point of the start-up phase is the static phase.

[0147] Given that the starting point of the start-up phase in the operation process is determined, the first current change rate of each operating current set is obtained sequentially from the starting point of the start-up phase, and the first target operating current set is determined based on the first current change rate of each operating current set. The current change rate of the first target operating current set is less than the first threshold. The first operating current in the first target operating current set is taken as the end point of the start-up phase, and the second operating current in the first target operating current set is taken as the starting point of the operation phase.

[0148] Given that the starting point of the motion phase in the operation process is determined, the second current change rate of each running current set is obtained sequentially from the starting point of the motion phase, and the second target running current set is determined based on the second current change rate of each running current set. The current change rate of the second target running current set is greater than the second threshold. The first running current in the second target running current set is taken as the end point of the motion phase, and the second running current in the second target running current set is taken as the starting point of the stopping phase.

[0149] Given a defined starting point for the stopping phase during operation, starting from the beginning of the moving phase, each operating current is sequentially checked to see if it is less than a third threshold. The first operating current to be less than the third threshold is then defined as the end point of the stopping phase.

[0150] In some embodiments, when the operation process includes a first operation process of the electric window from the starting position to the ending position, the effective operating current of the preset operating voltage includes the effective operating current corresponding to the first operation process.

[0151] In the case where the operation process includes a second operation process in which the electric window moves from the end position to the start position, the effective operating current of the preset operating voltage includes the effective operating current corresponding to the second operation process.

[0152] The acquisition module 510 is also used to acquire the number M of the first target sliding window and the number N of the second target sliding window, wherein the first target sliding window is a preset sliding window corresponding to the motion stage in the first running process, and the second target sliding window is a preset sliding window corresponding to the motion stage in the second running process.

[0153] The processing module 520 is further configured to calculate the average value of the operating current in each first target sliding window to obtain M first average values ​​when both the quantity M and the quantity N are greater than or equal to the first quantity threshold; and to calculate the average value of the operating current in each second target sliding window to obtain N second average values.

[0154] The processing module 520 is also used to calculate the mean of the smallest m first means among M first means to obtain the effective operating current corresponding to the first operating process; and to calculate the mean of the smallest m second means among N second means to obtain the effective operating current corresponding to the second operating process.

[0155] In some embodiments, when the operation process includes a first operation process in which the electric window moves from the starting position to the ending position, the initial stall current of the preset operating voltage includes the initial stall current corresponding to the first operation process.

[0156] In the case where the operation process includes a second operation process where the electric window moves from the end position to the start position, the initial stall current of the preset operating voltage includes the initial stall current corresponding to the second operation process;

[0157] The acquisition module 510 is also used to acquire the peak value of the operating current corresponding to the motion phase during the first operation, and to obtain the initial stall current corresponding to the first operation; and,

[0158] The acquisition module 510 is also used to acquire the peak value of the operating current corresponding to the motion stage during the second operation, so as to obtain the initial stall current corresponding to the second operation.

[0159] In some embodiments, the processing module 520 is further configured to, when the operation includes a first operation process in which the electric window moves from a starting position to an ending position and a second operation process in which the electric window moves from an ending position to a starting position, calculate the average of the effective operating current corresponding to the first operation process and the average of the initial stall current corresponding to the first operation process, to obtain a first average value; and,

[0160] The processing module 520 is also used to calculate the average of the effective operating current corresponding to the second operating process and the initial stall current corresponding to the second operating process, and obtain the second average value;

[0161] The processing module 520 is also used to calculate the average of the first mean and the second mean to obtain the first target stall current corresponding to the preset operating voltage.

[0162] In some embodiments, the processing module 520 is further configured to determine a first duration corresponding to the static phase, a second duration corresponding to the startup phase, a third duration corresponding to the motion phase, and a fourth duration corresponding to the stop phase based on the amount of operating current corresponding to the static phase, the startup phase, the motion phase, and the stop phase, respectively.

[0163] The processing module 520 is further configured to extract the operating current corresponding to the motion phase and the operating current corresponding to the stop phase in each running process when the first duration is less than the first preset duration associated with the stationary phase, the second duration is less than the second preset duration associated with the start-up phase, the third duration is less than the third preset duration associated with the motion phase, and the fourth duration is less than the fourth preset duration associated with the stop phase.

[0164] In some embodiments, if the first duration is not less than the first preset duration associated with the stationary phase, or the second duration is not less than the second preset duration associated with the start-up phase, or the third duration is not less than the third preset duration associated with the movement phase, or the fourth duration is not less than the fourth preset duration associated with the stop phase, the electric window movement is re-controlled based on the preset operating voltage, and the dataset corresponding to the electric window operation process is obtained.

[0165] It is understood that the device 500 for determining the stall current of an electric window in this application embodiment can correspond to the execution subject of the method for determining the stall current of an electric window provided in this application embodiment. For details of the operation and / or function of each module / unit of the device 500 for determining the stall current of an electric window, please refer to the description of the corresponding part in the method for determining the stall current of an electric window in the above application embodiment. For the sake of brevity, it will not be repeated here.

[0166] The device for determining the stall current of an electric window according to an embodiment of this application collects multiple operating currents of the electric window based on a preset sampling frequency during the process of controlling the electric window's movement based on a preset operating voltage. Since the operation process may include a first operation process from the starting position to the ending position and / or a second operation process from the ending position to the starting position, the device can then perform characteristic change analysis on the multiple operating currents corresponding to each operation process according to preset calibration rules, determining the operating current corresponding to the movement stage and the operating current corresponding to the stopping stage in each operation process. This allows for the rapid and accurate calibration of multiple different stages in the operation process. Subsequently, the device can determine the effective operating current of the electric window based on the preset operating voltage based on the operating current corresponding to the movement stage in each operation process; and determine the initial stall current of the electric window based on the preset operating voltage based on the operating current corresponding to the stopping stage in each operation process; finally, a first target stall current corresponding to the preset operating voltage is generated based on the average information of the effective operating current and the initial stall current. Therefore, the stall current is automatically acquired, improving the efficiency of stall current acquisition. In addition, since the preset operating voltage is related to the preset application scenario of the electric window, the stall current obtained based on the embodiments of this application is highly accurate and can be more applied to the application scenario of the electric window, improving the user's experience of using the electric window and extending the service life of the electronic control.

[0167] Figure 6 A schematic diagram of the structure of an electronic device according to an embodiment of this application is shown. Figure 6 As shown, the device may include a processor 601 and a memory 602 storing computer program instructions.

[0168] Specifically, the processor 601 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0169] Memory 602 may include mass storage for information or instructions. For example, and not limitingly, memory 602 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. In one instance, memory 602 may include removable or non-removable (or fixed) media, or memory 602 may be a non-volatile solid-state memory. Memory 602 may be internal or external to an electronic device.

[0170] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to one aspect of this disclosure.

[0171] The processor 601 reads and executes computer program instructions stored in the memory 602 to implement the method described in the embodiments of this application and achieve the corresponding technical effects achieved by executing the method in the embodiments of this application. For the sake of brevity, it will not be described in detail here.

[0172] In one example, the electronic device may also include a communication interface 603 and a bus 610. Wherein, as... Figure 6 As shown, the processor 601, memory 602, and communication interface 603 are connected through bus 610 and complete communication with each other.

[0173] The communication interface 603 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0174] Bus 610 includes hardware, software, or both, that couples components of an online information flow metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 610 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.

[0175] The electronic device can execute the method for determining the stall current of the electric window in the embodiments of this application, thereby achieving the corresponding technical effects of the method for determining the stall current of the electric window described in the embodiments of this application.

[0176] Furthermore, in conjunction with the method for determining the stall current of the electric window in the above embodiments, this application embodiment can provide a readable storage medium for implementation. This readable storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the methods for determining the stall current of the electric window in the above embodiments. Examples of readable storage media can be non-transitory machine-readable media, such as electronic circuits, semiconductor memory devices, read-only memory (ROM), floppy disks, compact disc read-only memory (CD-ROM), optical disks, hard disks, etc.

[0177] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0178] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (ROM), flash memory, erasable read-only memory (EROM), floppy disks, compact disc read-only memory (CD-ROM), optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0179] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0180] This application also provides a computer-readable storage medium storing computer program instructions; when executed by a processor, the computer program instructions implement the method for determining the stall current of an electric window provided in this application.

[0181] Furthermore, in conjunction with the method and apparatus for determining the stall current of the electric window in the above embodiments, and the readable storage medium, this application embodiment can provide a computer program product for implementation. When the instructions in the computer program product are executed by the processor of an electronic device, the electronic device causes the electronic device to execute any of the methods for determining the stall current of the electric window in the above embodiments.

[0182] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0183] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A method for determining the stall current of an electric window, characterized in that, The method includes: When the electric window is controlled to move based on a preset operating voltage, a dataset corresponding to the operation process of the electric window is obtained. The preset operating voltage is associated with a preset application scenario of the electric window. The operation process includes a first operation process from the starting position to the ending position and / or a second operation process from the ending position to the starting position. The dataset includes multiple operating currents of the electric window collected based on a preset acquisition frequency for each operation process. Based on the preset calibration rules, the characteristic change analysis of multiple operating currents corresponding to each operating process is performed to determine the operating current corresponding to the motion stage and the operating current corresponding to the stop stage in each operating process. Based on the operating current corresponding to each movement stage in the operation process, the effective operating current of the electric window based on the preset operating voltage is determined; and based on the operating current corresponding to each stop stage in the operation process, the initial stall current of the electric window based on the preset operating voltage is determined. Based on the average value of the effective operating current and the initial stall current, a first target stall current corresponding to the preset operating voltage is generated.

2. The method according to claim 1, characterized in that, After generating a first target stall current corresponding to the preset operating voltage based on the average information of the effective operating current and the initial stall current, the method further includes: At predetermined update intervals, the target stall current corresponding to the preset operating voltage is reacquired to obtain the second target stall current; Calculate the difference between the first target stall current and the second target stall current; If the difference is greater than a preset threshold, the first target stall current is updated to the second target stall current.

3. The method according to claim 1, characterized in that, The operation process also includes a stationary phase and a startup phase; the step of performing characteristic change analysis on multiple operating currents corresponding to each operation process according to preset calibration rules to determine the motion phase and stop phase of each operation process includes: According to the preset sliding window and the acquisition order of the operating current corresponding to each operating process, the set of operating currents to be analyzed is obtained sequentially. The length of the preset sliding window is a first preset number, the step size of the preset sliding window is a second preset number, and the set of operating currents includes the first preset number of operating currents. According to the preset calibration rules, the current change characteristics of the operating current set are analyzed in sequence to determine the static stage, the starting stage, the moving stage and the stopping stage to be calibrated in sequence. Extract the operating current corresponding to the motion phase and the operating current corresponding to the stopping phase in each of the operation processes.

4. The method according to claim 3, characterized in that, The preset calibration rules include: According to the acquisition sequence, the operating current in the set of operating currents is analyzed sequentially to see if it is greater than 0. If the set of operating currents is found to contain a current value greater than 0, the first operating current greater than 0 is taken as the starting point of the start-up phase. The period before the starting point of the start-up phase is the quiescent phase. Given that the starting point of the startup phase in the operation process is determined, the first current change rate of each set of operating currents is obtained sequentially from the starting point of the startup phase, and a first target set of operating currents is determined based on the first current change rate of each set of operating currents, wherein the current change rate of the first target set of operating currents is less than a first threshold, the first operating current in the first target set of operating currents is taken as the end point of the startup phase, and the second operating current in the first target set of operating currents is taken as the starting point of the operation phase. Given that the starting point of the motion phase in the operation process is determined, the second current change rate of each set of operating currents is obtained sequentially from the starting point of the motion phase, and a second target set of operating currents is determined based on the second current change rate of each set of operating currents, wherein the current change rate of the second target set of operating currents is greater than a second threshold, the first operating current in the second target set of operating currents is taken as the end point of the motion phase, and the second operating current in the second target set of operating currents is taken as the starting point of the stopping phase. Given that the starting point of the stopping phase in the operation process is determined, starting from the starting point of the operation phase, each operating current is sequentially detected to see if it is less than a third threshold, and the first operating current that is less than the third threshold is determined as the end point of the stopping phase.

5. The method according to claim 3, characterized in that, When the operation process includes a first operation process in which the electric window moves from the starting position to the ending position, the effective operating current of the preset operating voltage includes the effective operating current corresponding to the first operation process. When the operation process includes a second operation process in which the electric window moves from the end position to the start position, the effective operating current of the preset operating voltage includes the effective operating current corresponding to the second operation process. The step of determining the effective operating current of the electric window based on the preset operating voltage according to the operating current corresponding to each movement stage during the operation includes: Obtain the number M of the first target sliding window and the number N of the second target sliding window, wherein the first target sliding window is a preset sliding window corresponding to the motion stage during the first running process, and the second target sliding window is a preset sliding window corresponding to the motion stage during the second running process; When both the quantity M and the quantity N are greater than or equal to the first quantity threshold, the mean value of the operating current in each first target sliding window is calculated to obtain M first mean values; and the mean value of the operating current in each second target sliding window is calculated to obtain N second mean values. Calculate the mean of the m smallest first means among the M first means to obtain the effective operating current corresponding to the first operating process; and calculate the mean of the m smallest second means among the N second means to obtain the effective operating current corresponding to the second operating process.

6. The method according to claim 1, characterized in that, When the operation process includes a first operation process in which the electric window moves from the starting position to the ending position, the initial stall current of the preset operating voltage includes the initial stall current corresponding to the first operation process; When the operation process includes a second operation process in which the electric window moves from the end position to the start position, the initial stall current of the preset operating voltage includes the initial stall current corresponding to the second operation process; The step of determining the initial stall current of the electric window based on the preset operating voltage according to the operating current corresponding to each stop phase during operation includes: The peak value of the operating current corresponding to the motion phase in the first operating process is obtained to obtain the initial stall current corresponding to the first operating process. as well as, The peak value of the operating current corresponding to the motion stage during the second operation is obtained to obtain the initial stall current corresponding to the second operation.

7. The method according to claim 3, characterized in that, The step of generating a first target stall current corresponding to the preset operating voltage based on the average information of the effective operating current and the initial stall current includes: When the operation process includes a first operation process of the electric window moving from the starting position to the ending position and a second operation process of the electric window moving from the ending position to the starting position, the average of the effective operating current corresponding to the first operation process and the average of the initial stall current corresponding to the first operation process are calculated to obtain a first average value; and, Calculate the average of the effective operating current and the initial stall current corresponding to the second operating process to obtain the second average value; The average of the first mean and the second mean is calculated to obtain the first target stall current corresponding to the preset operating voltage.

8. The method according to claim 7, characterized in that, The step of extracting the operating current corresponding to the motion phase and the operating current corresponding to the stopping phase in each of the operating processes further includes: Based on the number of operating currents corresponding to the static phase, the startup phase, the movement phase, and the stop phase, the first duration corresponding to the static phase, the second duration corresponding to the startup phase, the third duration corresponding to the movement phase, and the fourth duration corresponding to the stop phase are determined. If the first duration is less than the first preset duration associated with the stationary phase, the second duration is less than the second preset duration associated with the start-up phase, the third duration is less than the third preset duration associated with the motion phase, and the fourth duration is less than the fourth preset duration associated with the stop phase, then the operating current corresponding to the motion phase and the operating current corresponding to the stop phase in each of the running processes are extracted.

9. The method according to claim 8, characterized in that, If the first duration is not less than the first preset duration associated with the stationary phase, or the second duration is not less than the second preset duration associated with the start-up phase, or the third duration is not less than the third preset duration associated with the movement phase, or the fourth duration is not less than the fourth preset duration associated with the stop phase, the electric window movement is re-controlled based on the preset operating voltage, and the dataset corresponding to the electric window operation process is obtained.

10. A device for controlling the stall current of an electric window, characterized in that, The device includes: The acquisition module is used to acquire a dataset corresponding to the operation process of the electric window when the electric window is controlled to move based on a preset operating voltage. The preset operating voltage is associated with a preset application scenario of the electric window. The operation process includes a first operation process of the electric window from the starting position to the ending position and / or a second operation process of the electric window from the ending position to the starting position. The dataset includes multiple operating currents of the electric window collected based on a preset acquisition frequency for each operation process. The processing module is used to perform characteristic change analysis on multiple operating currents corresponding to each operating process according to preset calibration rules, and to determine the operating current corresponding to the motion stage and the operating current corresponding to the stop stage in each operating process respectively. The processing module is further configured to determine the effective operating current of the electric window based on the preset operating voltage according to the operating current corresponding to each movement stage in the operation process; and to determine the initial stall current of the electric window based on the preset operating voltage according to the operating current corresponding to each stop stage in the operation process. The processing module is further configured to generate a first target stall current corresponding to the preset operating voltage based on the average information of the effective operating current and the initial stall current.

Citation Information

Patent Citations

  • Intelligent control method for automobile electric window

    CN102392576A

  • Power window current control method and device

    CN114922527A