Method and device for determining the stall current

By acquiring and segmenting the simulated motor current signal in the electronic control unit, the stall state is automatically identified, solving the problem of low stall current acquisition efficiency in the existing technology and realizing efficient stall current acquisition.

CN122456948APending Publication Date: 2026-07-24BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610542965.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-22
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

In existing technologies, the acquisition of stall current requires the removal of sliding doors and windows and the connection of measuring equipment, resulting in low acquisition efficiency.

Method used

By acquiring the motor's current analog signal in the electronic control unit and segmenting it according to a preset time window, the target state is determined based on the degree of change in the current analog signal. The system automatically identifies when the motor enters a stall state and collects the motor's current in the stall state.

Benefits of technology

It achieves automated detection of stall current, avoiding the cumbersome steps of disassembling the door panel and connecting external devices, and improves the efficiency of stall current acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122456948A_ABST
    Figure CN122456948A_ABST
Patent Text Reader

Abstract

The application discloses a method and device for determining a stall current. The method comprises: obtaining a current analog signal generated by a motor for controlling a target slidable door / window to slide from an electronic control unit; segmenting the current analog signal according to a preset time window, and determining a target state based on a variation degree of the current analog signal in each time window, wherein the target state comprises a stable state or an unstable state; determining that the motor enters a stall state when the target state of the current analog signal in any two adjacent time windows is converted from the unstable state to the stable state; and collecting the current generated by the motor to obtain the stall current.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In the research and development and production of sliding doors and windows (such as vehicle side windows and sunroofs), it is necessary to know the stall current of the motor controlling the sliding door and window. The core logic of the control is that when the sliding door and window slides, the electronic control unit obtains the motor current, determines whether the motor has entered a stall state based on whether the current reaches the stall current, and disconnects the motor in time when it is determined that the motor has entered a stall state to prevent the motor from overheating and burning out due to prolonged operation in a stall state, thus ensuring system safety and component life. Therefore, determining the stall current is particularly important.

[0003] However, in existing technologies, collecting locked-rotor current requires technicians to perform cumbersome operations such as disassembling sliding doors and windows and connecting measuring equipment, resulting in low collection efficiency. Summary of the Invention

[0004] This application provides a method, apparatus, device, medium, and product for determining locked rotor current, which can reduce the difficulty of acquiring locked rotor current and improve the acquisition efficiency of locked rotor current.

[0005] In a first aspect, embodiments of this application provide a method for determining the locked-rotor current, including: When the electronic control unit controls the sliding door / window of the target to slide, the analog current signal generated by the motor controlling the sliding door / window of the target is obtained from the electronic control unit; The current analog signal is segmented according to a preset time window, and the target state is determined based on the degree of change of the current analog signal within each time window. The target state includes a stable state or an unstable state. If the target state of the current simulation signal changes from an unstable state to a stable state within any two adjacent time windows, it is determined that the motor has entered a stall state. The current generated by the motor is collected to obtain the stall current.

[0006] In one feasible implementation, the target state is determined based on the degree of change in the analog current signal within each time window, including: The change value is determined based on the difference between the maximum and minimum values ​​of the current analog signal within each time window; If the change is less than or equal to the threshold, the target state is determined to be a stable state; or, If the degree of change exceeds a threshold, the target state is determined to be an unstable state.

[0007] In one feasible implementation, the method for determining the segmentation of the current analog signal according to a preset time window further includes: Obtain the preset duration time window corresponding to the type of the target sliding door / window.

[0008] In one feasible implementation, determining that the motor has entered a stall state when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows includes: Given that the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows, for the later target time window in any two adjacent time windows, obtain the target state corresponding to the M consecutive time windows after the target time window. If the target state is stable for each of the M consecutive time windows, the motor is determined to enter a stall state.

[0009] In one feasible implementation, determining that the motor has entered a stall state when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows includes: Based on the target state corresponding to each time window, a state waveform is plotted. When the target state corresponding to the time window is unstable, the state waveform is the first level value. When the target state corresponding to the time window is stable, the state waveform is the second level value. The first level value is less than the second level value. Based on the state waveform, multiple stable state segments consisting of multiple consecutive second level values ​​are determined, and the time period corresponding to each stable state segment is obtained; Among multiple time periods, a target time period with a length greater than a first threshold and less than a second threshold is selected, and the motor state corresponding to the target time period is determined as a stalled state; wherein, the first threshold is less than the second threshold.

[0010] In one feasible implementation, acquiring the analog current signal generated by the motor controlling the sliding of the target sliding door / window includes: During the first time period, the controlled target can close sliding doors and windows; In the second time period following the first time period, the target sliding door / window is controlled to slide, and the simulated current signal generated by the motor controlling the sliding of the target sliding door / window is acquired.

[0011] In one feasible implementation, acquiring the analog current signal generated by the motor controlling the sliding of the target sliding door / window includes: Acquire the simulated initial current signal generated by the motor that controls the sliding door / window. The initial current simulation signal is smoothed to obtain the current simulation signal.

[0012] In one feasible implementation, the current generated by the motor is collected to obtain the stall current, including: The current is collected at multiple different times when the motor is in a stalled state; The stall current is obtained by calculating the average value of the current at multiple different times.

[0013] In one feasible implementation, determining that the motor has entered a stall state when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows includes: When the target state of the current simulation signal changes from an unstable state to a stable state within any two adjacent time windows, and the amplitude of the simulation signal is greater than or equal to a preset amplitude threshold, the motor is determined to enter a stall state.

[0014] Secondly, embodiments of this application provide a device for determining locked-rotor current, comprising: The acquisition module is used to acquire the analog current signal generated by the motor controlling the sliding of the target sliding door / window from the electronic control unit when the electronic control unit controls the sliding of the target sliding door / window. The determination module is used to segment the current analog signal according to a preset time window, and determine the target state based on the degree of change of the current analog signal within each time window. The target state includes a stable state or an unstable state. The determination module is also used to determine when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows, thus determining that the motor has entered a stall state. The acquisition module is used to collect the current generated by the motor to obtain the stall current.

[0015] Thirdly, embodiments of this application provide an electronic device, the device comprising: Processor and memory storing computer program instructions; The method for determining the stall current used by the processor when executing computer program instructions as described in the first aspect above.

[0016] Fourthly, embodiments of this application provide a computer storage medium storing computer program instructions, which, when executed by a processor, implement the method for determining the stall current described in the first aspect.

[0017] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when processed by a processor, implements the method for determining the stall current described in the first aspect.

[0018] The method and apparatus for determining stall current provided in this application acquires the motor's current simulation signal from the electronic control unit, segments the current simulation signal into preset time windows, and determines the target state of the current simulation signal within each time window. The motor is determined to enter a stall state when the target state transitions from an unstable state to a stable state over two consecutive time windows. The motor current in the stall state is then collected to obtain the stall current. This method achieves automated detection of stall current, completely avoiding the cumbersome steps of disassembling the door panel and connecting external measuring equipment in traditional methods, thus improving the efficiency of stall current acquisition. Attached Figure Description

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

[0020] Figure 1 This is a flowchart illustrating a method for determining stall current provided in some embodiments of this application.

[0021] Figure 2 This is a schematic diagram of the simulated current signal of a motor provided in some embodiments of this application.

[0022] Figure 3 This is a flowchart illustrating another method for determining the stall current provided in some embodiments of this application.

[0023] Figure 4 This is a flowchart illustrating yet another method for determining stall current provided in some embodiments of this application.

[0024] Figure 5 This is a schematic diagram of a device for determining stall current provided in some embodiments of this application.

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

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

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

[0028] Before describing the technical solutions provided in the embodiments of this application, in order to facilitate understanding of the embodiments of this application, this application first specifically explains the problems existing in the related technologies: Currently, sliding doors and windows (such as vehicle doors and windows or sunroofs) are often controlled by motors. The control principle involves the Electronic Control Unit (ECU) monitoring the motor's current. When the ECU determines that the motor current is locked (stalled), it shuts off the motor. Locked-rotor current refers to the current drawn by the motor from the power supply when the motor is energized but cannot rotate due to excessive mechanical load or being completely jammed (stalled). In this situation, the motor rotor stops rotating, but the stator windings remain energized. Therefore, it is necessary to shut off the motor promptly when it is determined to be in a locked-rotor state to prevent damage. For this reason, monitoring the locked-rotor current is particularly important.

[0029] However, since sliding doors and windows vary in type and size, and the results of their installation also differ, it is necessary to remove the sliding doors and windows from their installation structure, strip the wiring harness, and connect external equipment to calibrate their locked current when collecting locked current data. This makes it difficult and inefficient to collect locked current data.

[0030] Based on this, embodiments of this application provide a method, apparatus, device, medium, and product for determining locked-rotor current, which can solve the above-mentioned problems. The following is a detailed description of a method for determining locked-rotor current provided by embodiments of this application.

[0031] In some embodiments, such as Figure 1 As shown, this application embodiment provides a method for determining the stall current, which may include the following steps S110-S140: S110: When the electronic control unit controls the target sliding door / window to slide, obtain the analog current signal generated by the motor controlling the sliding of the target sliding door / window from the electronic control unit.

[0032] When the ECU controls the sliding door or window to slide, the sampling circuit inside the ECU can obtain the current passing through the motor in real time and convert it into a current analog signal. In other words, the ECU can directly obtain the current analog signal generated by the motor.

[0033] Here, sliding doors and windows can include vertically lifting doors or windows (such as vehicle windows), outward-opening doors or windows, sliding doors or windows, etc. Here, the aforementioned sliding doors and windows are not limited to doors and windows, and can also include other movable devices such as the trunk of a vehicle, tailgate, etc., which will not be elaborated here.

[0034] S120: Divide the current analog signal into segments according to a preset time window, and determine the target state based on the degree of change of the current analog signal within each time window. The target state includes a stable state or an unstable state.

[0035] In some examples, the above-mentioned current simulation signal is a signal obtained by smoothing the original current simulation signal obtained from the ECU.

[0036] The aforementioned simulated current signal can be segmented according to a preset time window, and the change value can be determined based on the difference between the maximum and minimum values ​​of the simulated current signal within the time window, and the target state can be determined based on the change value. Alternatively, the change value can be determined using different methods such as the standard deviation, variance, and rate of change of adjacent sampling points of the simulated current signal within the time window, and the target state can then be determined based on the change value.

[0037] It can be inferred that when the target value is greater than the set threshold, the current simulation signal within the time window is in an unstable state, and when the target value is less than or equal to the set threshold, the current simulation signal within the time window is in a stable state.

[0038] S130: If the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows, the motor is determined to enter a stall state.

[0039] For example, Figure 2 middle, Figure 2 This diagram illustrates an example of a simulated current signal from a motor. A typical motor's operation can be divided into three parts. The first part is the starting region, the area within the left box in the diagram. As the motor rotor transitions from a stationary state to a running state, the current surges and then decreases after stabilizing. The second part is the area between the two boxes, where the motor rotates stably and the current remains relatively stable. The third part is the stalled region, the area within the right box in the diagram. Due to impacts from doors or windows, the motor cannot continue running and enters a stalled state. The current surges abruptly and then remains at a relatively high level.

[0040] Based on the above principle, when determining the transition of the target state of the current analog signal from an unstable state to a stable state within any two adjacent time windows, i.e., as... Figure 2 The area within the right-hand frame indicates that the motor is in a stalled state.

[0041] S140: Collects the current generated by the motor to obtain the stall current.

[0042] When it is determined that the motor has entered a stall state, the stall current can be obtained by collecting the motor current.

[0043] In some examples, to improve the accuracy of determining the stall current, multiple sets of data can be collected continuously and the average value can be calculated to obtain the stall current.

[0044] This embodiment of the application acquires the simulated current signal of the motor from the ECU, segments the simulated current signal into preset time windows, and determines the target state of the simulated current signal within each time window. The motor is determined to enter a stall state when the target state transitions from an unstable state to a stable state over two consecutive time windows. The motor current in the stall state is then collected to obtain the stall current. This method achieves automated detection of the stall current, completely avoiding the cumbersome steps of disassembling the door panel and connecting external measuring equipment in traditional methods, thus improving the efficiency of stall current acquisition.

[0045] In some embodiments, acquiring the analog current signal generated by the motor controlling the sliding of the target sliding door or window may include: In the first time period, the sliding door / window of the control target is closed; in the second time period after the first time period, the sliding door / window of the control target is slid, and the current simulation signal generated by the motor controlling the sliding door / window of the control target is acquired.

[0046] When it is necessary to obtain a simulated current signal, the target door or window can be controlled to close during a first time period. Taking a car window as an example, the window can be lowered. It is conceivable that the first time period is a relatively short period, typically around 500ms.

[0047] During the second time period, the target sliding door or window can be controlled to slide, and a current analog signal can be obtained from the ECU.

[0048] In some examples, the stall current includes the first stall current when the target sliding door / window is fully closed and the stall current when it is fully open. Based on this, in the second time period, the target sliding door / window can be controlled to close first and the first stall current can be collected; then, the target sliding door / window can be controlled to open and the second stall current can be collected.

[0049] This embodiment of the application effectively eliminates the risk of acquisition failure caused by the uncertain starting position of the target sliding door and window when acquiring the current simulation signal. This is achieved by controlling the target sliding door and window to close in the first time period and then controlling the target sliding door and window to slide in the second time period. This effectively improves the acquisition efficiency of stall current.

[0050] In some embodiments, acquiring the analog current signal generated by the motor controlling the sliding of the target sliding door or window may include: Acquire the initial current simulation signal generated by the motor that controls the sliding door / window; smooth the initial current simulation signal to obtain the current simulation signal.

[0051] When the ECU controls the sliding door or window to slide, it obtains the initial current analog signal in real time through its internal current sampling circuit. Since there is noise, the initial current analog signal can be smoothed by using moving average filtering or low-pass filtering to obtain a smooth current analog signal that can more clearly reflect the macroscopic change trend of the current.

[0052] This application embodiment obtains a current simulation signal by smoothing the initial current simulation signal, which can effectively filter high-frequency interference. This allows subsequent state determinations based on the current simulation signal to follow the overall trend of the signal rather than instantaneous fluctuations, significantly reducing the risk of misjudgment and facilitating accurate identification of stalled state.

[0053] In some embodiments, determining the target state based on the degree of change of the current analog signal within each time window may include: The change value is determined based on the difference between the maximum and minimum values ​​of the current simulation signal within each time window; if the change value is less than or equal to the threshold, the target state is determined to be a stable state; or, if the change value is greater than the threshold, the target state is determined to be an unstable state.

[0054] For the current simulation signal within each time window, the change value can be determined based on the difference between the maximum and minimum values. When the change value is less than or equal to the threshold, it indicates that the fluctuation of the current simulation signal within the current time window is small, and it can be determined to be a stable state. Alternatively, when the change value is greater than the threshold, it indicates that the fluctuation of the current simulation signal within the current time window is large, and it can be determined to be an unstable state, that is, the motor may be in the state of starting, accelerating or encountering resistance.

[0055] This application embodiment determines the change value based on the difference between the maximum and minimum values ​​of the current analog signal within each time window. When the change value is less than or equal to a threshold, it is determined to be a stable state. When the change value is greater than the threshold, it can be determined to be an unstable state. This allows the scheme to accurately determine the motor's state and thus accurately collect the stall current.

[0056] In some embodiments, the method for determining the current analog signal before segmenting it according to a preset time window further includes: Obtain the preset duration time window corresponding to the type of the target sliding door / window.

[0057] Here, the type of the target sliding door or window can be obtained first, such as whether it is a sliding type, a lifting type, or an outward-opening type. For different types, different preset time windows can be configured in advance. When segmenting the current analog signal, the preset time window corresponding to the type of the target sliding door or window can be used for segmentation.

[0058] This application embodiment obtains a preset time window corresponding to the type of the target sliding door / window, so that a corresponding preset time window can be configured for different types of sliding doors / windows. This allows for more accurate capture of the target state for each time window, reducing misjudgments.

[0059] It is conceivable that, such as Figure 2 In addition, because the motor will also cause a sudden increase in current when it starts up, such as... Figure 2 The area within the left frame in the middle is therefore, relying solely on determining the target state of the current simulation signal within any two adjacent time windows to transition from an unstable state to a stable state may lead to misjudgment of the motor state, that is, misjudging the starting state as a stalled state.

[0060] Based on the above issues, through observation, such as Figure 2 The waveform of the simulated current signal shows that there is a relatively long steady state in the stalled state, as follows: Figure 2 Based on this, the area in the right-hand frame can be used to avoid the aforementioned misjudgment by adding a duration for maintaining a stable state. In some embodiments, such as Figure 3As shown, determining that the motor has entered a stall state when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows can include: S310: If the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows, for the later target time window in any two adjacent time windows, obtain the target state corresponding to the M consecutive time windows after the target time window.

[0061] Here, when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows, it is not immediately determined to be a stalled state. Instead, for the later target time window in any two adjacent time windows, the target state corresponding to the M adjacent time windows is obtained. It can be imagined that the above M can be a value that can be flexibly set according to the type of target sliding door or window.

[0062] S320: If the target state corresponding to each of the M consecutive time windows is a stable state, determine that the motor has entered a stall state.

[0063] When the target states corresponding to M time windows are all in a stable state, it can be determined that the motor has entered a stall state.

[0064] like Figure 2 In the middle, although the region within the left frame may exhibit a brief stable state, it is successfully filtered out because it fails to meet the condition that "the subsequent M consecutive windows are all stable." Only when the current truly stabilizes, forming a continuous and stable plateau period (such as...) Figure 2 Only the area within the right-hand frame will be confirmed as a stalled state.

[0065] This application embodiment, by determining that the target state of the current simulation signal changes from an unstable state to a stable state within any two adjacent time windows, continues to acquire the target states corresponding to M consecutive time windows following the later target time window in any two adjacent time windows, and determines that the motor has entered a stall state when the target states corresponding to the M time windows are all stable states, can fundamentally eliminate misjudgments caused by the instantaneous start-up of the motor, external instantaneous interference, or signal noise, and improve the accuracy of determining the stall state of the motor.

[0066] Here, determining whether the motor has entered a stall state based on whether there is a continuous and stable state after the target time window can also be achieved using the following methods: In some embodiments, such as Figure 4As shown, determining that the motor has entered a stall state when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows can include: S410: Based on the target state corresponding to each time window, draw the state waveform. When the target state corresponding to the time window is unstable, the state waveform is the first level value. When the target state corresponding to the time window is stable, the state waveform is the second level value. The first level value is less than the second level value.

[0067] Based on the target state corresponding to each time window, draw as follows: Figure 2 The state waveform shown is as follows: Figure 2 In the process, when the target state corresponding to the time window is an unstable state, the state waveform is a first level value (e.g., 0); when the target state corresponding to the time window is a stable state, the state waveform is a second level value (e.g., 1).

[0068] S420: Based on the state waveform, determine multiple stable state segments consisting of multiple consecutive second level values, and obtain the time period corresponding to each stable state segment.

[0069] Based on the state waveform, segments consisting of multiple consecutive second-level values ​​(i.e., consecutive logic high levels) can be identified; these segments are defined as stable state segments. For example... Figure 2 The state waveform shown can be used to determine two stable state segments.

[0070] S430: Among multiple time periods, select a target time period whose length is greater than a first threshold and less than a second threshold, and determine the motor state corresponding to the target time period as a stalled state; wherein, the first threshold is less than the second threshold.

