CN116679110B - Method and device for determining the stall current of electric windows - Google Patents
Method and device for determining the stall current of electric windowsInfo
- Publication number
- CN116679110B CN116679110B CN202310614272.XA CN202310614272A CN116679110B CN 116679110 B CN116679110 B CN 116679110B CN 202310614272 A CN202310614272 A CN 202310614272A CN 116679110 B CN116679110 B CN 116679110B
- Authority
- CN
- China
- Prior art keywords
- current
- preset
- operation process
- stage
- locked
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/0092—Measuring current only
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power-Operated Mechanisms For Wings (AREA)
- Window Of Vehicle (AREA)
Abstract
The application discloses a method and a device for determining locked-rotor current of an electric window. The method for determining the locked-rotor current of the electric window comprises the steps of obtaining a data set corresponding to the operation process of the electric window under the condition that the movement of the electric window is controlled based on a preset operation voltage, carrying out characteristic change analysis on a plurality of operation currents corresponding to each operation process according to a preset calibration rule, respectively determining the operation current corresponding to a movement stage and the operation current corresponding to a stop stage in each operation process, determining the effective operation current of the electric window based on the preset operation voltage according to the operation current corresponding to the movement stage in each operation process, determining the initial locked-rotor current of the electric window based on the preset operation voltage according to the operation current corresponding to the stop stage in each operation process, and generating a first target locked-rotor current corresponding to the preset operation voltage according to average value information of the effective operation current and the initial locked-rotor current. According to the embodiment of the application, the locked rotor threshold can be efficiently and accurately set.
Description
Technical Field
The application belongs to the technical field of automatic control, and particularly relates to a method and a device for determining the locked-rotor current of an electric window.
Background
With the development and application of technology, the automatic detection and control is increasingly applied to daily life scenes. For example, the opening or closing of the window is automatically controlled by an electronic controller. The window may be a window disposed in a vehicle, or may be another facility equipped with a window.
In controlling the operation of a window based on an electronic controller, a stall threshold is often set. In the process of controlling the operation of the window, the operation current for controlling the operation of the window is collected, and the window is controlled to stop moving based on the relation between the operation current and the locked-rotor threshold value. When the locked rotor threshold value is inaccurate, the window cannot be accurately opened or closed to a target state easily, the use experience of a user is affected, and the conditions that the service life of the electronic controller is affected due to heating and the like of the controller of the window are easily caused.
At present, the locked-rotor threshold value based on the window controlled by the electronic controller is often set by manpower, and because the locked-rotor threshold values required by different windows in different running environments are different, the threshold value setting process is high in artificial professional requirements, and a plurality of people are often required to cooperate, so that the setting efficiency of the locked-rotor threshold value is low and is easy to inaccuracy.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining the locked-rotor current of an electric window, which can efficiently and accurately set a locked-rotor threshold.
In a first aspect, an embodiment of the present application provides a method for determining a locked-rotor current of an electric window, where the method includes:
Under the condition that the movement of the electric window is controlled based on a preset operation voltage, acquiring a data set corresponding to the operation process of the electric window, wherein the preset operation voltage is associated with an application scene of the preset electric window, the operation process comprises a first operation process from a starting point position to an end point position of the electric window and/or a second operation process from the end point position to the starting point position of the electric window, and the data set comprises a plurality of operation currents of the electric window, which are corresponding to each operation process and are acquired based on a preset acquisition frequency;
performing characteristic change analysis on a plurality of operation currents corresponding to each operation process according to a preset calibration rule, and respectively determining the operation current corresponding to a motion stage and the operation current corresponding to a stop stage in each operation process;
Determining the effective working current of the electric window based on the preset operation voltage according to the operation current corresponding to the motion stage in each operation process, and determining the initial locked-rotor current of the electric window based on the preset operation voltage according to the operation current corresponding to the stop stage in each operation process;
And generating a first target locked-rotor current corresponding to the preset operating voltage according to the average value information of the effective working current and the initial locked-rotor current.
In some implementations of the first aspect, after generating the first target locked-rotor current corresponding to the preset operating voltage according to the average value information of the effective operating current and the initial locked-rotor current, the method further includes:
Re-acquiring a target locked-rotor current corresponding to a preset operating voltage at intervals of a preset updating period to obtain a second target locked-rotor current;
Calculating a difference value between the first target locked-rotor current and the second target locked-rotor current;
and updating the first target locked-rotor current to the second target locked-rotor current under the condition that the difference value is larger than a preset threshold value.
In some implementations of the first aspect, the operation process further includes a stationary phase and a start phase, and the feature change analysis is performed on a plurality of operation currents corresponding to each operation process according to a preset calibration rule to determine a motion phase and a stop phase in each operation process, including:
Sequentially acquiring an operation current set to be analyzed according to a preset sliding window and an acquisition sequence of operation currents corresponding to each operation process, wherein the preset sliding window is used for acquiring a first preset number of operation currents, the step length of the preset sliding window is a second preset number of operation currents, and the operation current set comprises the first preset number of operation currents;
According to a preset calibration rule, current change characteristics of an operation current set are sequentially analyzed, and a static stage, a starting stage, a moving stage and a stopping stage are sequentially calibrated;
and extracting the running current corresponding to the movement stage and the running current corresponding to the stop stage in each running process.
In some implementations of the first aspect, the preset calibration rule includes:
sequentially analyzing whether the running current in the running current set is greater than 0 according to the acquisition sequence, and taking the first running current greater than 0 as the starting point of a starting stage under the condition that the running current set is detected to comprise a current value greater than 0, wherein the starting point of the starting stage is preceded by a resting stage;
Under the condition that the starting point of a starting stage in the running process is determined, sequentially acquiring a first current change rate of each running current set from the starting point of the starting stage, and determining a first target running current set according to the first current change rate of each running current set, wherein the current change rate of the first target running current set is smaller than a first threshold value, the first running current in the first target running current set is used as the end point of the starting stage, and the second running current in the first target running current set is used as the starting point of the moving stage;
Under the condition that the starting point of a motion stage in the operation process is determined, sequentially acquiring a second current change rate of each operation current set from the starting point of the motion stage, and determining a second target operation current set according to the second current change rate of each operation current set, wherein the current change rate of the second target operation current set is larger than a second threshold value, the first operation current in the second target operation current set is used as the end point of the motion stage, and the second operation current in the second target operation current set is used as the starting point of the stop stage;
In the case of determining the start point of the stop phase during operation, it is sequentially detected from the start point of the movement phase whether each of the operation currents is smaller than the third threshold value, and the first operation current smaller than the third threshold value is determined as the end point of the stop phase.
In some implementations of the first aspect, in a case where the operation process includes a first operation process of the electric window from the start position to the end position, the effective operating current of the preset operation voltage includes an effective operating current corresponding to the first operation process;
Under the condition that the operation process comprises a second operation process from the end position to the start position of the electric window, the effective working current of the preset operation voltage comprises the effective working current corresponding to the second operation process;
According to the operation current corresponding to the motion stage in each operation process, determining the effective working current of the electric window based on the preset operation voltage comprises the following steps:
acquiring the number M of first target sliding windows and the number N of second target sliding windows, wherein the first target sliding windows are preset sliding windows corresponding to movement phases in a first operation process, and the second target sliding windows are preset sliding windows corresponding to movement phases in a second operation process;
Calculating the average value of the running currents in each first target sliding window to obtain M first average values under the condition that the number M and the number N are larger than or equal to a first number threshold value;
Calculating the average value of the M first average values, which are the smallest, of the M first average values to obtain an effective working current corresponding to the first operation process, and calculating the average value of the M second average values, which are the smallest, of the N second average values to obtain an effective working current corresponding to the second operation process.
In some implementations of the first aspect, in a case that the operation process includes a first operation process of the electric window from a start position to an end position, the initial locked-rotor current of the preset operation voltage includes an initial locked-rotor current corresponding to the first operation process;
under the condition that the operation process comprises a second operation process from the end position to the start position of the electric window, the initial locked-rotor current of the preset operation voltage comprises the initial locked-rotor current corresponding to the second operation process;
according to the operation current corresponding to the stop stage in each operation process, determining the initial locked-rotor current of the electric window based on the preset operation voltage comprises the following steps:
obtaining the peak value in the running current corresponding to the movement stage in the first running process to obtain the initial locked-rotor current corresponding to the first running process, and
And obtaining a peak value in the running current corresponding to the movement stage in the second running process, and obtaining the initial locked-rotor current corresponding to the second running process.
In some implementations of the first aspect, generating a first target stall current corresponding to a preset operating voltage according to average information of the effective operating current and the initial stall current includes:
Under the condition that the operation process comprises a first operation process from a starting point position to an end point position of the electric window and a second operation process from the end point position to the starting point position of the electric window, calculating the average value of effective working current corresponding to the first operation process and initial locked-rotor current corresponding to the first operation process to obtain a first average value, and
Calculating the average value of the effective working current corresponding to the second operation process and the initial locked-rotor current corresponding to the second operation process to obtain a second average value;
And calculating the average value of the first average value and the second average value to obtain a first target locked-rotor current corresponding to the preset running voltage.
In some implementations of the first aspect, extracting an operation current corresponding to a motion phase and an operation current corresponding to a stop phase in each operation process further includes:
Determining a first duration corresponding to the stationary phase, a second duration corresponding to the starting phase, a third duration corresponding to the moving phase and a fourth duration corresponding to the stopping phase according to the quantity of running currents respectively corresponding to the stationary phase, the starting phase, the moving phase and the stopping phase;
Extracting running current corresponding to a motion stage and running current corresponding to a stop stage in each running process under the condition that the first time length is smaller than the first preset time length associated with the stationary stage, the second time length is smaller than the second preset time length associated with the start stage, the third time length is smaller than the third preset time length associated with the motion stage and the fourth time length is smaller than the fourth preset time length associated with the stop stage.
In some implementations of the first aspect, when the first time period is not less than a first preset time period associated with the stationary phase or the second time period is not less than a second preset time period associated with the start phase or the third time period is not less than a third preset time period associated with the motion phase or a fourth time period associated with the stop phase, the motion of the electric window is controlled again based on the preset operation voltage, and a data set corresponding to the operation process of the electric window is obtained.
In a second aspect, an embodiment of the present application provides a device for determining a locked-rotor current of an electric window, including:
The device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a data set corresponding to an operation process of the electric window under the condition of controlling the movement of the electric window based on a preset operation voltage, wherein the preset operation voltage is associated with an application scene of the preset electric window, the operation process comprises a first operation process from a starting point position to an end point position of the electric window and/or a second operation process from the end point position to the starting point position of the electric window, and the data set comprises a plurality of operation currents of the electric window, which are corresponding to each operation process and are acquired based on a preset acquisition frequency;
The processing module is used for carrying out characteristic change analysis on a plurality of operation currents corresponding to each operation process according to a preset calibration rule, and respectively determining the operation current corresponding to a motion stage and the operation current corresponding to a stop stage in each operation process;
The processing module is also used for determining the effective working current of the electric window based on the preset operating voltage according to the operating current corresponding to the motion stage in each operating process;
the processing module is further used for generating a first target locked-rotor current corresponding to the preset operating voltage according to the average value information of the effective working current and the initial locked-rotor current.
In a third aspect, the application provides an electronic device, which comprises a processor and a memory storing computer program instructions, wherein the processor is used for determining the locked-rotor current of the power window in the first aspect or any one of the realizable modes when executing the computer program instructions.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method of determining a locked rotor current of a power window in the first aspect or any of the realizable aspects of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, instructions in which, when executed by a processor of an electronic device, cause the electronic device to perform a method for determining a locked rotor current of a motorized window according to the first aspect or any of the realizable forms of the first aspect.
The embodiment of the application provides a method and a device for determining the locked-rotor current of an electric window. First, in a process of controlling movement of the power window based on a preset operation voltage, a plurality of operation currents of the power window are collected based on a preset collection frequency. Since the operation process may include a first operation process from a start position to an end position of the electric window and/or a second operation process from the end position to the start position of the electric window, next, feature change analysis may be performed on a plurality of operation currents corresponding to each operation process according to a preset calibration rule, to determine an operation current corresponding to a movement stage and an operation current corresponding to a stop stage in each operation process, respectively. In this way, a number of different phases of the operation process can be quickly and accurately identified. The method comprises the steps of determining an effective working current of an electric window based on a preset operating voltage according to an operating current corresponding to a motion stage in each operating process, determining an initial locked-rotor current of the electric window based on the preset operating voltage according to an operating current corresponding to a stop stage in each operating process, and finally generating a first target locked-rotor current corresponding to the preset operating voltage according to average value information of the effective working current and the initial locked-rotor current. Therefore, the automatic acquisition of the locked-rotor current is realized, the acquisition efficiency of the locked-rotor current is improved, and in addition, because the preset running voltage is associated with the application scene of the preset electric window, the locked-rotor current obtained based on the embodiment of the application has high accuracy, can be more applied to the application scene where the electric window is located, and provides the use experience of a user on the electric window and the service life of electronic control.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings that are needed to be used in the embodiments of the present application will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
Fig. 1 is a flow chart of a method for determining a locked-rotor current of an electric window according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a variation of an operating current provided by an embodiment of the present application;
FIG. 3 is a schematic illustration of calibration of an operating current provided by an embodiment of the present application;
FIG. 4is a schematic diagram of a cache queue according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a device for determining a locked-rotor current of an electric window according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings and the detailed embodiments. It should be understood that the particular embodiments described herein are meant to be illustrative of the application only and not limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the application by showing examples of the application.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of additional identical elements in a process, method, article, or apparatus that comprises the element.
With the development and application of technology, the automatic detection and control is increasingly applied to daily life scenes. For example, the opening or closing of the window is automatically controlled by an electronic controller. The window may be a window disposed in a vehicle, or may be another facility equipped with a window.
In controlling the operation of a window based on an electronic controller, a stall threshold is often set. In the process of controlling the operation of the window, the operation current for controlling the operation of the window is collected, and the window is controlled to stop moving based on the relation between the operation current and the locked-rotor threshold value. For example, when the collected actual running current in the door and window movement process is larger than the set locked-rotor threshold, the window is controlled to stop moving, and when the collected running current in the door and window movement process is smaller than the set locked-rotor threshold, the window continues to run.
When the locked rotor threshold value is inaccurate, the window cannot be accurately opened or closed to a target state easily, the use experience of a user is affected, and the conditions that the service life of the electronic controller is affected due to heating and the like of the controller of the window are easily caused.
At present, the locked-rotor threshold value based on the window controlled by the electronic controller is often set by manpower, and because the locked-rotor threshold values required by different windows in different running environments are different, the threshold value setting process is high in artificial professional requirements, and a plurality of people are often required to cooperate, so that the setting efficiency of the locked-rotor threshold value is low and is easy to inaccuracy.
In order to solve the problems in the prior art, the embodiment of the application provides a method and a device for determining the locked-rotor current of an electric window, which can efficiently and accurately set a locked-rotor threshold. The method for determining the locked-rotor current of the power window provided by the embodiment of the application is first described below.
Fig. 1 is a flow chart of a method for determining a locked-rotor current of an electric window according to an embodiment of the present application. As shown in fig. 1, the method may include the following steps 110 to 140.
Step 110, under the condition of controlling the movement of the electric window based on the preset operation voltage, acquiring a data set corresponding to the operation process of the electric window.
The method comprises the steps that a preset operation voltage is associated with an application scene of a preset electric window, the operation process comprises a first operation process from a starting point position to an end point position of the electric window and/or a second operation process from the end point position to the starting point position of the electric window, and a data set comprises a plurality of operation currents of the electric window, which are corresponding to each operation process and are acquired based on a preset acquisition frequency;
Step 120, performing characteristic change analysis on a plurality of operation currents corresponding to each operation process according to a preset calibration rule, and respectively determining the operation current corresponding to a motion stage and the operation current corresponding to a stop stage in each operation process;
Step 130, determining the effective working current of the electric window based on the preset operation voltage according to the operation current corresponding to the motion stage in each operation process, and determining the initial locked-rotor current of the electric window based on the preset operation voltage according to the operation current corresponding to the stop stage in each operation process;
And 140, generating a first target locked-rotor current corresponding to the preset operating voltage according to the average value information of the effective working current and the initial locked-rotor current.
Specifically, the preset operating voltage is associated with an application scenario of the preset power window. Taking a power window disposed in a vehicle as an example, a locked-up voltage required for the power window in a non-started state of the vehicle is different from a locked-up voltage required for the power window in a started state of the vehicle. Therefore, through correlating the preset operation voltage with the application scene of the preset electric window, the finally obtained locked-rotor current is high in accuracy, and the method is more suitable for the application scene of the electric window.
For example, the operation of the power window may include a first operation of the power window from a start position to an end position and/or a second operation of the power window from the end position to the start position. Taking an application scenario in which the vehicle is in an inactive state as an example, the first operation process may be a complete ascending process of the electric window from the bottom to the top, and the second operation process may be a complete descending process of the electric window from the top to the bottom.
In the operation process of the electric window, the operation current of the electric window can be acquired based on the preset acquisition frequency, so that a data set corresponding to the operation process can be obtained. It will be appreciated that when the running process comprises the first running process and the second running process, the data set may comprise in particular a data set corresponding to the first running process and a data set corresponding to the second running process.
After the data set corresponding to the operation process is obtained, characteristic change analysis can be performed on the operation current in each data set according to a preset calibration rule, so that the operation current respectively corresponding to the movement stage and the stop stage of the electric window is determined from the data set.
After the running currents corresponding to the movement stage and the stop stage are determined, the effective working current of the electric window based on the preset running voltage can be determined according to the running current corresponding to the movement stage in each running process;
and finally, generating a first target locked-rotor current corresponding to the preset operating voltage according to the average value information of the effective working current and the initial locked-rotor current.
According to the embodiment of the application, through the preset calibration rule, the operation current corresponding to the motion stage and the operation current corresponding to the stop stage in each operation process can be analyzed and calibrated, and a plurality of different stages in the operation process can be rapidly and accurately calibrated. The method comprises the steps of determining an effective working current of an electric window based on a preset operating voltage according to an operating current corresponding to a motion stage in each operating process, determining an initial locked-rotor current of the electric window based on the preset operating voltage according to an operating current corresponding to a stop stage in each operating process, and finally generating a first target locked-rotor current corresponding to the preset operating voltage according to average value information of the effective working current and the initial locked-rotor current.
In some embodiments, after generating the first target locked-rotor current corresponding to the preset operating voltage according to the average value information of the effective operating current and the initial locked-rotor current, the method further includes:
Re-acquiring a target locked-rotor current corresponding to a preset operating voltage at intervals of a preset updating period to obtain a second target locked-rotor current;
Calculating a difference value between the first target locked-rotor current and the second target locked-rotor current;
and updating the first target locked-rotor current to the second target locked-rotor current under the condition that the difference value is larger than a preset threshold value.
The predetermined update period may be set to be a period in units of weeks, months, years, and the like, for example, and is not particularly limited herein.
After the first target locked-rotor current is obtained, when the predetermined updating period is set, the method for determining the locked-rotor current provided by the embodiment of the application is combined, and the target locked-rotor current corresponding to the preset operating voltage, namely the second target locked-rotor current, is obtained again.
By calculating the difference value between the first target locked-rotor current and the second target locked-rotor current and determining the preset threshold value, whether the first target locked-rotor current can still meet the current application scene can be known. And particularly, under the condition that the difference value is larger than a preset threshold value, updating the first target locked-rotor current to the second target locked-rotor current. And taking the second target locked-rotor current as the locked-rotor current required by the electric window.
According to the embodiment of the application, whether the locked-rotor current needs to be updated or not is detected regularly, and especially under the condition that the locked-rotor current needs to be updated, so that the rationality of the locked-rotor current setting in an application scene can be ensured, and the problem that the initial locked-rotor current threshold value is unreasonable due to the abrasion of a mechanical structure and the ageing of a friction strip in the use process of the electric window can be effectively avoided.
The step 120 is related to performing feature change analysis on a plurality of operation currents corresponding to each operation process according to a preset calibration rule, and determining the operation current corresponding to the motion stage and the operation current corresponding to the stop stage in each operation process respectively.
Step 1201, sequentially acquiring an operation current set to be analyzed according to a preset sliding window and an acquisition sequence of operation currents corresponding to each operation process.
The length of the preset sliding window is a first preset number, the step length of the preset sliding window is a second preset number, and the running current set comprises running currents of the first preset number;
Step 1202, sequentially analyzing current change characteristics of an operation current set according to a preset calibration rule, and determining a sequential calibration stationary phase, a starting phase, a motion phase and a stopping phase;
Step 1203, extracting an operation current corresponding to a motion stage and an operation current corresponding to a stop stage in each operation process.
By way of example, the operation of the motorized window may be divided into a stationary phase, a start phase, a movement phase and a stop phase. By way of example, fig. 2 is a schematic diagram illustrating a variation of an operating current provided by an embodiment of the present application, taking the above-described movement process of a power window in a vehicle as an example. The current corresponding to fig. 2 is not calibrated yet. FIG. 3 is a schematic diagram of calibration of an operating current according to an embodiment of the present application. As shown in connection with fig. 3, the operating current is at rest 301, at start 302, at motion 303, and at stop 304, respectively.
In some embodiments, the preset sliding window may be understood as a buffer (buffer) queue, where the length of the preset sliding window is the buffering amount of the buffer queue, the buffering amount of the buffer queue is a first preset amount, and the length of the preset sliding window is the first preset amount. For example, the set of operating currents to be analyzed may be obtained using a Buffer, i.e. the first preset number of operating currents may be obtained each time based on a preset sliding window. The step length of the preset sliding window is the number of the pop-up running currents of the cache queue each time, and if the step length of the preset sliding window is 1, the number of the pop-up running currents of the cache queue each time is 1.
Taking a buffer queue with a buffer size of 10 as an example, the first preset number of 10 is that the running current set to be analyzed includes 10 running currents. As shown in the cache line 401 shown in fig. 4, the direction 402 is a moving direction of the cache line, that is, a sliding direction of the sliding window. The running currents are sequentially ordered from first to second according to the sequence of the acquisition time. Continuing to combine with FIG. 4, the Buffer queue is used to obtain the running current set to be analyzed, specifically, the original queue head (i.e. Buffer [0 ]) is popped up in each process of updating the Buffer queue, the data from the original Buffer [1] to Buffer [9] are moved forward by one position to be used as the data from the new buffers [0] to Buffer [8], and then the new data is inserted into the queue tail (Buffer [9 ]).
According to the embodiment of the application, after the running current to be analyzed is extracted each time, the running currents of the electric window can be calibrated into a static stage, a starting stage, a moving stage and a stopping stage in sequence according to the preset calibration rule.
As a specific example, the preset calibration rules involved in the step 1202 may include:
sequentially analyzing whether the running current in the running current set is greater than 0 according to the acquisition sequence, and taking the first running current greater than 0 as the starting point of a starting stage under the condition that the running current set is detected to comprise a current value greater than 0, wherein the starting point of the starting stage is preceded by a resting stage;
Under the condition that the starting point of the starting stage in the running process is determined, sequentially acquiring a first current change rate of each running current set from the starting point of the starting stage, and determining a first target running current set according to the first current change rate of each running current set. The current change rate of the first target operating current set is smaller than a first threshold value, the first operating current in the first target operating current set is used as an end point of a starting stage, and the second operating current in the first target operating current set is used as a starting point of a movement stage;
Under the condition that the starting point of a motion stage in the operation process is determined, sequentially acquiring a second current change rate of each operation current set from the starting point of the motion stage, and determining a second target operation current set according to the second current change rate of each operation current set, wherein the current change rate of the second target operation current set is larger than a second threshold value, the first operation current in the second target operation current set is used as the end point of the motion stage, and the second operation current in the second target operation current set is used as the starting point of the stop stage;
In the case of determining the start point of the stop phase during operation, it is sequentially detected from the start point of the movement phase whether each of the operation currents is smaller than the third threshold value, and the first operation current smaller than the third threshold value is determined as the end point of the stop phase.
Specifically, since the operation currents are analyzed sequentially according to the collection sequence, when the collected operation currents are greater than 0, the electric window is stated to start to move, and the operation process enters the starting stage.
And according to the acquisition sequence, continuously analyzing the running current, wherein the current change rate corresponding to the motion stage is smaller due to the current change rate corresponding to the running current in the starting stage. Thus, the end of the start phase and the start of the motion phase can be determined by analyzing the current rate of change.
Alternatively, the maximum slope of the current value in the running current set corresponding to the fitting function may be used as the first current change rate of the running current set, or the difference between the maximum current value and the minimum current value in the running current set may be used as the first current change rate of the running current set, which is not particularly limited herein.
Under the condition that the starting point of a starting stage in the running process is determined, sequentially acquiring a first current change rate of each running current set from the starting point of the starting stage, and taking the first running current in the running current set as the end point of the starting stage and the second running current in the first target running current set as the starting point of the moving stage when the current change rate of the running current set is detected to be smaller than a first threshold value. Therefore, the operation current corresponding to the starting stage in the whole operation process can be accurately found.
Alternatively, the effective starting current value of the power window may be determined according to the corresponding operating current of the starting phase. For example, a peak value of the operating current may be found from the operating current corresponding to the start-up phase, and the peak value may be used as an effective start-up current value of the power window.
In some embodiments, the analysis of the operating current continues with the determination of the start of the motion phase during operation. Since the rate of change of the corresponding operating current in the stop phase is relatively large with respect to the rate of change of the corresponding operating current in the motion phase, the end point of the motion phase and the start point of the stop phase can be determined by analyzing the change of the current rate.
Alternatively, the maximum slope of the current value in the running current set corresponding to the fitting function may be used as the second current change rate of the running current set, or the difference between the maximum current value and the minimum current value in the running current set may be used as the second current change rate of the running current set, which is not particularly limited herein.
In the case of determining the start point of the stop phase during operation, it is sequentially detected from the start point of the movement phase whether each of the operation currents is smaller than the third threshold value, and the first operation current smaller than the third threshold value is determined as the end point of the stop phase.
According to the embodiment of the application, the operation process of automatically calibrating the electric window can be realized, the accuracy is high, and the calibration efficiency can be effectively improved.
In order to further improve the accuracy of the calibration result, the integrity check can be performed on a plurality of currents corresponding to the operation process. The method comprises the steps of extracting running current corresponding to a motion stage and running current corresponding to a stop stage in each running process, and determining a first duration corresponding to the stationary stage, a second duration corresponding to the start stage, a third duration corresponding to the motion stage and a fourth duration corresponding to the stop stage according to the quantity of the running currents corresponding to the stationary stage, the start stage, the motion stage and the stop stage respectively.
Extracting running current corresponding to a motion stage and running current corresponding to a stop stage in each running process under the condition that the first time length is smaller than the first preset time length associated with the stationary stage, the second time length is smaller than the second preset time length associated with the start stage, the third time length is smaller than the third preset time length associated with the motion stage and the fourth time length is smaller than the fourth preset time length associated with the stop stage.
In some embodiments, when the first time length is not less than the first preset time length or the second time length associated with the stationary phase is not less than the second preset time length or the third time length associated with the starting phase is not less than the third preset time length or the fourth time length associated with the moving phase is not less than the fourth preset time length associated with the stopping phase, controlling the movement of the electric window again based on the preset operation voltage, and acquiring a data set corresponding to the operation process of the electric window.
In other words, when the running process is in a stage for more than a certain time, the movement of the electric window is judged to be incomplete in the running process of the electric window, so that large errors are easily caused in the locked-rotor current, and the locked-rotor current is determined after the running current is acquired again.
In some embodiments, the effective operating current of the preset operating voltage includes an effective operating current corresponding to a first operating process in a case where the operating process includes a first operating process from a start position to an end position of the power window, and includes an effective operating current corresponding to a second operating process in a case where the operating process includes a second operating process from the end position to the start position of the power window. Referring to the above step 130, the following steps may be specifically referred to.
In step 1301, the number M of the first target sliding windows and the number N of the second target sliding windows are acquired.
The first target sliding window is a preset sliding window corresponding to a movement stage in a first operation process, and the second target sliding window is a preset sliding window corresponding to a movement stage in a second operation process.
And 132, calculating the average value of the running current in each first target sliding window to obtain M first average values under the condition that the number M and the number N are larger than or equal to a first number threshold value, and calculating the average value of the running current in each second target sliding window to obtain N second average values.
In step 1303, the average value of the M first average values that are the smallest in the M first average values is calculated to obtain an effective working current corresponding to the first operation process, and the average value of the M second average values that are the smallest in the N second average values is calculated to obtain an effective working current corresponding to the second operation process.
Specifically, taking a first operation process from a starting point position to an end point position as an example, when calculating the effective working current, by calculating the number M of the first target sliding windows, judging the relationship between the number M of the first target sliding windows and the first number threshold value, whether the operation process is abnormal or not can be judged, when the number M of the first target sliding windows is smaller than the first number threshold value, the operation process is described as abnormal, and if the effective working current is continuously calculated, the reliability of the calculated effective working current is low. Under the condition that the number M and the number N are larger than or equal to a first number threshold value, calculating the average value of running currents in each first target sliding window to obtain M first average values; and calculating the average value of the running current in each second target sliding window to obtain N second average values.
As a specific example, taking a first operation process from a start position to an end position of the electric window as an example, the number of first target sliding windows acquired in the first operation process is denoted as M.
The first number threshold may determine whether an operation process is abnormal, for example, the first number threshold=40, when the number M of the first target sliding windows is less than 40, which indicates that the operation process is abnormal, if the effective working current continues to be calculated, the reliability of the calculated effective working current is low, and the data set corresponding to the operation process of the electric window may be selected to be re-acquired, so as to obtain the reliability and obtain the first target blocking current.
In some embodiments, a temporary array for storing the first means may be preset, after the M first means are calculated, the M first means are stored in a preset temporary array (sz_buffer), and the M first means are sorted in a monotonically decreasing manner, so that the minimum M first means may be extracted therefrom, so as to calculate the average of the minimum M first means, and obtain an effective working current corresponding to the first operation process. For example, it may be taken that m=10, and a minimum average value of 10 first average values is calculated, so as to obtain an effective working current corresponding to the first operation procedure. Optionally, a temporary array for storing the second mean value may be preset, after the N second mean values are obtained by calculation, the N second mean values may be stored in the temporary array, and the N second mean values may be sorted in a monotonically decreasing manner, from which the smallest N second mean values may be extracted, so as to calculate the average value of the smallest N second mean values, and the effective working current corresponding to the second running process may be obtained. It is understood that M is greater than M and N is greater than N.
The electric window is in a second operation process from the end position to the start position, and the number of second target sliding windows acquired in the second operation process is recorded as N. The first number threshold may also determine whether the second operation process is abnormal, for example, the first number threshold=40, when the number N of the second target sliding windows is less than 40, which indicates that the operation process is abnormal, if the effective working current continues to be calculated, the reliability of the calculated effective working current is low, and the data set corresponding to the operation process of the electric window may be selected to be re-acquired, so as to obtain the reliability and obtain the first target locked-rotor current.
In some embodiments, a temporary array for storing the second mean values may be preset, after N second mean values are obtained by calculation, the N second mean values are stored in a preset temporary array (sz_buffer), and the N second mean values are subjected to monotonically decreasing sorting, from which the smallest N second mean values may be extracted, so as to calculate the average value of the smallest N second mean values, and obtain the effective working current corresponding to the second operation process. For example, it may be taken that n=10, and a minimum average value of 10 second average values is calculated, so as to obtain an effective working current corresponding to the second operation procedure.
In some embodiments, in the case that the operation process includes a first operation process from a start position to an end position of the electric window, the initial locked-rotor current of the preset operation voltage includes an initial locked-rotor current corresponding to the first operation process;
under the condition that the operation process comprises a second operation process from the end position to the start position of the electric window, the initial locked-rotor current of the preset operation voltage comprises the initial locked-rotor current corresponding to the second operation process;
The step 130 may include determining an initial locked-rotor current of the electric window based on a preset operation voltage according to an operation current corresponding to a stop stage in each operation process, and specifically may include obtaining a peak value in the operation current corresponding to a motion stage in a first operation process to obtain the initial locked-rotor current corresponding to the first operation process, and obtaining a peak value in the operation current corresponding to the motion stage in a second operation process to obtain the initial locked-rotor current corresponding to the second operation process.
According to the embodiment of the application, the initial locked-rotor current corresponding to the first operation process can be rapidly determined by acquiring the peak value in the operation current corresponding to the motion stage in the first operation process. And obtaining a peak value in the running current corresponding to the movement stage in the second running process, so that the initial locked-rotor current corresponding to the second running process can be rapidly determined.
In some embodiments, referring to step 140, generating, according to average information of the effective working current and the initial locked-rotor current, a first target locked-rotor current corresponding to a preset operating voltage may specifically include:
Step 1401, under the condition that the operation process comprises a first operation process from a starting point position to an end point position of the electric window and a second operation process from the end point position to the starting point position of the electric window, calculating the average value of effective working current corresponding to the first operation process and initial locked-rotor current corresponding to the first operation process to obtain a first average value;
step 1402, calculating the average value of the first average value and the second average value, to obtain a first target locked-rotor current corresponding to the preset operating voltage.
The effective stall current is typically greater than the operating current of the power window during normal operation, greater than the starting current of the power window, but less than the actual stall current by one current value. In order to improve the reliability of the target locked-rotor current, after obtaining a first average value of the effective working current of the first operation process and the initial locked-rotor current corresponding to the first operation process and a second average value of the effective working current corresponding to the second operation process and the initial locked-rotor current corresponding to the second operation process, continuously calculating the average value of the first average value and the second average value, and taking the average value of the first average value and the second average value as the first target locked-rotor current, thereby effectively improving the reliability of the locked-rotor current provided by the embodiment of the application, avoiding the situation that an electric window cannot completely return to a starting point and cannot reach an end point, and also avoiding the electric window entering a thermal protection state in the middle to stop operation.
Based on the same inventive concept, the application further provides a device 500 for determining the locked-rotor current of the electric window, which corresponds to the method for determining the locked-rotor current of the electric window. This is described in detail with reference to fig. 5.
Fig. 5 is a schematic structural diagram of a device for determining a locked-rotor current of an electric window according to an embodiment of the present application, and as shown in fig. 5, a device 500 for determining a locked-rotor current of an electric window may include an acquisition module 510 and a processing module 520.
The obtaining module 510 is configured to obtain a data set corresponding to an operation process of the electric window when the electric window is controlled to move based on a preset operation voltage, where the preset operation voltage is associated with an application scenario of the electric window, the operation process includes a first operation process from a start position to an end position of the electric window and/or a second operation process from the end position to the start position of the electric window, and the data set includes a plurality of operation currents of the electric window acquired based on a preset acquisition frequency corresponding to each operation process;
The processing module 520 is configured to perform feature change analysis on a plurality of operation currents corresponding to each operation process according to a preset calibration rule, and determine an operation current corresponding to a motion stage and an operation current corresponding to a stop stage in each operation process respectively;
The processing module 520 is further configured to determine an effective working current of the electric window based on a preset operating voltage according to an operating current corresponding to a motion stage in each operation process;
The processing module 520 is further configured to generate a first target locked-rotor current corresponding to the preset operating voltage according to the average value information of the effective operating current and the initial locked-rotor current.
In some embodiments, the processing module 520 is further configured to re-acquire the target locked-rotor current corresponding to the preset operating voltage at intervals of a predetermined update period, so as to obtain a second target locked-rotor current;
the processing module 520 is further configured to calculate a difference between the first target locked-rotor current and the second target locked-rotor current;
The processing module 520 is further configured to update the first target locked-rotor current to the second target locked-rotor current if the difference is greater than the preset threshold.
In some embodiments, the obtaining module 510 is further configured to sequentially obtain an operation current set to be analyzed according to a preset sliding window and an acquisition sequence of operation currents corresponding to each operation process, where the preset sliding window is used to obtain a first preset number of operation currents, a step size of the preset sliding window is a second preset number of operation currents, and the operation current set includes the first preset number of operation currents;
the processing module 520 is further configured to sequentially analyze current variation characteristics of the running current set according to a preset calibration rule, and determine a sequential calibration rest phase, a start phase, a motion phase and a stop phase;
the processing module 520 is further configured to extract an operation current corresponding to the motion phase and an operation current corresponding to the stop phase in each operation process.
In some embodiments, the preset calibration rules include:
sequentially analyzing whether the running current in the running current set is greater than 0 according to the acquisition sequence, and taking the first running current greater than 0 as the starting point of a starting stage under the condition that the running current set is detected to comprise a current value greater than 0, wherein the starting point of the starting stage is preceded by a resting stage;
Under the condition that the starting point of a starting stage in the running process is determined, sequentially acquiring a first current change rate of each running current set from the starting point of the starting stage, and determining a first target running current set according to the first current change rate of each running current set, wherein the current change rate of the first target running current set is smaller than a first threshold value, the first running current in the first target running current set is used as the end point of the starting stage, and the second running current in the first target running current set is used as the starting point of the moving stage;
Under the condition that the starting point of a motion stage in the operation process is determined, sequentially acquiring a second current change rate of each operation current set from the starting point of the motion stage, and determining a second target operation current set according to the second current change rate of each operation current set, wherein the current change rate of the second target operation current set is larger than a second threshold value, the first operation current in the second target operation current set is used as the end point of the motion stage, and the second operation current in the second target operation current set is used as the starting point of the stop stage;
In the case of determining the start point of the stop phase during operation, it is sequentially detected from the start point of the movement phase whether each of the operation currents is smaller than the third threshold value, and the first operation current smaller than the third threshold value is determined as the end point of the stop phase.
In some embodiments, in the case that the operation process includes a first operation process of the electric window from the start position to the end position, the effective operation current of the preset operation voltage includes an effective operation current corresponding to the first operation process;
Under the condition that the operation process comprises a second operation process from the end position to the start position of the electric window, the effective working current of the preset operation voltage comprises the effective working current corresponding to the second operation process;
The obtaining module 510 is further configured to obtain a number M of first target sliding windows and a number N of second target sliding windows, where the first target sliding windows are preset sliding windows corresponding to a motion stage in a first operation process, and the second target sliding windows are preset sliding windows corresponding to a motion stage in a second operation process;
The processing module 520 is further configured to calculate, when the number M and the number N are both greater than or equal to the first number threshold, a mean value of the running current in each first target sliding window to obtain M first mean values;
The processing module 520 is further configured to calculate a mean value of the M first mean values, where the mean value is the smallest M first mean values, to obtain an effective working current corresponding to the first operation process, and calculate a mean value of the M second mean values, where the mean value is the smallest N second mean values, to obtain an effective working current corresponding to the second operation process.
In some embodiments, in the case that the operation process includes a first operation process from a start position to an end position of the electric window, the initial locked-rotor current of the preset operation voltage includes an initial locked-rotor current corresponding to the first operation process;
under the condition that the operation process comprises a second operation process from the end position to the start position of the electric window, the initial locked-rotor current of the preset operation voltage comprises the initial locked-rotor current corresponding to the second operation process;
the obtaining module 510 is further configured to obtain a peak value in the operation current corresponding to the motion stage in the first operation process, to obtain an initial locked-rotor current corresponding to the first operation process, and
The obtaining module 510 is further configured to obtain a peak value in the operation current corresponding to the motion phase in the second operation process, so as to obtain an initial locked-rotor current corresponding to the second operation process.
In some embodiments, the processing module 520 is further configured to, in a case where the operation process includes a first operation process from a start position to an end position of the electric window and a second operation process from the end position to the start position of the electric window, calculate a mean value of an effective operating current corresponding to the first operation process and an initial stall current corresponding to the first operation process to obtain a first mean value, and
The processing module 520 is further configured to calculate a mean value of the effective working current corresponding to the second operation process and the initial locked-rotor current corresponding to the second operation process, so as to obtain a second mean value;
the processing module 520 is further configured to calculate an average value of the first average value and the second average value, so as to obtain a first target locked-rotor current corresponding to the preset operating voltage.
In some embodiments, the processing module 520 is further configured to determine a first duration corresponding to the stationary phase, a second duration corresponding to the start phase, a third duration corresponding to the motion phase, and a fourth duration corresponding to the stop phase according to the amounts of the running currents corresponding to the stationary phase, the start phase, the motion phase, and the stop phase, respectively;
The processing module 520 is further configured to extract an operation current corresponding to the motion phase and an operation current corresponding to the stop phase in each operation process when the first time length is less than a first preset time length associated with the stationary phase, the second time length is less than a second preset time length associated with the start phase, the third time length is less than a third preset time length associated with the motion phase, and the fourth time length is less than a fourth preset time length associated with the stop phase.
In some embodiments, when the first time length is not less than the first preset time length or the second time length associated with the stationary phase is not less than the second preset time length or the third time length associated with the starting phase is not less than the third preset time length or the fourth time length associated with the moving phase is not less than the fourth preset time length associated with the stopping phase, controlling the movement of the electric window again based on the preset operation voltage, and acquiring a data set corresponding to the operation process of the electric window.
It may be understood that the apparatus 500 for determining a locked-rotor current of an electric window according to the embodiment of the present application may correspond to an execution body of the method for determining a locked-rotor current of an electric window according to the embodiment of the present application, and specific details of operations and/or functions of each module/unit of the apparatus 500 for determining a locked-rotor current of an electric window may be referred to descriptions of corresponding parts in the method for determining a locked-rotor current of an electric window according to the embodiment of the present application, which are not repeated herein for brevity.
According to the device for determining the locked-rotor current of the electric window, in the process of controlling the movement of the electric window based on the preset operation voltage, the plurality of operation currents of the electric window are collected based on the preset collection frequency. Since the operation process may include a first operation process from a start position to an end position of the electric window and/or a second operation process from the end position to the start position of the electric window, next, feature change analysis may be performed on a plurality of operation currents corresponding to each operation process according to a preset calibration rule, to determine an operation current corresponding to a movement stage and an operation current corresponding to a stop stage in each operation process, respectively. In this way, a number of different phases of the operation process can be quickly and accurately identified. The method comprises the steps of determining an effective working current of an electric window based on a preset operating voltage according to an operating current corresponding to a motion stage in each operating process, determining an initial locked-rotor current of the electric window based on the preset operating voltage according to an operating current corresponding to a stop stage in each operating process, and finally generating a first target locked-rotor current corresponding to the preset operating voltage according to average value information of the effective working current and the initial locked-rotor current. Therefore, the automatic acquisition of the locked-rotor current is realized, the acquisition efficiency of the locked-rotor current is improved, and in addition, because the preset running voltage is associated with the application scene of the preset electric window, the locked-rotor current obtained based on the embodiment of the application has high accuracy, can be more applied to the application scene where the electric window is located, and provides the use experience of a user on the electric window and the service life of electronic control.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 6, the device may include a processor 601 and a memory 602 storing computer program instructions.
In particular, the processor 601 may include a central processing unit (Central Processing Unit, CPU), or Application SPECIFIC INTEGRATED Circuit (ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present application.
Memory 602 may include a mass storage for information or instructions. By way of example, and not limitation, memory 602 may include a hard disk drive (HARD DISK DRIVE, HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a universal serial bus (Universal Serial Bus, USB) drive, or a combination of two or more of these. In one example, the memory 602 may include removable or non-removable (or fixed) media, or the memory 602 is a non-volatile solid state memory. The memory 602 may be internal or external to the electronic device.
The memory may include Read Only Memory (ROM), random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising 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 methods in accordance with aspects of the present disclosure.
The processor 601 reads and executes the computer program instructions stored in the memory 602 to implement the method described in the embodiment of the present application, and achieve the corresponding technical effects achieved by executing the method in the embodiment of the present application, which is not described herein for brevity.
In one example, the electronic device may also include a communication interface 603 and a bus 610. As shown in fig. 6, the processor 601, the memory 602, and the communication interface 603 are connected to each other through a bus 610 and perform communication with each other.
The communication interface 603 is mainly used for implementing communication between each module, apparatus, unit and/or device in the embodiment of the present application.
Bus 610 includes hardware, software, or both that couple components of the online information-flow billing device to each other. By way of example, and not limitation, the buses may include an accelerated graphics Port (ACCELERATED GRAPHICS Port, AGP) or other graphics Bus, an enhanced industry Standard architecture (Extended Industry Standard Architecture, EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry Standard architecture (Industry Standard Architecture, ISA) Bus, an Infiniband interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a Micro Channel 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 Bus, or a combination of two or more of these. Bus 610 may include one or more buses, where appropriate. Although embodiments of the application have been described and illustrated with respect to a particular bus, the application contemplates any suitable bus or interconnect.
The electronic equipment can execute the method for determining the locked-rotor current of the electric window, so that the corresponding technical effects of the method for determining the locked-rotor current of the electric window described in the embodiment of the application are realized.
In addition, in combination with the method for determining the locked-rotor current of the power window in the above embodiment, the embodiment of the application may be implemented by providing a readable storage medium. The readable storage medium has stored thereon computer program instructions which when executed by a processor implement a method of determining a locked rotor current for any one of the motorized window according to the above-described embodiments. Examples of readable storage media may be non-transitory machine readable media such as electronic circuits, semiconductor Memory devices, read-Only Memory (ROM), floppy disks, compact disks (Compact Disc Read-Only Memory, CD-ROM), optical disks, hard disks, and the like.
It should be understood that the application is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. The method processes of the present application are not limited to the specific steps described and shown, but various changes, modifications and additions, or the order between steps may be made by those skilled in the art after appreciating the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic Circuit, application SPECIFIC INTEGRATED Circuit (ASIC), appropriate firmware, plug-in, function card, or the like. When implemented in software, the elements of the application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor Memory devices, read-Only Memory (ROM), flash Memory, erasable Read-Only Memory (Erasable Read Only Memory, EROM), floppy disks, compact discs (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, fiber optic media, radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. The present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium is stored with computer program instructions, and the computer program instructions realize the method for determining the locked rotor current of the electric window provided by the embodiment of the application when being executed by a processor.
In addition, in combination with the method and the device for determining the locked rotor current of the power window and the readable storage medium in the above embodiments, the embodiments of the present application may be implemented by providing a computer program product. The instructions in the computer program product, when executed by a processor of an electronic device, cause the electronic device to perform the method of determining a locked-rotor current of any one of the above embodiments.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of 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 may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present application are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present application is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present application, and they should be included in the scope of the present application.
Claims (10)
1.A method for determining a locked-rotor current of a motorized window, the method comprising:
Under the condition that movement of an electric window is controlled based on a preset operation voltage, acquiring a data set corresponding to the operation process of the electric window, wherein the preset operation voltage is associated with an application scene of the preset electric window, the operation process comprises a first operation process from a starting point position to an end point position of the electric window and/or a second operation process from the end point position to the starting point position of the electric window, and the data set comprises a plurality of operation currents of the electric window, which are acquired based on a preset acquisition frequency and correspond to each operation process;
Performing characteristic change analysis on a plurality of operation currents corresponding to each operation process according to a preset calibration rule, and respectively determining the operation current corresponding to a motion stage and the operation current corresponding to a stop stage in each operation process;
Determining the effective working current of the electric window based on the preset operating voltage according to the operating current corresponding to the motion stage in each operating process, and determining the initial locked-rotor current of the electric window based on the preset operating voltage according to the operating current corresponding to the stop stage in each operating process;
And generating a first target locked-rotor current corresponding to the preset operating voltage according to the average value information of the effective working current and the initial locked-rotor current.
2. The method of claim 1, wherein after generating the first target locked-rotor current corresponding to the preset operating voltage based on the average information of the effective operating current and the initial locked-rotor current, the method further comprises:
re-acquiring a target locked-rotor current corresponding to the preset operating voltage at intervals of a preset updating period to obtain a second target locked-rotor current;
calculating a difference value between the first target locked-rotor current and the second target locked-rotor current;
And updating the first target locked-rotor current to the second target locked-rotor current under the condition that the difference value is larger than a preset threshold value.
3. The method of claim 1, wherein the operation further comprises a stationary phase and a start phase, wherein the performing feature change analysis on a plurality of operation currents corresponding to each operation according to a preset calibration rule, and determining a motion phase and a stop phase in each operation comprises:
Sequentially obtaining an operation current set to be analyzed according to a preset sliding window and the collection sequence of operation currents corresponding to each operation process, wherein the length of the preset sliding window is a first preset number, the step length of the preset sliding window is a second preset number, and the operation current set comprises the operation currents of the first preset number;
According to the preset calibration rule, current change characteristics of the running current set are sequentially analyzed, and the static stage, the starting stage, the moving stage and the stopping stage are sequentially calibrated;
And extracting the running current corresponding to the movement stage and the running current corresponding to the stopping stage in each running process.
4. A method according to claim 3, wherein the preset calibration rules comprise:
Sequentially analyzing whether the running current in the running current set is greater than 0 according to the acquisition sequence, and taking the first running current greater than 0 as the starting point of the starting stage under the condition that the running current set is detected to comprise a current value greater than 0, wherein the starting point of the starting stage is preceded by the resting stage;
under the condition that the starting point of a starting stage in the running process is determined, sequentially acquiring a first current change rate of each running current set from the starting point of the starting stage, and determining a first target running current set according to the first current change rate of each running current set, wherein the current change rate of the first target running current set is smaller than a first threshold value, the first running current in the first target running current set is used as the ending point of the starting stage, and the second running current in the first target running current set is used as the starting point of the moving stage;
Under the condition that the starting point of a motion stage in the operation process is determined, sequentially acquiring a second current change rate of each operation current set from the starting point of the motion stage, and determining a second target operation current set according to the second current change rate of each operation current set, wherein the current change rate of the second target operation current set is larger than a second threshold value, the first operation current in the second target operation current set is used as the ending point of the motion stage, and the second operation current in the second target operation current set is used as the starting point of the stop stage;
In the case of determining the start point of the stop phase in the running process, sequentially detecting whether each running current is smaller than a third threshold value from the start point of the movement phase, and determining the first running current smaller than the third threshold value as the end point of the stop phase.
5. A method according to claim 3, wherein in case the operation comprises a first operation of the electric window from a start position to an end position, the effective operating current of the preset operating voltage comprises an effective operating current corresponding to the first operation;
In the case that the operation process includes a second operation process from the end position to the start position of the electric window, the effective working current of the preset operation voltage includes an effective working current corresponding to the second operation process;
the determining the effective working current of the electric window based on the preset operating voltage according to the operating current corresponding to the motion stage in each operating process comprises the following steps:
Acquiring the number M of first target sliding windows and the number N of second target sliding windows, wherein the first target sliding windows are preset sliding windows corresponding to movement phases in the first operation process, and the second target sliding windows are preset sliding windows corresponding to movement phases in the second operation process;
Calculating the average value of the running current in each first target sliding window to obtain M first average values under the condition that the number M and the number N are larger than or equal to a first number threshold value;
Calculating the average value of the M first average values, which are the smallest, of the M first average values to obtain an effective working current corresponding to the first operation process, and calculating the average value of the M second average values, which are the smallest, of the N second average values to obtain an effective working current corresponding to the second operation process.
6. The method according to claim 1, wherein, in the case that the operation process includes a first operation process of the electric window from a start position to an end position, the initial locked-rotor current of the preset operation voltage includes an initial locked-rotor current corresponding to the first operation process;
under the condition that the operation process comprises a second operation process from the end position to the start position of the electric window, the initial locked-rotor current of the preset operation voltage comprises an initial locked-rotor current corresponding to the second operation process;
The determining the initial locked-rotor current of the electric window based on the preset operation voltage according to the operation current corresponding to the stop phase in each operation process comprises the following steps:
Obtaining a peak value in the running current corresponding to a movement stage in the first running process to obtain an initial locked-rotor current corresponding to the first running process, and
And obtaining a peak value in the running current corresponding to the movement stage in the second running process, and obtaining the initial locked-rotor current corresponding to the second running process.
7. The method of claim 3, wherein 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 comprises:
Under the condition that the operation process comprises a first operation process from a starting point position to an end point position of the electric window and a second operation process from the end point position to the starting point position of the electric window, calculating the average value of effective working current corresponding to the first operation process and initial locked-rotor current corresponding to the first operation process to obtain a first average value, and
Calculating the average value of the effective working current corresponding to the second operation process and the initial locked-rotor current corresponding to the second operation process to obtain a second average value;
and calculating the average value of the first average value and the second average value to obtain a first target locked-rotor current corresponding to the preset running voltage.
8. The method of claim 7, wherein said extracting said operating current corresponding to a motion phase and said operating current corresponding to a stop phase in each of said operating procedures further comprises:
Determining a first duration corresponding to the stationary phase, a second duration corresponding to the starting phase, a third duration corresponding to the moving phase and a fourth duration corresponding to the stopping phase according to the quantity of running currents respectively corresponding to the stationary phase, the starting phase, the moving phase and the stopping phase;
Extracting the running current corresponding to the motion stage and the running current corresponding to the stop stage in each running process when the first time length is smaller than the first preset time length associated with the stationary stage, the second time length is smaller than the second preset time length associated with the start stage, the third time length is smaller than the third preset time length associated with the motion stage, and the fourth time length is smaller than the fourth preset time length associated with the stop stage.
9. The method of claim 8, wherein in the case that the first duration is not less than a first preset duration associated with the rest phase or the second duration is not less than a second preset duration associated with the start phase or the third duration is not less than a third preset duration associated with the motion phase or the fourth duration is not less than a fourth preset duration associated with the stop phase, controlling movement of the electric window based on a preset operation voltage again, and acquiring a data set corresponding to the operation process of the electric window.
10. A device for blocking current in a motorized window, the device comprising:
The device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a data set corresponding to an operation process of an electric window under the condition that the movement of the electric window is controlled based on a preset operation voltage, the preset operation voltage is associated with an application scene of the electric window, the operation process comprises a first operation process from a starting point position to an end point position of the electric window and/or a second operation process from the end point position to the starting point position of the electric window, and the data set comprises a plurality of operation currents of the electric window, which are acquired based on a preset acquisition frequency and correspond to each operation process;
The processing module is used for carrying out characteristic change analysis on a plurality of operation currents corresponding to each operation process according to a preset calibration rule, and respectively determining the operation current corresponding to a motion stage and the operation current corresponding to a stop stage in each operation process;
The processing module is also used for determining the effective working current of the electric window based on the preset operating voltage according to the operating current corresponding to the motion stage in each operating process, and determining the initial locked-rotor current of the electric window based on the preset operating voltage according to the operating current corresponding to the stop stage in each operating process;
the processing module is further configured to generate a first target locked-rotor current corresponding to the preset operating voltage according to the average value information of the effective working current and the initial locked-rotor current.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310614272.XA CN116679110B (en) | 2023-05-25 | 2023-05-25 | Method and device for determining the stall current of electric windows |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310614272.XA CN116679110B (en) | 2023-05-25 | 2023-05-25 | Method and device for determining the stall current of electric windows |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116679110A CN116679110A (en) | 2023-09-01 |
| CN116679110B true CN116679110B (en) | 2026-04-24 |
Family
ID=87782943
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310614272.XA Active CN116679110B (en) | 2023-05-25 | 2023-05-25 | Method and device for determining the stall current of electric windows |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116679110B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119394640A (en) * | 2024-09-20 | 2025-02-07 | 武汉盛帆电子股份有限公司 | Intelligent water meter valve detection method, device and electronic equipment |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102392576A (en) * | 2011-09-20 | 2012-03-28 | 河南天海科技有限公司 | Intelligent control method for automobile electric window |
| CN114922527A (en) * | 2022-05-25 | 2022-08-19 | 上海技涵电子科技有限公司 | Electric vehicle window current control method and device |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5138182A (en) * | 1988-07-28 | 1992-08-11 | Kabushiki Kaisha Tokai-Rika-Denki-Seisakusho | Apparatus for controlling power window regulator |
| CN102287113B (en) * | 2011-07-18 | 2013-10-16 | 哈尔滨工业大学 | Soft stop control device for power window of automobile |
| CN113503107A (en) * | 2021-07-21 | 2021-10-15 | 东风柳州汽车有限公司 | Control method and device for vehicle window motor |
-
2023
- 2023-05-25 CN CN202310614272.XA patent/CN116679110B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102392576A (en) * | 2011-09-20 | 2012-03-28 | 河南天海科技有限公司 | Intelligent control method for automobile electric window |
| CN114922527A (en) * | 2022-05-25 | 2022-08-19 | 上海技涵电子科技有限公司 | Electric vehicle window current control method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116679110A (en) | 2023-09-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20110192970A1 (en) | Method and apparatus for mass spectrometry | |
| CN119026002B (en) | A load event identification method and system | |
| CN113704698B (en) | Event detection method and system for non-intrusive load identification | |
| KR20250016320A (en) | Method and device for collecting radio frequency power signals | |
| CN116679110A (en) | Method and device for determining locked-rotor current of electric window | |
| CN106169738B (en) | A kind of anti-TA saturation process of differential protection and device based on linear transform area identification | |
| CN117310486A (en) | Fault detection method and device for motor | |
| CN115480154B (en) | Circuit breaker performance detection method, device, equipment and computer storage medium | |
| CN116950530A (en) | Vehicle window position compensation method and device | |
| CN111351972B (en) | Method and device for detecting idle-state sleep current of terminal | |
| CN116298719A (en) | Equipment insulation aging identification method, device, electronic equipment and storage medium | |
| CN118645145B (en) | A method and device for testing a command sequence of a memory chip | |
| CN117192383B (en) | Method, device, equipment and medium for determining battery life | |
| CN119576491A (en) | Real-time operating system timer implementation method, device and electronic equipment | |
| CN119202790A (en) | A cloud-edge collaborative smart grid fault processing method, device, equipment and storage medium | |
| CN116552394A (en) | Electric pedal control method, control device, control device, vehicle and medium | |
| CN119986343A (en) | Method, device, equipment, medium and vehicle for determining loss amount of switch unit | |
| CN109870621B (en) | Operation judgment method and device | |
| JP7151561B2 (en) | Pulse train signal period estimation device, pulse train signal period estimation method, and pulse train signal period estimation program | |
| KR101734872B1 (en) | Method and apparatus for analyzing safety of software | |
| JP2004333279A (en) | Target motion discriminating apparatus and method | |
| CN105827550B (en) | A kind of method and device determining target component using sliding window | |
| CN115481006A (en) | Application program testing method and device, electronic equipment and storage medium | |
| CN111027386A (en) | A classification and identification method of relay protection input signal based on EMD decomposition | |
| CN115934803B (en) | Data processing control method and device based on power cabinet and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |