Vehicle window total travel determination method and device, storage medium and program product

By analyzing the current fluctuation value of the window motor, the full stroke of the window can be accurately determined, which solves the problem of inaccurate ripple detection under the influence of electromagnetic interference and improves the service life and safety of the window motor.

CN118774532APending Publication Date: 2024-10-15CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411058480.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, after the window motor reaches the full stroke, the ripple detection is inaccurate due to electromagnetic environmental interference, resulting in low accuracy and unreliability in determining the full stroke of the window.

Method used

By obtaining the current information of the window motor, the current fluctuation values ​​in the first and second time periods are determined, and when the second fluctuation value is greater than the first fluctuation value and the first fluctuation value is less than or equal to the threshold, the window The moment when the motor completes the full stroke, and then the number of ripples is accurately calculated to determine the full stroke.

Benefits of technology

It improves the accuracy and reliability of determining the full stroke of the window, avoids the influence of electromagnetic interference, and ensures the safety and service life of the window motor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118774532A_ABST
    Figure CN118774532A_ABST
Patent Text Reader

Abstract

The invention relates to a vehicle window total travel determination method and device, a storage medium and a program product, and relates to the technical field of vehicles. The technical problems of low accuracy and unreliability in determining the total travel of the vehicle window in the prior art are at least solved. The method comprises the steps that current information of a car window motor is obtained, the current information comprises the current intensity of the car window motor in a first time period and the current intensity of the car window motor in a second time period, and the second time period is a previous time period adjacent to the first time period; determining a first fluctuation value and a second fluctuation value based on the current information; under the condition that the second fluctuation numerical value is larger than the first fluctuation numerical value and the first fluctuation numerical value is smaller than or equal to the fluctuation threshold value, the target moment in the second time period is determined as the moment when the vehicle window motor completes the whole travel of the vehicle window; and the number of current ripples of the vehicle window motor in the target time period is obtained, and the number of the current ripples is determined as the number of ripples corresponding to the completion of the whole travel of the vehicle window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile technology, and in particular to the field of full-stroke determination of automobile windows, and specifically to a method, device, storage medium and program product for determining the full-stroke of a window. Background Art

[0002] When the window motor completes the closing and opening process of the window, if the window motor continues to work after reaching the maximum stroke of closing or opening, it may cause the window motor to overload and damage the window motor. Therefore, it is necessary to determine the full stroke of the window so that the power can be cut off in time after the window motor reaches the full stroke of the window.

[0003] Currently, the ripple quantity of the window motor in the full window stroke can be directly detected, and the maximum ripple quantity corresponding to the full window stroke is used to represent the full window stroke.

[0004] However, in the related art, due to the electromagnetic environment interference during the detection process, ripples caused by the electromagnetic environment interference may be detected after the window motor stops working. The maximum ripple number corresponding to the full window stroke detected in this way includes the ripples caused by the electromagnetic interference, rather than the ripple number corresponding to the actual full window stroke, resulting in low accuracy and unreliability in determining the full window stroke. Summary of the invention

[0005] According to the first aspect provided by the present application, the present application provides a method, device, storage medium and program product for determining the full stroke of a vehicle window, so as to at least solve the technical problems of low accuracy and unreliability in determining the full stroke of a vehicle window in the related art. The technical solution of the present application is as follows: obtaining current information of a window motor, the current information including the current intensity of the window motor in a first time period and the current intensity of the window motor in a second time period, the second time period being the previous time period adjacent to the first time period; determining a first fluctuation value and a second fluctuation value based on the current information, the first fluctuation value being used to indicate the fluctuation of the current in the first time period, and the second fluctuation value being used to indicate the fluctuation of the current in the second time period; when the second fluctuation value is greater than the first fluctuation value, and the first fluctuation value is less than or equal to the fluctuation threshold, determining a target moment in the second time period as the moment when the window motor completes a full stroke of the window, the target moment being the moment when the current intensity is the largest in the second time period; obtaining the current ripple amount of the window motor in the target time period, and determining the current ripple amount as the ripple amount corresponding to the window completing the full stroke of the window, the target time period being the time period from the moment when the window motor starts working to the target moment.

[0006] In a possible implementation, determining the first fluctuation value based on the current information includes: determining the variance of the current intensity within the first time period based on the current intensity within the first time period; and determining the variance of the current intensity within the first time period as the first fluctuation value.

[0007] In a possible implementation, obtaining the current information of the window motor includes: after a preset period of time has passed since the window motor starts working, collecting the current intensity of the window motor at a preset frequency using an analog-to-digital converter (ADC) to obtain the current intensity at multiple moments, the preset frequency of the analog-to-digital converter being greater than the frequency of ripples generated by the window motor; and determining the current intensity in the first time period and the current intensity in the second time period based on the current intensity at the multiple moments.

[0008] In a possible implementation, when the second fluctuation value is greater than the first fluctuation value and the first fluctuation value is less than or equal to a fluctuation threshold, determining the target moment in the second time period as the moment when the window motor completes the full stroke of the window includes: determining the difference between the first fluctuation value and the second fluctuation value; when the difference is greater than the difference threshold and the first fluctuation value is less than or equal to the fluctuation threshold, determining the target moment in the second time period as the moment when the window motor completes the full stroke of the window.

[0009] In a possible implementation, obtaining the number of current ripples within the target time period includes: obtaining multiple current ripples within the target time period; and determining the number of current ripples among the multiple current ripples whose current intensity change is greater than a change threshold as the number of current ripples within the target time period.

[0010] In a possible implementation, the method further includes: obtaining a real-time ripple quantity in the window motor during the process of the window motor completing a full stroke of window opening or closing; and controlling the window motor to cut off power based on the real-time ripple quantity being equal to the current ripple quantity within the target time period.

[0011] According to a second aspect provided by the present application, a device for determining a full stroke of a window is provided, comprising: an acquisition module and a determination module; the acquisition module is used to acquire current information of a window motor, the current information comprising the current intensity of the window motor in a first time period and the current intensity of the window motor in a second time period, the second time period being a previous time period adjacent to the first time period; the determination module is used to determine a first fluctuation value and a second fluctuation value based on the current information, the first fluctuation value being used to indicate the fluctuation of the current in the first time period, and the second fluctuation value being used to indicate the fluctuation of the current in the second time period; the determination module is also used to determine a target moment in the second time period as a moment when the window motor completes the full stroke of the window when the second fluctuation value is greater than the first fluctuation value and the first fluctuation value is less than or equal to a fluctuation threshold, the target moment being a moment when the current intensity is the largest in the second time period; the acquisition module is also used to acquire the current ripple quantity of the window motor in the target time period; the determination module is also used to determine the current ripple quantity as the ripple quantity corresponding to the window completing the full stroke of the window, the target time period being a time period from the moment when the window motor starts working to the target moment.

[0012] In a possible implementation, the determination module is specifically used to determine the variance of the current intensity within the first time period based on the current information; the determination module is also specifically used to determine the variance of the current intensity within the first time period as the first fluctuation value.

[0013] In a possible implementation, the acquisition module is specifically used to collect the current intensity of the window motor at a preset frequency through an analog-to-digital converter after a preset period of time has passed after the window motor starts working, so as to obtain the current intensity at multiple moments, and the preset frequency of the analog-to-digital converter is greater than the frequency of ripple generated by the window motor; the determination module is also used to determine the current intensity in the first time period and the current intensity in the second time period based on the current intensity at the multiple moments.

[0014] In a possible implementation, the determination module is also used to determine the difference between the first fluctuation value and the second fluctuation value; the determination module is specifically used to determine the target moment in the second time period as the moment when the window motor completes the full stroke of the window when the difference is greater than the difference threshold and the first fluctuation value is less than or equal to the fluctuation threshold.

[0015] In a possible implementation, the acquisition module is specifically used to acquire multiple current ripples within the target time period; the determination module is used to determine the number of current ripples in the multiple current ripples whose current intensity change is greater than a change threshold as the number of current ripples within the target time period.

[0016] In a possible implementation, the window full stroke determination device also includes a control module; the acquisition module is also used to obtain the real-time ripple quantity in the window motor during the process of the window motor completing the full stroke of the window opening or closing; the control module is used to control the window motor to cut off power based on the real-time ripple quantity being equal to the current ripple quantity within the target time period.

[0017] According to the third aspect provided by the present application, a device for determining the full travel of a vehicle window is provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute instructions to implement the method of the above-mentioned first aspect and any possible implementation manner thereof.

[0018] According to the fourth aspect provided by the present application, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by the processor of a vehicle window full-stroke determination device, the vehicle window full-stroke determination device is enabled to execute the method in the above-mentioned first aspect and any possible implementation manner thereof.

[0019] According to the fifth aspect provided by the present application, a computer program product is provided, which includes computer instructions. When the computer instructions are run on a vehicle window full-stroke determination device, the vehicle window full-stroke determination device executes the method of the above-mentioned first aspect and any possible implementation method thereof.

[0020] Therefore, the above technical features of the present application have the following beneficial effects:

[0021] (1) After the motor reaches the full stroke of the window, the current of the motor will suddenly increase and the subsequent current basically stops fluctuating. Therefore, when the second fluctuation value is greater than the first fluctuation value, and the first fluctuation value is less than or equal to the fluctuation threshold, it means that the first time period corresponding to the second fluctuation value is the time period when the current suddenly increases, and the second time period is the time period when the current stops fluctuating. At this time, the target moment in the second time period is determined as the moment when the window motor completes the full stroke of the window, the target moment is the moment when the current intensity is the largest in the second time period, and the number of ripples of the current in the period from the moment when the window motor starts working to the target moment is determined as the number of ripples corresponding to the full stroke of the window, which can accurately and reliably determine the full stroke of the window.

[0022] (2) When the difference is greater than the difference threshold and the first fluctuation value is less than or equal to the fluctuation threshold, it means that the difference between the first fluctuation value and the second fluctuation value is not caused by electromagnetic interference in the environment. In this way, the moment when the window motor completes the full travel of the window can be determined more accurately and reliably.

[0023] (3) If the change in current intensity is greater than the change threshold, it means that the current ripple is generated by the window motor driving the window, rather than by electromagnetic interference in the environment. Therefore, the amount of current ripple in the target time period can be determined more accurately.

[0024] (4) When the real-time ripple quantity is equal to the current ripple quantity in the target period, it means that the window motor has completed the full stroke. At this time, the window motor is powered off to avoid the window motor from being blocked. This ensures the safety and service life of the window motor.

[0025] It should be noted that the technical effects brought about by any implementation method in the second to fifth aspects can refer to the technical effects brought about by the corresponding implementation method in the first aspect, and will not be repeated here.

[0026] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute improper limitations on the present application.

[0028] Figure 1 is a flow chart of a method for determining a full travel of a vehicle window according to an exemplary embodiment;

[0029] Figure 2 is a schematic diagram of current intensity variance according to an exemplary embodiment;

[0030] Figure 3 is a schematic diagram showing a current intensity according to an exemplary embodiment;

[0031] Figure 4 is a flow chart of another method for determining a full travel of a vehicle window according to an exemplary embodiment;

[0032] Figure 5 is a flow chart of another method for determining a full travel of a vehicle window according to an exemplary embodiment;

[0033] Figure 6 is a schematic structural diagram of a device for determining a full travel of a vehicle window according to an exemplary embodiment;

[0034] Figure 7 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0035] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0037] When the window motor completes the closing and opening process of the window, if the window motor continues to work after reaching the maximum stroke of closing or opening, it may cause the window motor to overload and damage the window motor. Therefore, it is necessary to determine the full stroke of the window so that the power can be cut off in time after the window motor reaches the full stroke of the window.

[0038] Currently, the ripple quantity of the window motor in the full window stroke can be directly detected, and the maximum ripple quantity corresponding to the full window stroke is used to represent the full window stroke.

[0039] However, in the related art, due to the electromagnetic environment interference during the detection process, ripples caused by the electromagnetic environment interference may be detected after the window motor stops working. The maximum ripple number corresponding to the full window stroke detected in this way includes the ripples caused by the electromagnetic interference, rather than the ripple number corresponding to the actual full window stroke, resulting in low accuracy and unreliability in determining the full window stroke.

[0040] In order to solve the above problems, the present application provides a method for determining the full stroke of a window, including: obtaining the current information of the window motor, the current information including the current intensity of the window motor in a first time period and the current intensity of the window motor in a second time period, the second time period being the previous time period adjacent to the first time period; determining a first fluctuation value and a second fluctuation value based on the current information, the first fluctuation value being used to indicate the fluctuation of the current in the first time period, and the second fluctuation value being used to indicate the fluctuation of the current in the second time period; when the second fluctuation value is greater than the first fluctuation value and the first fluctuation value is less than or equal to the fluctuation threshold, determining the target moment in the second time period as the moment when the window motor completes the full stroke of the window, the target moment being the moment when the current intensity is the largest in the second time period; obtaining the current ripple number of the window motor in the target time period, and determining the current ripple number as the ripple number corresponding to the window completing the full stroke of the window, the target time period being the time period from the moment when the window motor starts working to the target moment. Since the motor reaches the full stroke of the window, the current of the motor will suddenly increase and the subsequent current basically stops fluctuating. Therefore, when the second fluctuation value is greater than the first fluctuation value, and the first fluctuation value is less than or equal to the fluctuation threshold, it means that the first time period corresponding to the second fluctuation value is a time period when the current suddenly increases, and the second time period is a time period when the current stops fluctuating. At this time, the target time in the second time period is determined as the time when the window motor completes the full stroke of the window, the target time is the time when the current intensity is the largest in the second time period, and the number of ripples of the current in the period from the time when the window motor starts working to the target time is determined as the number of ripples corresponding to the full stroke of the window, so that the full stroke of the window can be accurately and reliably determined.

[0041] The execution subject of the vehicle window full stroke determination method provided in the present application may be a vehicle window full stroke determination device, and the execution device may be an electronic device. At the same time, the execution device may also be a central processing unit (CPU) of the electronic device, or a control module for vehicle window full stroke determination in the electronic device. In the embodiment of the present application, the method for determining the vehicle window full stroke performed by an electronic device is taken as an example to illustrate the method for determining the vehicle window full stroke provided in the embodiment of the present application.

[0042] For ease of understanding, the method for determining the full travel of a vehicle window provided in this application is specifically introduced below with reference to the accompanying drawings.

[0043] Figure 1 is a flow chart of a method for determining a vehicle window full travel according to an exemplary embodiment. Figure 1 As shown, the method for determining the full travel of a vehicle window includes S101-S105:

[0044] S101. Obtain current information of a window motor.

[0045] The current information includes the current intensity of the window motor in a first time period and the current intensity of the window motor in a second time period, and the second time period is a previous time period adjacent to the first time period.

[0046] In one possible implementation, after a preset period of time has passed since the window motor starts working, the current intensity of the window motor is collected by an analog-to-digital converter at a preset frequency to obtain the current intensity at multiple moments, and the preset frequency of the analog-to-digital converter is greater than the frequency of ripples generated by the window motor; based on the current intensity at the multiple moments, the current intensity in the first time period and the current intensity in the second time period are determined.

[0047] It should be understood that the analog-to-digital converter can collect the current signal of the window motor and obtain the current intensity of the window motor based on the current signal of the window motor.

[0048] It should be understood that when the window motor is started, the current of the window motor may be relatively large due to overcoming inertia. Therefore, it is necessary to collect the current intensity of the window motor after a preset time has passed after the window motor starts working.

[0049] In some embodiments, the analog-to-digital converter is deployed in an electronic device.

[0050] It should be understood that multiple time points correspond to multiple time periods, and the first time period and the second time period are any two adjacent time periods in the multiple time periods.

[0051] In a possible implementation manner, a first preset number of moments may be divided into a time period.

[0052] Exemplarily, assuming that there are 4 moments and the first preset number is 2, the 4 moments may correspond to 3 time periods.

[0053] It should be noted that the first preset number is not limited in the embodiment of the present application. For example, the first preset number may be 1, 2, 3, etc.

[0054] In a possible implementation, a time period may be divided into every second preset number of moments.

[0055] Exemplarily, assuming that there are 4 moments, the first preset number is 2, and the second preset number is 2, the 4 moments may correspond to 2 time periods.

[0056] It should be noted that the second preset number is not limited in the embodiment of the present application. For example, the second preset number may be 1, 2, 3, etc.

[0057] It should be understood that by dividing the time period by the second preset number, the amount of data to be processed can be reduced and the speed of acquiring the current information can be increased.

[0058] S102: Determine a first fluctuation value and a second fluctuation value based on the current information.

[0059] The first fluctuation value is used to indicate the fluctuation of the current in the first time period, and the second fluctuation value is used to indicate the fluctuation of the current in the second time period.

[0060] In one possible implementation, the first fluctuation value is determined based on the current intensity within the first time period, and this is achieved in the following manner: based on the current intensity within the first time period, the variance of the current intensity within the first time period is determined; and the variance of the current intensity within the first time period is determined as the first fluctuation value.

[0061] For example, Figure 2 As shown, a schematic diagram of the variance of current intensity provided in an embodiment of the present application is shown. Taking the case where a car window starts to close from a fully open state driven by a car window motor as an example, the variance of the current intensity in the initial stage is maintained within a stable range due to the existence of regular ripples, and when the car window motor drives the car window to close completely (i.e., the car window motor is stalled), the variance of the current intensity suddenly increases due to the sudden change of the current intensity, and then the variance of the current intensity approaches 0.

[0062] like Figure 3 FIG. 1 is a schematic diagram of current intensity provided by an embodiment of the present application. Taking the case where a car window starts to close from a fully opened state driven by a car window motor as an example, there is a ripple phenomenon in the current intensity in the initial stage, and the current intensity forms multiple ripples over time; when the car window motor drives the car window to close completely (i.e., the car window motor is blocked), the current intensity suddenly increases, and then decreases slightly and becomes relatively stable.

[0063] It can be understood that the implementation method of determining the first fluctuation value based on the current intensity in the first time period can be similarly derived by determining the second fluctuation value based on the current intensity in the second time period.

[0064] S103: when the second fluctuation value is greater than the first fluctuation value and the first fluctuation value is less than or equal to the fluctuation threshold, determine the target time in the second time period as the time when the window motor completes the full stroke of the window.

[0065] The target time is the time when the current intensity is the largest in the second time period.

[0066] It should be understood that when the window motor drives the window to move normally, the current of the window motor will fluctuate regularly, and a peak and a trough in the regular fluctuation constitute a ripple. However, when the window motor drives the window to reach the terminal position of the window, the window motor is blocked. At this time, due to the inertia of the window motor, no matter whether the mechanical structure of the terminal of the window is rigid or buffered by soft materials, the window motor will produce a sudden increase in current; after the terminal mechanical structure of the window overcomes the inertia of the window, the current of the window motor will drop sharply for a period of time, but it will still be different from the current during normal operation. At the same time, due to the motor blocking, the brush will not brush the commutator, and ripple current will not be generated. At this time, the current will become more stable.

[0067] Based on this, it can be determined that the current fluctuation of the window motor is large when the window motor is locked, and the current fluctuation of the window motor is small after the window motor is locked. Therefore, when the second fluctuation value is greater than the first fluctuation value, and the first fluctuation value is less than or equal to the fluctuation threshold, it means that the window motor has completed the full window stroke at the moment when the current intensity of the window motor in the second time period is the largest. At this time, the target time in the second time period is determined as the moment when the window motor has completed the full window stroke.

[0068] In one possible implementation, the difference between the first fluctuation value and the second fluctuation value is determined; when the difference is greater than a difference threshold and the first fluctuation value is less than or equal to the fluctuation threshold, the target moment in the second time period is determined as the moment when the window motor completes the full stroke of the window.

[0069] It should be understood that when the difference is greater than the difference threshold and the first fluctuation value is less than or equal to the fluctuation threshold, it means that the difference between the first fluctuation value and the second fluctuation value is not caused by electromagnetic interference in the environment. In this way, the moment when the window motor completes the full travel of the window can be determined more accurately and reliably.

[0070] S104: Obtain the current ripple quantity of the window motor within the target time period.

[0071] In a possible implementation, a plurality of current ripples within the target time period are obtained; and the number of current ripples in the plurality of current ripples whose current intensity variation is greater than a variation threshold is determined as the number of current ripples within the target time period.

[0072] It should be understood that if the current intensity variation is greater than the variation threshold, it means that the current ripple is generated by the window motor driving the window, rather than by electromagnetic interference in the environment. Thus, the current ripple amount in the target time period can be determined more accurately.

[0073] S105, determining the number of current ripples as the number of ripples corresponding to completing a full stroke of the vehicle window.

[0074] The target time period is the time period from the moment when the window motor starts to work to the target time.

[0075] In a possible implementation, the embodiment of the present application provides an example of a method for determining the full stroke of a vehicle window, including: an electronic device collects the current intensity of a vehicle window motor in real time; and after the number of collected current intensities reaches a first preset number, determines the variance (i.e., fluctuation value) x1 within the time period, and continues to collect data until the number of newly collected current intensities reaches the first preset number, and determines the variance x2 within the time period. And calculate the difference between x1 and x2, and when the difference is less than the difference threshold and x2 approaches 0, determine that the vehicle window motor has completed the full stroke; when the difference is greater than or equal to the difference threshold, continue to collect a new round of the first preset number of current intensities and calculate the variance, and compare the difference between the new round of variance and x2 with the difference threshold until it is determined that the vehicle window motor has completed the full stroke.

[0076] In the embodiment of the present application, after the motor reaches the full stroke of the window, the current of the motor will suddenly increase and the subsequent current basically stops fluctuating. Therefore, when the second fluctuation value is greater than the first fluctuation value, and the first fluctuation value is less than or equal to the fluctuation threshold, it means that the first time period corresponding to the second fluctuation value is the time period when the current suddenly increases, and the second time period is the time period when the current stops fluctuating. At this time, the target moment in the second time period is determined as the moment when the window motor completes the full stroke of the window, the target moment is the moment when the current intensity is the largest in the second time period, and the number of ripples of the current in the period from the moment when the window motor starts working to the target moment is determined as the number of ripples corresponding to the full stroke of the window, so that the full stroke of the window can be accurately and reliably determined.

[0077] In some embodiments, the method for determining the full travel of a vehicle window provided in the embodiments of the present application can be applied to a vehicle window travel self-learning scenario, and can also be applied to a vehicle window anti-pinch application scenario.

[0078] In some embodiments, in combination Figure 1 The embodiment shown, as Figure 4 As shown, the above-mentioned method for determining the full travel of the vehicle window further includes S401-S402:

[0079] S401. When the window motor completes a full stroke of window opening or closing, obtain the real-time ripple quantity in the window motor.

[0080] In a possible implementation, real-time current information in the window motor may be collected in real time by an analog-to-digital converter, and the real-time ripple amount of the window motor may be determined based on the real-time current information.

[0081] S402 : Based on the real-time ripple quantity being equal to the current ripple quantity in the target time period, control the window motor to cut off power.

[0082] It should be understood that the real-time ripple quantity equals the current ripple quantity within the target period, indicating that the window motor has completed the full stroke. At this time, the window motor is controlled to be powered off to avoid the window motor from being blocked.

[0083] In a possible implementation, when the real-time ripple quantity reaches a preset percentage of the current ripple quantity in the target period, the window motor can be controlled to be powered off, so that the safety of the window motor can be ensured in a more timely manner.

[0084] For example, Figure 5 As shown, in the window travel self-learning scenario, the embodiment of the present application provides a flow chart of another method for determining the full travel of the window, and the flow chart is described in detail below, including: starting the window motor travel self-learning; starting to calculate the number of ripples of the current of the window motor; reading and recording the current value of the window motor, and after recording 30 currents, calculating the variance x1; reading and recording the current value of the window motor, and after recording 30 currents again, calculating the variance x2; calculating the difference of x1-x2; when the difference of x1-x2 is greater than the difference threshold and x2 is less than the variance threshold, determining that the end position of the window is found and stopping calculating the number of ripples; obtaining the ripple corresponding to the end position of the window and determining the number of ripples of the full travel of the window; when the difference of x1-x2 is less than or equal to the difference threshold and / or x2 is greater than or equal to the variance threshold, assigning x2 to x1, and returning to the step of "reading and recording the current value of the window motor, and after recording 30 currents again, calculating the variance x2".

[0085] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the vehicle window full stroke determination device or electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0086] The embodiment of the present application can divide the functional modules of the vehicle window full stroke determination device or the electronic device according to the above method. For example, the vehicle window full stroke determination device or the electronic device can include various functional modules corresponding to the various functional divisions, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0087] Figure 6 is a schematic diagram of a structure of a device for determining the full travel of a vehicle window according to an exemplary embodiment. Figure 6 The vehicle window full travel determination device includes an acquisition module 601 and a determination module 602 .