[0071] A first threshold and a second threshold can be preset based on the type of the target sliding door / window. The first threshold represents the shortest duration required for a stable state, and the second threshold represents the longest duration of a non-stalled state. The motor state corresponding to a target time period whose length is greater than the first threshold but less than the second threshold can be selected from multiple time periods to be defined as a stalled state. For example... Figure 2 In this process, the stable state segments where the motor is running and the stable state segments where it is turned on can be excluded, i.e., Figure 2 In the state waveform, the areas marked with circles and the stable state segments within the central stable region will be excluded, retaining only the ones marked with circles. Figure 2 The stable state segment within the region marked by the dashed box.

[0072] This application embodiment plots a state waveform based on the target state corresponding to each time window, filters out stable state segments from the state waveform, and filters out target time segments with a length greater than a first threshold and less than a second threshold based on the time segment corresponding to each stable state segment. The motor state corresponding to the target time segment is then determined as a stalled state, which can effectively avoid misjudgment and improve the accuracy of determining the stalled state of the motor.

[0073] In some embodiments, acquiring the stall current by collecting the current generated by the motor may include: When the motor is in a stalled state, the current is collected at multiple different times; the average value of the current at multiple different times is calculated to obtain the stall current.

[0074] After confirming that the motor has entered a stall state, the current at multiple different times can be continuously collected and the average value can be calculated to obtain the stall current.

[0075] In some examples, the target sliding door / window can be controlled to close in the first time period, and in the second time period after the first time period, the target sliding door / window can be controlled to close first, and the current at multiple different times can be continuously collected and the average value can be calculated to obtain the first stall current when the target sliding door / window is closed; then the target sliding door / window can be controlled to open, and the current at multiple different times can be continuously collected and the average value can be calculated to obtain the second stall current when the target sliding door / window is open.

[0076] This application embodiment uses the average of multiple currents collected during stalled operation as the final stall current, effectively filtering out random noise and transient interference that may be encountered during a single sampling process. This makes the final determined stall current value more reflective of the true and stable current of the motor under stall conditions, enabling the ECU to perform precise control of the motor based on the stall current.

[0077] In some embodiments, determining that the motor has entered a stall state when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows may include: When the target state of the current simulation signal changes from an unstable state to a stable state within any two adjacent time windows, and the amplitude of the simulation signal is greater than or equal to a preset amplitude threshold, the motor is determined to enter a stall state.

[0078] Here, relying solely on the target state of the current analog signal changing from an unstable state to a stable state within any two adjacent time windows may lead to false detections in special circumstances. Therefore, it is necessary to combine the determination of whether the amplitude of the analog signal is greater than or equal to a preset amplitude threshold to determine whether the motor has entered a stall state.

[0079] The following explanation uses a car window as an example. When the window rises and encounters an obstacle or reaches the top, the motor will first go through an unstable phase of starting or overcoming the obstacle, and then enter a high-amplitude stable stall phase. For example... Figure 2 As shown, in the initial stage of motor startup (within the left box area), although there will be a transition from an unstable state to a stable state, the current amplitude is low at this time and has not reached the preset amplitude threshold. Therefore, based on the above judgment method, this state will be correctly excluded from the stall state, avoiding misjudgment.

[0080] The embodiments of this application determine whether a motor has entered a stall state by combining the state transition of the current analog signal within any two adjacent time windows with an amplitude threshold, which can avoid misjudgment and improve the accuracy of determining the motor state.

[0081] Based on the same inventive concept, embodiments of this application also provide a device for determining stall current.

[0082] In some embodiments, such as Figure 5 As shown in the figure, this application provides a device for determining the stall current, which may include: The acquisition module 501 is used to acquire the analog current signal generated by the motor controlling the sliding of the target sliding door / window from the electronic control unit when the electronic control unit controls the target sliding door / window to slide. The determination module 502 is used to segment the current analog signal according to a preset time window, and determine the target state based on the degree of change of the current analog signal in each time window. The target state includes a stable state or an unstable state. The determination module 502 is also used to determine that the motor has entered a stall state when the target state of the current analog signal within any two adjacent time windows changes from an unstable state to a stable state. The acquisition module 503 is used to acquire the current generated by the motor to obtain the stall current.

[0083] This embodiment acquires the simulated current signal of the motor from the ECU via an acquisition module. A determination module segments the simulated current signal into preset time windows and determines the target state of the simulated current signal within each time window. The motor is determined to enter a stalled state when the target state transitions from an unstable state to a stable state over two consecutive time windows. A data acquisition module then collects the motor current in the stalled state to obtain the stall current. This method achieves automated detection of the stall current and improves the efficiency of stall current acquisition.

[0084] In some embodiments, the determining module is configured to: The change value is determined based on the difference between the maximum and minimum values ​​of the current analog signal within each time window; If the change is less than or equal to the threshold, the target state is determined to be a stable state; or, If the degree of change exceeds a threshold, the target state is determined to be an unstable state.

[0085] In some embodiments, the acquisition module is further configured to: Obtain the preset duration time window corresponding to the type of the target sliding door / window.

[0086] In some embodiments, the determining module is specifically used for: Given that the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows, for the later target time window in any two adjacent time windows, obtain the target states corresponding to the M consecutive time windows after the target time window. If the target state is stable for each of the M consecutive time windows, the motor is determined to enter a stall state.

[0087] In some embodiments, the determining module is specifically used for: Based on the target state corresponding to each time window, a state waveform is plotted. When the target state corresponding to the time window is unstable, the state waveform is the first level value. When the target state corresponding to the time window is stable, the state waveform is the second level value. The first level value is less than the second level value. Based on the state waveform, multiple stable state segments consisting of multiple consecutive second level values ​​are determined, and the time period corresponding to each stable state segment is obtained; Among multiple time periods, a target time period with a length greater than a first threshold and less than a second threshold is selected, and the motor state corresponding to the target time period is determined as a stalled state; wherein, the first threshold is less than the second threshold.

[0088] In some embodiments, the acquisition module is specifically used for: During the first time period, the controlled target can close sliding doors and windows; In the second time period following the first time period, the target sliding door / window is controlled to slide, and the simulated current signal generated by the motor controlling the sliding of the target sliding door / window is acquired.

[0089] In some embodiments, the acquisition module is specifically used for: Acquire the simulated initial current signal generated by the motor that controls the sliding door / window. The initial current simulation signal is smoothed to obtain the current simulation signal.

[0090] In some embodiments, the acquisition module is specifically used for: The current is collected at multiple different times when the motor is in a stalled state; The stall current is obtained by calculating the average value of the current at multiple different times.

[0091] In some embodiments, the determining module is specifically used for: When the target state of the current simulation signal changes from an unstable state to a stable state within any two adjacent time windows, and the amplitude of the simulation signal is greater than or equal to a preset amplitude threshold, the motor is determined to enter a stall state.

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

[0093] Figure 6 A schematic diagram of the hardware structure of an electronic device is provided in the application embodiment.

[0094] The electronic device 600 may include a processor 601 and a memory 602 storing computer program instructions.

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

[0096] Memory 602 may include mass storage for data or instructions. For example, and not limitingly, memory 602 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 602 may include removable or non-removable (or fixed) media. Where appropriate, memory 602 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 602 is non-volatile solid-state memory.

[0097] In a particular embodiment, memory 602 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.

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

[0099] The processor 601 reads and executes computer program instructions stored in the memory 602 to implement any of the methods for determining the stall current in the above embodiments.

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

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

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

[0103] The electronic devices described above are used to implement the corresponding stall current determination method in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0104] Furthermore, in conjunction with the stall current determination method in the above embodiments, this application embodiment can provide a computer storage medium for implementation. This computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the stall current determination methods in the above embodiments.

[0105] Furthermore, in conjunction with the locked-rotor current determination method in the above embodiments, this application embodiment can provide a computer program product to implement this method. When the instructions of this computer program product are executed by the processor of an electronic device, they implement any of the locked-rotor current determination methods in the above embodiments.

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

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

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

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

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