[0088] The acquisition module 601 is used to acquire the current information of the window motor, wherein the current information includes the current intensity of the window motor in a first time period and the current intensity of the window motor in a second time period, wherein the second time period is a previous time period adjacent to the first time period.

[0089] The determination module 602 is used to determine a first fluctuation value and a second fluctuation value based on the current information, wherein the first fluctuation value is used to indicate the fluctuation of the current in the first time period, and the second fluctuation value is used to indicate the fluctuation of the current in the second time period.

[0090] The determination module 602 is also used to determine the target moment in the second time period as the moment when the window motor completes the full stroke of the window when the second fluctuation value is greater than the first fluctuation value and the first fluctuation value is less than or equal to the fluctuation threshold. The target moment is the moment when the current intensity is the largest in the second time period.

[0091] The acquisition module 601 is further used to acquire the current ripple quantity within the target time period.

[0092] The determination module 602 is further used to determine the current ripple amount as the ripple amount corresponding to the window completing the full stroke of the window, and the target time period is the time period from the moment when the window motor starts working to the target moment.

[0093] In a possible implementation, the determination module 602 is specifically configured to determine the variance of the current intensity within the first time period based on the current intensity within the first time period.

[0094] The determination module 602 is further specifically configured to determine the variance of the current intensity within the first time period as the first fluctuation value.

[0095] In a possible implementation, the acquisition module 601 is specifically used to collect the current strength of the window motor at a preset frequency based on an analog-to-digital converter after a preset period of time has passed since the window motor starts working, and obtain the current strength at multiple moments. The preset frequency of the analog-to-digital converter is greater than the frequency of the ripple generated by the window motor.

[0096] The determination module 602 is further configured to determine the current intensity within the first time period and the current intensity within the second time period based on the current intensity at the multiple moments.

[0097] In a possible implementation, the determination module 602 is further configured to determine a difference between the first fluctuation value and the second fluctuation value.

[0098] The determination module 602 is specifically configured to determine the target moment in the second time period as the moment when the window motor completes the full window stroke when the difference is greater than the difference threshold and the first fluctuation value is less than or equal to the fluctuation threshold.

[0099] In a possible implementation, the acquisition module 601 is specifically configured to acquire a plurality of current ripples within the target time period.

[0100] The determination module 602 is used to determine the number of current ripples in the multiple current ripples whose current intensity change is greater than a change threshold as the number of current ripples in the target time period.

[0101] In a possible implementation manner, the device for determining the full travel of a vehicle window further includes a control module 603 .

[0102] The acquisition module 601 is also used to acquire the real-time ripple quantity in the window motor when the window motor completes the full stroke of window opening or closing.

[0103] The control module 603 is used to control the window motor to cut off power based on the real-time ripple quantity being equal to the current ripple quantity within the target time period.

[0104] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0105] Figure 7 FIG. 1 is a schematic diagram showing the structure of an electronic device according to an exemplary embodiment. Figure 7 As shown, the electronic device includes but is not limited to: a processor 701 and a memory 702 .

[0106] The memory 702 is used to store executable instructions of the processor 701. It can be understood that the processor 701 is configured to execute instructions to implement the method for determining the full travel of the vehicle window in the above embodiment.

[0107] It should be noted that those skilled in the art can understand that Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include Figure 7 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.

[0108] The processor 701 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 701 may include one or more processing units. Optionally, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.

[0109] The memory 702 may be used to store software programs and various data. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one functional module (such as a determination unit, a processing unit, etc.), etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0110] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 702 including instructions. The above instructions can be executed by a processor 701 of an electronic device to implement the method in the above embodiment.

[0111] In actual implementation, Figure 6 The functions of the acquisition module 601, the determination module 602, and the control module 603 in Figure 7 The processor 701 in the embodiment calls the computer program stored in the memory 702. The specific execution process can refer to the description of the method part in the above embodiment, which will not be repeated here.

[0112] Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0113] In an exemplary embodiment, the present application also provides a computer program product including one or more instructions, and the one or more instructions can be executed by the processor 701 of the electronic device to complete the method in the above embodiment.

[0114] It should be noted that when the instructions in the above-mentioned computer-readable storage medium or one or more instructions in the computer program product are executed by the processor of the electronic device, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect as the above-mentioned method can be achieved. To avoid repetition, they will not be repeated here.

[0115] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0116] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0117] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0118] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0119] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or CD and other media that can store program code.

[0120] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for determining the full travel of a vehicle window, characterized in that: include: Acquire current information of the window motor, the current information including the current intensity of the window motor in a first time period and the current intensity of the window motor in a second time period, the second time period being a previous time period adjacent to the first time period; Based on the current information, determine a first fluctuation value and a second fluctuation value, wherein the first fluctuation value is used to indicate the fluctuation of the current in the first time period, and the second fluctuation value is used to indicate the fluctuation of the current in the second time period; When the second fluctuation value is greater than the first fluctuation value, and the first fluctuation value is less than or equal to the fluctuation threshold, the target time in the second time period is determined as the time when the window motor completes the full stroke of the window, and the target time is the time when the current intensity is the largest in the second time period; The current ripple quantity of the window motor within a target time period is obtained, and the current ripple quantity is determined as the ripple quantity corresponding to completing the full stroke of the window. The target time period is the time period from the time when the window motor starts working to the target time.

2. The method according to claim 1, characterized in that: Determining the first fluctuation value based on the current information includes: determining a variance of the current intensity within the first time period based on the current intensity within the first time period; The variance of the current intensity in the first time period is determined as the first fluctuation value.

3. The method according to claim 1, characterized in that The obtaining of the current information of the window motor includes: After a preset time has passed since the window motor started to work, the current intensity of the window motor is collected by an analog-to-digital converter at a preset frequency to obtain the current intensity at multiple moments, and the preset frequency of the analog-to-digital converter is greater than the frequency of the ripple generated by the window motor; Based on the current intensities at the multiple moments, the current intensity in the first time period and the current intensity in the second time period are determined.

4. The method according to claim 1, characterized in that: When the second fluctuation value is greater than the first fluctuation value and the first fluctuation value is less than or equal to the fluctuation threshold, determining the target time in the second time period as the time when the window motor completes the full stroke of the window includes: determining a difference between the first fluctuation value and the second fluctuation value; When the difference is greater than the difference threshold and the first fluctuation value is less than or equal to the fluctuation threshold, the target time in the second time period is determined as the time when the window motor completes the full window stroke.

5. The method according to claim 1, characterized in that The obtaining of the current ripple quantity within the target time period includes: Acquire multiple current ripples within the target time period; The number of current ripples whose current intensity change is greater than a change threshold value among the multiple current ripples is determined as the number of current ripples in the target time period.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When the window motor completes the full stroke of window opening or closing, obtaining the real-time ripple quantity in the window motor; Based on the real-time ripple amount being equal to the current ripple amount within the target period, the window motor is controlled to be powered off.

7. A device for determining the full travel of a vehicle window, characterized in that: Including acquisition module and determination module; The acquisition module is used to acquire current information of the window motor, wherein the current information includes the current intensity of the window motor in a first time period and the current intensity of the window motor in a second time period, wherein the second time period is a previous time period adjacent to the first time period; The determining module is used to determine a first fluctuation value and a second fluctuation value based on the current information, wherein the first fluctuation value is used to indicate the fluctuation of the current in the first time period, and the second fluctuation value is used to indicate the fluctuation of the current in the second time period; The determination module is further configured to determine the target time in the second time period as the time when the window motor completes the full stroke of the window when the second fluctuation value is greater than the first fluctuation value and the first fluctuation value is less than or equal to the fluctuation threshold, and the target time is the time when the current intensity is the largest in the second time period; The acquisition module is further used to acquire the current ripple quantity of the window motor within a target period; The determination module is further used to determine the current ripple amount as the ripple amount corresponding to the window completing the full stroke of the window, and the target time period is the time period from the moment when the window motor starts working to the target moment.

8. A device for determining the full travel of a vehicle window, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of a vehicle window full-travel determination device, the vehicle window full-travel determination device can execute the method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed on a vehicle window full stroke determination device, the vehicle window full stroke determination device is enabled to execute the method according to any one of claims 1 to 6.