Claims

1. A method for determining stall current, characterized in that, include: When the electronic control unit controls the target sliding door / window to slide, the analog current signal generated by the motor controlling the sliding of the target sliding door / window is obtained from the electronic control unit; The current analog signal is segmented according to a preset time window, and a target state is determined based on the degree of change of the current analog signal within each time window. The target state includes a stable state or an unstable state. If the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows, it is determined that the motor has entered a stall state. The current generated by the motor is collected to obtain the stall current.

2. The method for determining the stall current according to claim 1, characterized in that, Determining the target state based on the degree of change of the current analog signal within each time window includes: The change value is determined based on the difference between the maximum and minimum values ​​of the current analog signal within each time window; If the change value is less than or equal to the threshold, the target state is determined to be a stable state; or, If the degree of change exceeds a threshold, the target state is determined to be an unstable state.

3. The method for determining the stall current according to claim 1, characterized in that, Before segmenting the current analog signal according to a preset time window, the determination method further includes: Obtain the time window of a preset duration corresponding to the type of the target sliding door / window.

4. The method for determining the stall current according to claim 1, characterized in that, The step of determining that the motor has entered a stall state when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows includes: If the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows, for the target time window that is later in any two adjacent time windows, the target state corresponding to the M consecutive time windows after the target time window is obtained respectively. If the target state corresponding to each of the M consecutive time windows is a stable state, the motor is determined to enter the stall state.

5. The method for determining the stall current according to claim 1, characterized in that, The step of determining that the motor has entered a stall state when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows includes: Based on the target state corresponding to each time window, a state waveform is plotted. When the target state corresponding to the time window is an unstable state, the state waveform is a first level value. When the target state corresponding to the time window is a stable state, the state waveform is a second level value. The first level value is less than the second level value. Based on the state waveform, multiple stable state segments consisting of multiple consecutive second level values ​​are determined, and the time period corresponding to each stable state segment is obtained; Among the multiple time periods, a target time period with a length greater than a first threshold and less than a second threshold is selected, and the motor state corresponding to the target time period is determined to be a stalled state; wherein, the first threshold is less than the second threshold.

6. The method for determining the stall current according to claim 1, characterized in that, The acquisition of the analog current signal generated by the motor controlling the sliding of the target sliding door / window includes: During the first time period, the target sliding doors and windows are controlled to close. In the second time period following the first time period, the target sliding door / window is controlled to slide, and the simulated current signal generated by the motor controlling the sliding of the target sliding door / window is acquired.

7. The method for determining the stall current according to any one of claims 1-6, characterized in that, The acquisition of the analog current signal generated by the motor controlling the sliding of the target sliding door / window includes: Acquire the initial current simulation signal generated by the motor that controls the sliding of the target sliding door / window; The initial current simulation signal is smoothed to obtain the current simulation signal.

8. The method for determining the stall current according to claim 1, characterized in that, The process of collecting the current generated by the motor to obtain the stall current includes: When the motor is in a stalled state, the current is collected at multiple different times; The stall current is obtained by calculating the average value of the current at the multiple different times.

9. The method for determining the stall current according to claim 1, characterized in that, The step of determining that the motor has entered a stall state when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows includes: When the target state of the current simulation signal changes from an unstable state to a stable state within any two adjacent time windows, and the amplitude of the simulation signal is greater than or equal to a preset amplitude threshold, the motor is determined to enter the stall state.

10. A device for determining stall current, characterized in that, include: The acquisition module is used to acquire, from the electronic control unit, the analog current signal generated by the motor controlling the sliding of the target sliding door / window; The determination module is used to segment the current analog signal according to a preset time window, and determine the target state based on the degree of change of the current analog signal within each time window. The target state includes a stable state or an unstable state. The determination module is also used to determine that the motor has entered a stall state when the target state of the current analog signal changes from an unstable state to a stable state within any two adjacent time windows. The acquisition module is used to acquire the current generated by the motor to obtain the stall current.