Motor ripple processing method and device, equipment and storage medium

Through the relevant transformation, the motor ripple signal is processed, the problem of inaccurate estimation of the ripple period of DC motor is solved, the accuracy of the ripple period is achieved, the error prevention fault is avoided, and the reliability of the vehicle anti-pinch function is improved.

CN118944501APending Publication Date: 2024-11-12ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411102513.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the prior art, the ripple period estimate of DC motors is inaccurate, resulting in the occurrence of clamping failures, especially when the ripple waveform is distorted, the zero-crossing/crossing mean line detection algorithm will cause erroneous action, resulting in the ripple period not being precise.

Method used

Correlation transformation is used to process motor ripple signals to suppress distortion and noise, and accurately estimate the ripple through the periodic division points after correlation transformation to ensure the normal operation of the anti-pinch function.

Benefits of technology

Through relevant transformation processing, the accurate estimation of the motor ripple cycle is achieved, the occurrence of mis-prevention of clamping faults is avoided, and the reliability and user experience of the vehicle clamping function are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944501A_ABST
    Figure CN118944501A_ABST
Patent Text Reader

Abstract

The invention provides a motor ripple processing method and device, equipment and a storage medium. The method comprises the following steps of: starting reading at a starting point of a motor ripple sampling sequence according to an initial single-cycle sampling point number, performing transformation detection processing on a processing sequence to obtain N cycle segmentation point positions in a related transformation sequence, then updating the initial single-cycle sampling point number, and according to a time sequence, obtaining N cycle segmentation point positions; reading a new processing sequence from the motor ripple sampling sequence from the new starting point position according to the new initial single-period sampling point number, repeating the operation until the motor ripple sampling sequence is processed, and finally performing period segmentation on the motor ripple sampling sequence through all the period segmentation point positions. Therefore, accurate estimation of the ripple period of the motor is realized, normal operation of the anti-pinch function of the vehicle is ensured, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of motor control technology, and in particular to a motor ripple processing method, device, equipment and storage medium. Background Art

[0002] With the continuous advancement of technology, electric windows have become increasingly popular. For the sake of passenger safety, electric windows must have an anti-pinch function to prevent fingers, arms, children's heads and other body parts from being pinched during the window closing process. Early window drive motors mostly used DC brushed motors with Hall sensors. In recent years, in order to reduce costs, more and more vehicles directly use the ripple signal of the DC motor current to count the cumulative number of motor rotations, replacing the function of the Hall sensor.

[0003] In the prior art, the waveform quality of the DC motor ripple is not only related to the working state of the motor, but also to the factors of the motor commutator. The tolerance of the window controller to the ripple waveform deformation when estimating the ripple period is one of the key performance indicators to measure the performance of the ripple anti-pinch algorithm of the window motor controller. For ripple period estimation, it is usually zero crossing / mean line detection, and an improved algorithm based on this method.

[0004] However, if the ripple waveform input into the above algorithm is a severely distorted waveform, the zero-crossing / mean-line-crossing detection algorithm will produce false operation, causing large jitter in the reading of the period value of each ripple, resulting in inaccurate ripple period, and further leading to miscounting of the ripple, causing various false anti-pinch faults. Summary of the invention

[0005] The present application provides a motor ripple processing method, device, equipment and storage medium to solve the problem of inaccurate estimation of motor ripple period in the prior art.

[0006] In a first aspect, the present application provides a motor ripple processing method, which is applied to a motor controller, and the method comprises:

[0007] Step a: according to the pre-acquired initial single-cycle sampling point number, read M cycles of sequence data starting from the starting point of the pre-acquired motor ripple sampling sequence as a processing sequence, where M is a preset integer;

[0008] Step b: performing transformation detection processing on the processing sequence to obtain N period segmentation points in the relevant transformation sequence, wherein the relevant transformation sequence and the processing sequence have the same ripple period, wherein N is a preset number of ripple periods for this segmentation processing;

[0009] Step c: updating the initial single-cycle sampling point number to obtain a new initial single-cycle sampling point number;

[0010] Step d: in chronological order, starting from a new starting point according to the new initial single-cycle sampling point number, reading sequence data of M cycles in the motor ripple sampling sequence as a new processing sequence, repeating steps b to d until the motor ripple sampling sequence is processed, and obtaining N cycle segmentation points in the related transformation sequence corresponding to each processing sequence, wherein the new starting point is determined based on the end point of the last ripple cycle data of the processing sequence;

[0011] Step e: performing period division on the motor ripple sampling sequence through all period division points.

[0012] In combination with the first aspect, in some embodiments, performing transformation detection processing on the processing sequence to obtain N period division points in the relevant transformation sequence includes:

[0013] Performing relevant transformation calculation on the processing sequence to obtain the relevant transformation sequence;

[0014] The upper peak position of the correlation transformation sequence is detected to obtain N period division points in the correlation transformation sequence.

[0015] In combination with the first aspect, in some embodiments, the method further includes:

[0016] According to the initial single-cycle sampling point number, read L cycles of sequence data starting from the starting point of the processing sequence as a local sequence;

[0017] Accordingly, performing relevant transformation calculation on the processing sequence to obtain the relevant transformation sequence includes:

[0018] According to the processing sequence and the local sequence, a correlation transformation calculation is performed using a preset correlation transformation formula to obtain the correlation transformation sequence.

[0019] In combination with the first aspect, in some embodiments, updating the initial single-cycle sampling point number to obtain a new initial single-cycle sampling point number includes:

[0020] The number of sampling points of the Nth ripple cycle in the correlation transformation sequence obtained in the last processing is determined as the new initial single-cycle sampling point number.

[0021] In combination with the first aspect, in some embodiments, the method further includes:

[0022] According to the single-cycle sampling point number prediction value obtained in advance, read the sequence data of M cycles starting from the starting point of the motor ripple sampling sequence as the initial processing sequence;

[0023] According to the predicted value of the number of sampling points in a single cycle, starting from the starting point of the initial processing sequence, sequence data of L cycles are read as an initial local sequence;

[0024] According to the initial processing sequence and the initial local sequence, performing correlation transformation calculation by using the correlation transformation formula, to obtain an initial correlation transformation sequence;

[0025] Performing upper peak position detection on the initial correlation transformation sequence to obtain N period division points in the initial correlation transformation sequence;

[0026] The number of sampling points in N periods of the initial correlation transformation sequence is averaged to obtain the number of sampling points in the initial single period.

[0027] In combination with the first aspect, in some embodiments, the method further includes:

[0028] Acquire motor parameters, wherein the motor parameters include motor current, motor rotation direction, ambient temperature, motor voltage, and ambient temperature;

[0029] According to the motor parameter information, the predicted value of the number of sampling points in a single cycle is obtained by a table lookup method.

[0030] In combination with the first aspect, in some embodiments, the method further includes:

[0031] Real-time sampling of motor current signal;

[0032] The motor current signal is pre-processed by removing direct current and performing pulse width modulation (PWM) filtering to obtain the motor ripple sampling sequence.

[0033] In combination with the first aspect, in some embodiments, the step of performing period segmentation on the motor ripple sampling sequence through all period segmentation points includes:

[0034] The motor ripple sampling sequence is periodically divided through all period division points to obtain a period division point sequence;

[0035] Accordingly, the method further includes:

[0036] According to the period division point sequence, the ripples of the motor ripple sampling sequence are counted.

[0037] In a second aspect, the present application provides a motor ripple processing device, comprising:

[0038] A first reading module is used to read M cycles of sequence data starting from the starting point of the pre-acquired motor ripple sampling sequence according to the pre-acquired initial single-cycle sampling point number as a processing sequence, wherein M is a preset integer;

[0039] A transformation detection module, used for performing transformation detection processing on the processing sequence to obtain N period segmentation points in the relevant transformation sequence, wherein the relevant transformation sequence and the processing sequence have the same ripple period, wherein N is a preset number of ripple periods for this segmentation processing;

[0040] An updating module, used for updating the initial single-cycle sampling point number to obtain a new initial single-cycle sampling point number;

[0041] A loop module, used to read M cycles of sequence data in the motor ripple sampling sequence from a new starting point according to the new initial single-cycle sampling point number in chronological order as a new processing sequence, and perform the above operation until the motor ripple sampling sequence is processed to obtain N cycle segmentation points in the related transformation sequence corresponding to each processing sequence, wherein the new starting point is determined based on the end point of the last ripple cycle data of the processing sequence;

[0042] The segmentation module is used to perform period segmentation on the motor ripple sampling sequence through all period segmentation points.

[0043] In conjunction with the second aspect, in some embodiments, the transformation detection module includes:

[0044] A correlation transformation unit, in which a user performs correlation transformation calculation on the processing sequence to obtain the correlation transformation sequence;

[0045] The detection unit is used to detect the upper peak position of the correlation transformation sequence to obtain N period division points in the correlation transformation sequence.

[0046] In conjunction with the second aspect, in some embodiments, the apparatus further includes:

[0047] A second reading module is used to read L cycles of sequence data starting from the starting point of the processing sequence according to the initial single-cycle sampling point number as the local sequence;

[0048] Accordingly, the related transformation unit is used for:

[0049] According to the processing sequence and the local sequence, a correlation transformation calculation is performed using a preset correlation transformation formula to obtain the correlation transformation sequence.

[0050] In conjunction with the second aspect, in some embodiments, the update module includes:

[0051] The determination unit is used to determine the number of sampling points of the Nth ripple cycle in the correlation transformation sequence obtained in the last processing as the new initial single-cycle sampling point number.

[0052] In conjunction with the second aspect, in some embodiments, the device further includes:

[0053] A third reading module, based on the single-cycle sampling point number prediction value obtained in advance, reads M cycles of sequence data starting from the starting point of the motor ripple sampling sequence as an initial processing sequence;

[0054] A fourth reading module, configured to read L cycles of sequence data starting from the starting point of the initial processing sequence according to the single-cycle sampling point number prediction value as an initial local sequence;

[0055] A first calculation module, configured to perform a correlation transformation calculation according to the initial processing sequence and the initial local sequence by using the correlation transformation formula to obtain an initial correlation transformation sequence;

[0056] A detection module, used for detecting the upper peak position of the initial correlation transformation sequence to obtain N period segmentation points in the initial correlation transformation sequence;

[0057] The second calculation module is used to average the number of sampling points in N periods of the initial correlation transformation sequence to obtain the initial single-period sampling point number.

[0058] In conjunction with the second aspect, in some embodiments, the apparatus further includes:

[0059] An acquisition module is used to acquire motor parameters, wherein the motor parameters include motor current, motor rotation direction, ambient temperature, motor voltage, and ambient temperature;

[0060] The table lookup module is used to obtain the predicted value of the number of sampling points in a single cycle through a table lookup method according to the motor parameter information.

[0061] In conjunction with the second aspect, in some embodiments, the apparatus further includes:

[0062] Sampling module, used for real-time sampling of motor current signals;

[0063] The preprocessing module is used to perform DC removal and PWM filtering preprocessing on the motor current signal to obtain the motor ripple sampling sequence.

[0064] In conjunction with the second aspect, in some embodiments, the segmentation module is used to:

[0065] The motor ripple sampling sequence is periodically divided through all period division points to obtain a period division point sequence;

[0066] Accordingly, the device further comprises:

[0067] The counting module is used to count the ripples of the motor ripple sampling sequence according to the period segmentation point sequence.

[0068] In a third aspect, the present application provides a motor controller, comprising: a processor, and a memory communicatively connected to the processor;

[0069] The memory stores computer-executable instructions;

[0070] The processor executes the computer-executable instructions stored in the memory to implement the motor ripple processing method described in any one of the first aspects.

[0071] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the motor ripple processing method described in any one of the first aspects.

[0072] In a fifth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the motor ripple processing method described in any one of the first aspects.

[0073] The motor ripple processing method, device, equipment and storage medium provided by the present application, according to the pre-acquired initial single-cycle sampling point number, reads the sequence data of M cycles from the starting point of the pre-acquired motor ripple sampling sequence as the processing sequence, and performs transformation detection processing on the processing sequence to obtain N cycle segmentation points in the relevant transformation sequence, and then updates the initial single-cycle sampling point number to obtain a new initial single-cycle sampling point number, and in chronological order, according to the new initial single-cycle sampling point number, starts from the new starting point, reads the sequence data of M cycles in the motor ripple sampling sequence as a new processing sequence, repeats the above operation until the motor ripple sampling sequence is processed, obtains N cycle segmentation points in the relevant transformation sequence corresponding to each processing sequence, and finally performs cycle segmentation on the motor ripple sampling sequence through all cycle segmentation points. The above method can achieve accurate estimation of the motor ripple cycle, thereby ensuring the normal operation of the vehicle anti-pinch function, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0075] Figure 1An application scenario diagram of the motor ripple processing method provided in an embodiment of the present application;

[0076] Figure 2 is an exemplary actual ripple waveform diagram of a motor;

[0077] Figure 3 A schematic diagram of a flow chart of a first embodiment of a method for processing motor ripple provided in an embodiment of the present application;

[0078] Figure 4 This is a schematic diagram of the motor ripple-related transformation principle;

[0079] Figure 5 It is a schematic diagram of the combination of the local sequence waveform of the actual motor ripple starting section and the waveform after the relevant transformation;

[0080] Figure 6 This is a schematic diagram of the actual ripple starting section transformation sequence and upper peak point of the motor;

[0081] Figure 7 This is a schematic diagram of the actual ripple cycle division of the motor;

[0082] Figure 8 A schematic diagram of a flow chart of a second embodiment of a method for processing motor ripple provided in an embodiment of the present application;

[0083] Fig. 9 is an exemplary diagram of an exemplary initial single-cycle sampling point number calculation process;

[0084] Fig.10 A schematic diagram of a flow chart of a third embodiment of a method for processing motor ripple provided in an embodiment of the present application;

[0085] Fig.11 A schematic flow chart of a fourth embodiment of a method for processing motor ripple provided in an embodiment of the present application;

[0086] Fig.12 A flowchart of a specific example of a motor ripple processing method provided in an embodiment of the present application;

[0087] FIG13( a ) is a schematic diagram of the correlation transformation when the local sequence is the fundamental wave and the input signal sequence is the fundamental wave and the second harmonic;

[0088] FIG13( b ) is a schematic diagram of the correlation transformation when the local sequence is the fundamental wave and the input signal sequence is the fundamental wave and the third harmonic;

[0089] FIG13( c ) is a schematic diagram of the correlation transformation when the local sequence is the fundamental wave and the input signal sequence is the second harmonic and the third harmonic;

[0090] FIG14( a ) is a schematic diagram of the correlation transformation when the local sequence is the second harmonic and the input signal sequence is the fundamental wave and the second harmonic;

[0091] FIG14( b ) is a schematic diagram of the correlation transformation when the local sequence is the second harmonic and the input signal sequence is the fundamental wave and the third harmonic;

[0092] FIG14( c ) is a schematic diagram of the correlation transformation when the local sequence is the second harmonic and the input signal sequence is the second harmonic and the third harmonic;

[0093] FIG15( a ) is a schematic diagram of the correlation transformation of a local sequence being a third harmonic and an input signal sequence being a fundamental wave and a second harmonic;

[0094] FIG15( b ) is a schematic diagram of the correlation transformation when the local sequence is the third harmonic and the input signal sequence is the fundamental wave and the third harmonic;

[0095] FIG15( c ) is a schematic diagram of the correlation transformation when the local sequence is the third harmonic and the input signal sequence is the second harmonic and the third harmonic;

[0096] Fig.16 Schematic diagram of the correlation transformation of the local sequence being the sum of the fundamental wave, the second harmonic and the third harmonic;

[0097] Fig.17 It is a schematic diagram of the mutual orthogonality characteristics of the fundamental wave of the correlation transformation and the correlation transformation of each harmonic;

[0098] Fig.18 A schematic diagram of the structure of a first embodiment of a motor ripple processing device provided in an embodiment of the present application;

[0099] Fig.19 A schematic diagram of the structure of a second embodiment of a motor ripple processing device provided in an embodiment of the present application;

[0100] Fig. 20 A schematic diagram of the structure of a third embodiment of a motor ripple processing device provided in an embodiment of the present application;

[0101] Fig.21 A schematic diagram of the structure of a motor controller provided in an embodiment of the present application.

[0102] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0103] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0104] With the continuous advancement of science and technology, electric windows are becoming more and more popular. For the sake of passenger safety protection, electric windows must have an anti-pinch function to prevent fingers, arms, children's heads and other body parts from being pinched during the window closing process. Early window drive motors mostly used DC brushed motors with Hall sensors. In recent years, in order to reduce costs, more and more vehicles directly use the ripple signal of the DC motor current to count the cumulative number of motor rotations, replacing the function of the Hall sensor. The waveform quality of the DC motor ripple is not only related to the state of the motor when it is working, but also related to the factors of the motor commutator. The tolerance of the window controller to the ripple waveform deformation when estimating the ripple cycle. Ripple cycle estimation is one of the key performance indicators to measure the performance of the ripple anti-pinch algorithm of the window motor controller. For ripple cycle estimation, it is usually zero crossing / mean line detection, and an improved algorithm based on this method. The basic principle is to obtain the average of all sampling points within the current ripple and the previous and next ripple cycles as the current current average. If the waveform crosses this mean line with a positive slope (or negative slope), it is used as the starting point / end point of the ripple cycle. However, if the ripple waveform input into the above algorithm is a severely distorted waveform, the zero-crossing / mean-line-crossing detection algorithm will produce false operation, causing large jitter in the reading of the period value of each ripple, resulting in inaccurate ripple period, and further leading to various false anti-pinch faults.

[0105] In response to the above problems, the present application provides a motor ripple processing method, device, equipment and storage medium. Specifically, zero-crossing / mean line detection and an improved algorithm based on this method are usually used to estimate the ripple period. However, if the ripple waveform input to the algorithm is a distorted waveform, for example, the motor ripple has a large concave deformation in part of the cycle, close to splitting into two waveforms, or the waveform amplitude of part of the ripple cycle is significantly smaller and offset from the amplitude of the adjacent cycle, the "zero-crossing / mean line detection" algorithm may cause malfunction, resulting in large jitter in the identified ripple period value, resulting in inaccurate period estimation. Taking these problems into consideration, the inventor studied whether it is possible to suppress the distortion and noise of the motor ripple by performing relevant transformations on the motor ripple, and the influence of the transformed period, and then perform period estimation on the transformed waveform, thereby achieving accurate period estimation, saving manufacturing costs, and improving user experience.

[0106] Figure 1 The diagram is an application scenario of the motor ripple processing method provided in the embodiment of the present application. The method can be applied to the window motor ripple processing scenario, which includes at least one electric window 100, and the electric window 100 is composed of a glass guide groove 101, a ripple motor 102, a lifting and adjusting frame 103 and a glass 104. Among them, the ripple motor 102 is configured with a motor controller, and the ripple motor can lift and lower the window glass 104 through a driving mechanism composed of a steel wire rope, a rope loop, and a lifting and adjusting frame 103. The glass 104 moves up and down in the window guide groove 101. During the movement, the electric window 100 has an anti-pinch function, and its anti-pinch detection distance range is 4mm-200mm. In order to ensure the normal operation of the anti-pinch function, the position of the glass 104 is crucial, and the position of the glass 104 can be determined by counting the ripples generated by the ripple motor 102. Counting the ripples requires an accurate ripple period. The motor controller collects the ripple signal of the ripple motor 102 in real time, Figure 2 is an exemplary actual motor ripple waveform diagram, such as Figure 2 As shown, since the original ripple signal is interfered by various factors and has distortion and noise, the motor controller can suppress the distortion and noise by performing correlation transformation processing on the ripple signal. The ripple signal after the correlation transformation processing has the same period division point as the original ripple signal. Then, the motor controller performs period division on the original ripple signal according to the period division point of the ripple signal after the correlation transformation processing to obtain the accurate period of the original ripple signal, thereby ensuring the normal operation of the anti-pinch function and avoiding the occurrence of false anti-pinch failures.

[0107] It should be noted that the above-mentioned vehicle motor controller can be configured in the ripple motor 102, or can be an independent device, or can be a domain controller or a body controller of the vehicle to which the window belongs.

[0108] This application does not specifically limit the form and type of the physical devices mentioned above.

[0109] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0110] Figure 3 The flowchart of the motor ripple processing method according to the present application is shown in FIG. Figure 3 As shown, the execution subject of the method is a motor controller, and the method specifically includes:

[0111] Step a: According to the pre-acquired initial single-cycle sampling point number, read M cycles of sequence data starting from the starting point of the pre-acquired motor ripple sampling sequence as a processing sequence.

[0112] In this step, in order to accurately determine the ripple period of the motor ripple sampling sequence, it can be known from the characteristics of the motor ripple sampling sequence that the ripple period of the motor ripple sampling sequence is variable, then starting from the starting point of the motor ripple sampling sequence, M cycles of sequence data can be read in chronological order and processed as a processing sequence, wherein M is the sum of N, L and R, N is the preset number of ripple periods of this segmentation processing, L is the number of ripple periods of the local sequence, and R is a preset integer used to ensure that the relevant transformation data is sufficient, and the local sequence is a sequence obtained from the processing sequence for relevant transformation.

[0113] Specifically, the sequence data of M cycles are read according to the pre-acquired initial single-cycle sampling point number, so as to obtain the processing sequence.

[0114] Exemplarily, taking the initial single-cycle sampling point number as K′ as an example, starting from the starting point of the motor ripple sampling sequence, M cycles of sequence data are read as a processing sequence, and the processing sequence includes M×K′ sampling points.

[0115] Taking K′=4 and M=8 as an example, starting from the starting point of the motor ripple sampling sequence, 32 points of data are read as a processing sequence.

[0116] Step b: Perform transformation detection processing on the processing sequence to obtain N period division points in the relevant transformation sequence.

[0117] In this step, after the vehicle has been used for a long time and under harsh working conditions (such as low temperature, low voltage and heavy load), the ripple waveform of the window motor will be seriously distorted and the noise will increase. In order to be able to accurately estimate the motor ripple period when the motor ripple is distorted and noisy, after reading the processing sequence, the read processing sequence can be subjected to relevant transformation processing to obtain a relevant transformation sequence corresponding to the processing sequence, wherein the relevant transformation sequence has the same ripple period as the processing sequence, and then by detecting the upper peak position of the relevant transformation sequence, N period division points in the relevant transformation sequence are obtained.

[0118] Specifically, after reading L cycles of sequence data from the starting point of the processing sequence according to the initial single-cycle sampling point number as the local sequence, the processing sequence and the local sequence are input into the correlation transformation formula for correlation transformation calculation, thereby obtaining the correlation transformation sequence corresponding to the processing sequence. After obtaining the correlation transformation sequence corresponding to the processing sequence, in order to accurately determine the N cycle segmentation points in the processing sequence. From the above correlation transformation processing, it can be seen that the ripple period of the processing sequence and the correlation transformation sequence is the same, the upper peak position detection is performed on the correlation transformation sequence, and then the N cycle segmentation points in the correlation transformation sequence are determined according to the detected upper peak position.

[0119] For example, Figure 4 The schematic diagram of the motor ripple correlation transformation principle is as follows: at the starting point of the processing sequence, a sequence of L cycles in length is intercepted as the local sequence, and then the processing sequence and the local sequence are calculated by the preset correlation transformation formula to obtain the correlation transformation sequence corresponding to the processing sequence. Figure 4 As shown in the figure, A is the processing sequence, B is the local sequence, and C is the related transformation sequence. Figure 4 According to the principle in , each output value in the C sequence can be expressed as:

[0120] C 00 =A 00 ·B 00 +A 01 ·B 01 +A 02 ·B 02 +A 03 ·B 03 +A 04 ·B 04

[0121] C 01 =A 01 ·B 00 +A 02 ·B 01 +A 03 ·B 02 +A 04 ·B 03 +A 05 ·B 04

[0122] C 02 =A 02 ·B 00 +A 03 ·B 01 +A 04 ·B 02 +A 05 ·B 03 +A 06 ·B 04

[0123] …

[0124] C 15 =A 15 ·B 00 +A 16 ·B 01 +A 17 ·B 02 +A 18 ·B 03 +A 19 ·B 04

[0125] Thus, the relevant transformation sequence C can be expressed as:

[0126] C k =A k+0 ·B 00 +A k+1 ·B 01 +A k+2 ·B 02 +A k+3 ·B 03 +A k+4 ·B 04

[0127] Then the relevant transformation formula can be obtained as:

[0128]

[0129] Among them, A k To process the sequence, B j is the local sequence, j = 0, 1, 2, 3....(L-1), L is the length of the local sequence, C k is a related transformation sequence.

[0130] It should be noted that the local sequence can be adaptively adjusted, and the corresponding local sequence will be different depending on the number of sampling points of the processing sequence.

[0131] The selection of the local sequence is related to the period of the processing sequence, that is, the local sequence is the sequence of the starting segment of the processing sequence, and its length is an integer multiple of the period of the processing sequence.

[0132] For example, Figure 5 This is a schematic diagram of the local sequence waveform of the actual motor ripple starting section and the waveform combination after relevant transformation, such as Figure 5 As shown, by reading the actual ripple of the motor, we can get Figure 5 The processing sequence in , and the starting segment is selected as the local sequence, and the related transformation sequence corresponding to the processing sequence is obtained through the above-mentioned related transformation processing. Figure 5It can be seen that the correlation transformation sequence is similar to a cosine sequence with a phase of 0. It can be clearly found that the ripple period of the correlation transformation sequence is the same as that of the processing sequence.

[0133] The correlation transformation processing of this embodiment can suppress the distortion and noise in the motor ripple sampling sequence, so that the cycle prediction of the seriously damaged motor ripple is still accurate. The principle of the correlation transformation processing to suppress the distortion and noise in the motor ripple sequence is deduced and described below.

[0134] Principle (1): Integral characteristics.

[0135] The formula for converting trigonometric functions from products to differences is as follows:

[0136]

[0137] Suppose x=ω1t+θ1, y=ω2t+θ2, s(t) is x The product of and y, that is:

[0138]

[0139] If ω2=n·ω1, n is a positive integer, x is the fundamental wave, y is the nth harmonic of x, that is, f1 and f2 are the frequencies of x and y respectively, T1 is the period of the fundamental wave; c(t) is used to represent the definite integral of s(t) on the fundamental wave period [0, T1], and c1(t) and c2(t) are used to represent the frequency term and difference frequency term after the integration of s(t), that is, but:

[0140]

[0141] Right now,

[0142]

[0143] Integral property of the product of two cosine functions (1): When n≠1, ω2≠ω1:

[0144]

[0145] Similarly, c2(t) = 0. And it has nothing to do with the values ​​of θ1 and θ2

[0146] Integral property of the product of two cosine functions (2): When n = 1, ω2 = ω1. At this time: c1(t) = 0, c2(t) ≠ 0,

[0147]

[0148] In particular, if ω2=ω1 and θ1=θ2, then

[0149] ω2=ω1 and let θ2 increase uniformly from θ1 to (2π+θ1). At this time, the process experienced by c(t) is the full-cycle autocorrelation of the cosine function. The output of the full-cycle autocorrelation of the cosine function always has c1(t)=0 in this process, so It is a cosine curve with θ = (θ1-θ2) as parameter, c2(t) = T1·cosθ undergoes a complete θ = [0,2π] cosine process; it is worth noting that the complete θ = [0,2π] cosine process experienced by c2(t) is independent of the starting phase θ1, and this characteristic is an important characteristic of ripple-related transformation.

[0150] Therefore, through the above derivation process, we can know that the product of two continuous functions and then integration within a certain time range is the related transformation process performed in the discrete time case.

[0151] From the integral characteristic (1) of the product of the two cosine functions, it can be seen that when a correlation transformation is performed on a time domain waveform, if the input signal sequence is a harmonic of a cosine signal, the local sequence is the cosine signal, and the length of the local signal corresponds to the number of sampling points of one cycle or an integer multiple of the cycle of the cosine signal, then the output of the correlation transformation of the time domain waveform is always zero. This conclusion is independent of the starting phase of the cosine signal and the starting phase of the harmonics of the cosine signal.

[0152] From the integral characteristic (2) of the product of the two cosine functions mentioned above, it can be seen that when a correlation transform is performed on a time domain waveform, if the input signal sequence is a cosine signal, the local sequence is also the cosine signal, and the starting phases of the two are the same, and the length of the local signal corresponds to the number of sampling points of one cycle of the cosine signal, then the output sequence of the correlation transform of the time domain waveform is a complete θ∈[0,2π] cosine waveform. This conclusion is independent of the starting phase of the cosine signal.

[0153] Optionally, in the process of selecting the local sequence of the processing sequence, it is possible that the length L of the local sequence is not an integer multiple of the initial period, then the relevant transformation has piecewise additivity, and the sampling rate of the analog converter of the motor is set to S sampling points / second, then L can be decomposed, L=M+m, where M is an integer multiple of S, and m is the remainder of L divided by S, then the relevant transformation formula can be adjusted to:

[0154]

[0155] It should be noted that the harmonic characteristics of motor ripple are different from the ripples generated by the nonlinearity of semiconductor devices. They are mainly caused by the imperfect contact between the commutator segments and the carbon brushes when the motor rotates, such as the radial ups and downs caused by the inconsistent wear of the fillers between the commutator segments and the segments, the radial runout of the carbon brushes caused by the warping and concave deformation of the edges of the commutator segments and the burrs during forward and reverse commutation, the uneven contact caused by the wear and tear of the carbon brushes and the commutator segments, the contact gap caused by carbon powder and metal particles on the contact surface between the carbon brushes and the commutator segments, the poor concentricity of the armature or the eccentricity of the bearing, the electric sparks between the carbon brushes and the commutator segments, etc. These defects will cause microscopic gaps or insufficient pressure on part of the contact surface between the carbon brushes and the commutator segments when the motor rotates, which is reflected in the ripple waveform as various waveform distortions / defects / M waves, etc. The ripples generated by each commutator segment have different distortion and harmonic components, and the ripple characteristics between different motors are also different, and change with the motor current (load) and the speed. Therefore, there is basically no dependence between the initial phases of the ripple harmonics and the fundamental wave.

[0156] From the above statement, we can see that A k and B j When is a sequence of fundamental waves or harmonics, if the frequencies of the two sequences are different, then At this time

[0157] Therefore, only if the length of the local sequence is longer (usually greater than 4 ripple cycles at the lowest speed of the motor), the cross-correlation energies within each integer cycle cancel each other out, and the remaining non-integer cycle cross-correlation energies of less than 1 cycle are averaged; the characteristic of the in-phase superposition of the energy of the fundamental wave and each harmonic at the upper peak point after the autocorrelation transformation still holds; in general, the upper peak after the correlation transformation still has a high signal-to-noise ratio, and the ripple period can still be correctly estimated.

[0158] It should be noted that, combined with Figure 3 and Figure 5 It can be seen that the quality of the actual input ripple sequence is not good, the depth of the M wave exceeds 50%, the waveform has obvious quantization steps due to the limitation of ADC resolution, the upper / lower double peaks of the waveform are unstable, and the DC component of the waveform fluctuates. However, the transformation sequence after the correlation transformation is very stable and reliable in both waveform and period, especially the upper peak waveform and the peak interval are very stable. Therefore, based on the correlation transformation, a very stable and reliable ripple period can be obtained.

[0159] It should be noted that the specific implementation method for detecting the peak position on the correlation transformation sequence can be any achievable method in the prior art, such as peak detection algorithm, wavelet transform, Hilbert transform, adaptive threshold method, or construction of a detection model based on a machine learning model. This embodiment will not be described in detail here.

[0160] For example, Figure 6 This is a schematic diagram of the actual motor ripple starting section transformation sequence and upper peak point position, such as Figure 6 As shown, through Figure 6 The upper peak position is detected by the related transformation sequence in the sequence, thereby obtaining the upper peak point position of the sequence.

[0161] Step c: Update the initial single-cycle sampling point number to obtain a new initial single-cycle sampling point number.

[0162] In this step, after obtaining N period division points in the relevant transformation sequence, since the periods of the motor ripple sampling sequences are different, in order to accurately determine the period of the subsequent unprocessed motor ripple sampling sequences, it is necessary to update the initial single-cycle sampling points to obtain a new initial single-cycle sampling points, and then perform subsequent processing based on the new initial single-cycle sampling points.

[0163] Specifically, the number of sampling points of the Nth ripple cycle in the correlation transformation sequence obtained in the last processing is determined as the new initial single-cycle sampling point number.

[0164] Exemplarily, if the sampling point of the Nth ripple cycle in the correlation transformation sequence obtained in the previous processing is 5, then the new initial single-cycle sampling point number in the next processing is determined to be 5.

[0165] Step d: In chronological order, starting from the new starting point according to the new initial single-cycle sampling points, read the sequence data of M cycles in the motor ripple sampling sequence as a new processing sequence, repeat steps b to d until the motor ripple sampling sequence is processed, and obtain N cycle segmentation points in the related transformation sequence corresponding to each processing sequence.

[0166] In this step, after completing the ripple cycle segmentation processing of the processing sequence in the previous step, in order to complete the cycle segmentation of the motor ripple sampling sequence, in chronological order, starting from the new starting point according to the new initial single-cycle sampling point number in the previous step, read the sequence data of M cycles in the motor ripple sampling sequence as a new processing sequence, and repeat the specific operations of the previous steps b to e, and then obtain the N cycle segmentation points in the relevant transformation sequence corresponding to the new processing sequence, until the motor ripple sampling sequence is processed, and then obtain the N cycle segmentation points in the relevant transformation sequence corresponding to each processing sequence. Among them, the new starting point of each processing is determined based on the end point of the last ripple cycle data of the processing sequence processed last time.

[0167] Specifically, it can be seen from the above steps that in each processing, the sequence data of M cycles are read from the motor ripple sampling sequence, M=N+L+R, where R is a preset integer, in order to ensure that the relevant transformation data is sufficient in this processing, so only N cycle segmentation points are determined in the processing sequence, and the sequence data of almost (L+R) cycles in the processing sequence are not segmented into cycles, then in the subsequent processing, it is necessary to return the extra read almost (L+R) data to the unprocessed motor ripple sampling sequence, and continue the subsequent processing. It can be seen that the new starting point for reading the sequence data of M cycles in the next processing is the next point of the sequence segmented with N cycle segmentation points, and Ntotal is the total number of sampling points of the sequence that has determined N cycle segmentation points, then the new starting point is Ntotal+1.

[0168] It should be noted that because the ripple period is changing, the specific value of Ntotal after each processing is changing as the processing proceeds.

[0169] Step e: Perform period division on the motor ripple sampling sequence through all period division points.

[0170] In this step, after completing the processing of the entire motor ripple sampling sequence, N period division points in multiple related transformation sequences are obtained. From the previous steps, it can be seen that the period of the related transformation sequence is the same as the period of the processing sequence. Then, the motor ripple sampling sequence is periodically divided through all the period division points, thereby realizing the period estimation of the motor ripple sampling sequence.

[0171] Optionally, after the motor ripple sampling sequence is periodically divided through all period division points, a period division point sequence can be obtained. Then, according to the obtained period division point sequence, accurate counting of the ripples in the motor ripple sampling sequence can be achieved.

[0172] In a possible implementation, after the target motor ripple sequence is obtained, the number of ripple cycles of the motor ripple sequence to be processed can be obtained according to the target motor ripple sequence.

[0173] After obtaining the target motor ripple sequence of the motor ripple sequence to be processed, ripple counting may be performed according to the motor ripple sequence to be processed that completes cycle estimation, thereby obtaining the number of ripples of the motor ripple sequence to be processed.

[0174] Optionally, after obtaining the number of ripples in the motor ripple sampling sequence, the position of the window glass can be accurately determined based on the number of ripples, thereby ensuring the normal operation of the window anti-pinch function and avoiding misjudgment, thereby improving the user experience.

[0175] For example, Figure 7This is a schematic diagram of the actual motor ripple cycle division, such as Figure 7 As shown, the processing sequence is periodically divided according to the period division points of the relevant transformation sequence, thereby obtaining a period division point sequence.

[0176] Please note that for ease of viewing, Figure 7 As an example, only the cycle division schematic diagram of the starting segment of the actual motor ripple is shown, not the cycle division schematic diagram of the entire actual motor ripple.

[0177] The motor ripple processing method provided in this embodiment reads M cycles of sequence data from the starting point of the motor ripple sampling sequence obtained in advance according to the initial single-cycle sampling points obtained in advance as the processing sequence, and performs relevant transformation calculations on the processing sequence to obtain the relevant transformation sequence corresponding to the processing sequence, and then performs upper peak position detection on the relevant transformation sequence to obtain N cycle segmentation points in the relevant transformation sequence, and then updates the initial single-cycle sampling points to obtain a new initial single-cycle sampling points, and reads M cycles of sequence data in the motor ripple sampling sequence from the new starting point according to the new initial single-cycle sampling points in chronological order as a new processing sequence, repeats the above operations until the motor ripple sampling sequence is processed, and obtains N cycle segmentation points in the relevant transformation sequence corresponding to each processing sequence, and finally performs cycle segmentation on the motor ripple sampling sequence through all cycle segmentation points. The above method can achieve accurate estimation of the motor ripple cycle, thereby ensuring the normal operation of the vehicle anti-pinch function, thereby improving user experience.

[0178] Figure 8 The flowchart of the motor ripple processing method according to the present invention is shown in FIG. Figure 8 As shown, based on the above embodiment, the method further includes:

[0179] S801: According to the previously acquired predicted value of the number of sampling points in a single cycle, sequence data of M cycles is read starting from the starting point of the motor ripple sampling sequence as an initial processing sequence.

[0180] S802: According to the predicted value of the number of sampling points in a single cycle, sequence data of L cycles are read from the starting point of the initial processing sequence as an initial local sequence.

[0181] S803: performing correlation transformation calculation according to the initial processing sequence and the initial local sequence by using a correlation transformation formula to obtain an initial correlation transformation sequence.

[0182] S804: Detect the upper peak position of the initial correlation transformation sequence to obtain N period division points in the initial correlation transformation sequence.

[0183] In order to obtain an accurate initial single-cycle sampling point number, the initial single-cycle sampling point number may be calculated based on the single-cycle sampling point number prediction value obtained by querying the motor parameters.

[0184] Specifically, the calculation of the initial single-cycle sampling point number is based on the predicted value of the single-cycle sampling point number as a parameter, and M cycles of sequence data are read from the starting point of the motor ripple sampling sequence as the initial processing sequence, and L cycles of sequence data are read from the starting point of the initial processing sequence as the initial local sequence, and then the initial processing sequence is subjected to correlation transformation calculation to obtain the initial correlation transformation sequence, and the N cycle segmentation points in the initial correlation transformation sequence are obtained.

[0185] The specific implementation process is the same as the specific implementation of steps a to c in the above embodiment, and will not be repeated here.

[0186] S805: averaging the number of sampling points in N periods of the initial correlation transformation sequence to obtain the number of initial single-period sampling points.

[0187] After obtaining the N period segmentation points in the initial correlation transformation sequence, the number of sampling points in the N periods in the initial correlation transformation sequence is averaged, so that the average number of sampling points per period in the initial correlation transformation sequence is determined as the initial single-period sampling point number, thereby improving accuracy.

[0188] For example, Fig. 9 This is an example diagram of an initial single-cycle sampling point calculation process. Figure 8 and Fig. 9 As shown, Fig. 9 The middle ripple sampling sequence is the motor ripple sampling sequence mentioned above. The starting point of the sequence is P. According to parameters such as motor current, direction, voltage and ambient temperature, an estimate K of the number of sampling points in a single cycle is obtained, that is, a predicted value of the number of sampling points in a single cycle. Based on this value, M×K sampling points are read from point P of the ripple sampling sequence as an initial processing sequence. In the initial processing sequence, L×K sampling points are read from point P as an initial local sequence. Then, by performing correlation transformation calculation and upper peak detection on the initial processing sequence, the number of sampling points in N cycles in the initial correlation transformation sequence is obtained, and then the initial single-cycle sampling points are obtained by averaging.

[0189] The motor ripple processing method provided in this embodiment reads L cycles of sequence data at the starting point of the processing sequence as the initial local sequence according to the pre-acquired single-cycle sampling point number prediction value, and performs correlation transformation calculation according to the processing sequence and the initial local sequence through the correlation transformation formula to obtain the initial correlation transformation sequence. The upper peak position of the initial correlation transformation sequence is detected to obtain the N cycle segmentation points in the initial correlation transformation sequence. The sampling points of the N cycles of the initial correlation transformation sequence are averaged to obtain the initial single-cycle sampling points. The initial single-cycle sampling points are calculated by the above method, thereby ensuring the accuracy of the subsequent estimation of the motor ripple sampling sequence period.

[0190] Fig.10 The flowchart of the third embodiment of the motor ripple processing method provided in the embodiment of the present application is as follows: Fig.10 As shown, based on the above embodiments, the method further includes:

[0191] S1001: Obtain motor parameters.

[0192] S1002: According to the motor parameters, a predicted value of the number of sampling points in a single cycle is obtained by a table lookup method.

[0193] In order to accurately estimate the period of the motor ripple sampling sequence, it is necessary to determine the initial single-cycle sampling points before the motor ripple sampling sequence is initially processed to ensure the accuracy of the relevant transformations. In order to obtain the accurate initial single-cycle sampling points, it is necessary to determine them based on the performance of the motor.

[0194] Specifically, the motor parameters are obtained, wherein the motor parameters include motor current, motor rotation direction, ambient temperature, motor voltage, and ambient temperature. According to the motor parameters obtained above, the corresponding single-cycle sampling point number prediction value is queried in a pre-calibrated mapping table, and then the initial single-cycle sampling point number is calculated according to the single-cycle sampling point number prediction value.

[0195] It should be noted that the rate of change of the ripple period is different for different motor performances, so the mapping table can be calibrated in advance based on the acquired performance parameters of different motors, and then the predicted value of the number of sampling points in a single cycle can be obtained by table lookup based on the motor parameters during operation.

[0196] The motor ripple processing method provided in this embodiment obtains motor parameters and obtains the predicted value of the single-cycle sampling points through a table lookup method based on the motor parameter information. The predicted value of the single-cycle sampling points is obtained through this method, thereby realizing the calculation of the initial single-cycle sampling points.

[0197] Fig.11The flowchart of the fourth embodiment of the motor ripple processing method provided in the embodiment of the present application is as follows: Fig.11 As shown, based on the above embodiments, the method further includes:

[0198] S1101: real-time sampling of motor current signal.

[0199] S1102: Perform DC removal and PWM filtering preprocessing on the motor current signal to obtain a motor ripple sampling sequence.

[0200] In this step, the movement of the electric window glass is driven by the rotational force generated by the window motor starting input current, and the window motor generates ripples during operation, so the specific position of the window glass can be determined by analyzing the ripples. The motor ripple sampling sequence is obtained by sampling the motor current signal.

[0201] It should be noted that the motor speed is slow and unstable when it is just started. In order to accurately estimate the ripple period, it is necessary to sample the ripple sequence generated by the stable operation of the motor as the initial motor ripple sampling sequence.

[0202] Specifically, the preprocessing performed after sampling the motor current signal may include DC removal and PWM filtering preprocessing. The motor current signal usually contains a DC component and an AC component. The purpose of the DC removal operation is to eliminate the DC component and retain the AC component. A common method is to use a high-pass filter (such as a Butterworth filter) to filter out the DC signal. The motor current signal can also be filtered by the mean removal method to eliminate the ripple caused by the PWM frequency. This can be achieved by a low-pass filter, and a suitable cut-off frequency is usually selected to filter out the PWM frequency and its higher harmonics. The specific implementation method can be selected according to the performance of the actual motor, and this embodiment is not specifically limited.

[0203] Exemplarily, the current signal after the motor is started can be analyzed and collected, and the stabilized current signal can be pre-processed as a motor ripple sampling sequence.

[0204] The motor ripple processing method provided in this embodiment samples the motor current signal in real time, and performs DC removal and PWM filtering preprocessing on the motor current signal to obtain a motor ripple sampling sequence. Through the above method, a motor ripple sampling sequence with high accuracy and good stability is obtained, which improves data guarantee for subsequent cycle estimation.

[0205] Fig.12 A flow chart of a specific example of a motor ripple processing method provided in an embodiment of the present application, such as Fig.12 As shown, the method includes:

[0206] S1201: According to the initial single-cycle sampling point number K′, (M×K′) sampling points are read from the starting point P of the ripple sampling sequence as a processing sequence, and (L×K′) sampling points are read from the starting point of the processing sequence as a local sequence.

[0207] S1202: performing correlation transformation and upper peak detection on the processed sequence and the local sequence to obtain N period segmentation points.

[0208] The implementation of step S1201 and step S1202 is the same as the implementation of step a to step c in the above embodiment, and will not be described in detail here.

[0209] S1203: Taking the Nth period sampling point number to update the initial single-period sampling point number K′, to obtain a new initial single-period sampling point number K′.

[0210] The specific implementation method of this step is the same as the implementation method of step d in the above embodiment, and will not be repeated here.

[0211] S1204: Update the starting point according to the sum of the number of sampling points of the N divided ripple periods to obtain a new starting point.

[0212] After completing one processing, continue to read a new processing sequence in the ripple sampling sequence that has not completed the cycle division. It is necessary to read at a new starting point. Since the processing sequence read in the last processing includes (R×K′) sampling points, it is guaranteed that the relevant transformation data is sufficient. However, this part of the data has not determined the cycle. The number of sampling points of N cycles has been determined to be Ntotal. Set the starting point of the ripple sampling sequence to P, and P=1, then the new starting point is P+Ntotal.

[0213] S1205: Based on the new initial single-cycle sampling point number K′, starting from the new starting point, (M×K′) sampling points are read in the ripple sampling sequence as a new processing sequence, and (L×K′) sampling points are read from the starting point of the new processing sequence as a new local sequence, and steps S1202 to S1204 are repeated until the ripple sampling sequence is cycle-divided to obtain a cycle-divided point sequence.

[0214] This step is implemented in the same way as step e in the above embodiment and will not be described in detail here.

[0215] Optionally, for the period segmentation processing of the tail sequence of the ripple sampling sequence, the method further includes:

[0216] S1206: Determine whether the number of sampling points in the tail sequence is greater than ((P+N+L+R)×K′) sampling points according to the new initial single-cycle sampling point number K′.

[0217] S1207: If it is determined that the number of sampling points of the tail sequence is greater than ((P+N+L+R)×K′) sampling points, the tail sequence is periodically segmented according to the above steps to obtain N period segmentation points.

[0218] S1208: If it is determined that the number of sampling points of the tail sequence is less than ((P+N+L+R)×K′) sampling points, N is set to N / 2, and then it is determined whether the number of sampling points of the tail sequence is greater than ((P+N / 2+L+R)×K′) sampling points.

[0219] S1209: If it is determined that the number of sampling points of the tail sequence is greater than ((P+N / 2+L+R)×K′) sampling points, the tail sequence is periodically segmented according to the above steps to obtain N / 2 period segmentation points.

[0220] S1210: If it is determined that the number of sampling points of the tail sequence is less than ((P+N / 2+L+R)×K′) sampling points, the Nth periodic sampling points processed last time are used to perform period segmentation on the tail sequence.

[0221] For the tail sequence of the ripple sampling sequence, that is, the processing sequence of the last processing, in the processing of the tail sequence, it cannot be guaranteed that the number of sampling points of the tail sequence satisfies (M×K′) sampling points, where M=P+N+L+R, P is the starting point of the tail sequence, and K′ is the number of sampling points of the Nth cycle of the last processing. If the number of sampling points of the tail sequence is greater than ((P+N+L+R)×K′) sampling points, the processing is performed in accordance with the processing method of the previous steps to obtain N period segmentation points. If the number of sampling points of the tail sequence is less than ((P+N+L+R)×K′) sampling points, the length of the tail sequence is insufficient, and N can be modified to determine N as N / 2. Similarly, first determine whether the number of sampling points of the tail sequence is greater than ((P+N / 2+L+R)×K′) sampling points. If the number of sampling points of the tail sequence is greater than ((P+N / 2+L+R)×K′) sampling points, the processing is performed in accordance with the processing method of the previous steps to obtain N / 2 period segmentation points. If the number of sampling points of the tail sequence is less than ((P+N / 2+L+R)×K′) sampling points, the length of the tail sequence is insufficient. In order to ensure the efficiency of data processing, the Nth period sampling points processed last time are directly used to perform period segmentation on the tail sequence.

[0222] The motor ripple processing method provided in this embodiment reads the ripple sampling sequence segment by segment, performs correlation transformation and upper peak detection processing, so as to obtain the corresponding period division points. After the processing is completed, the ripple sampling sequence is post-divided according to all the period division points. The above scheme avoids the distortion of the ripple sampling sequence and the influence of noise on the period, and more accurately determines the period of the ripple sampling sequence.

[0223] Based on the two characteristics of the correlation transformation in the aforementioned embodiment, the following is a simulation verification description of the two characteristics. During simulation, the sampling rate is 100ksps, the fundamental signal frequency is a sine wave with an initial phase of π / 4 at 1kHz, the second harmonic is a sine wave with an initial phase of π / 6 at 2kHz, and the third harmonic is a sine wave with an initial phase of π / 3 at 3kHz; the length of the generated fundamental signal is 5 cycles; during simulation, the input signal sequence and the local sequence can be fundamental wave / second harmonic / third harmonic / (fundamental wave+second harmonic+third harmonic), respectively; for convenience of display, the local sequence is offset down by -3.0, and the correlation transformation output is offset down by -6.0; the simulation results of the correlation transformation are observed below.

[0224] FIG13(a) is a schematic diagram of the correlation transformation of the local sequence as the fundamental wave and the input signal sequence as the fundamental wave and the second harmonic. FIG13(b) is a schematic diagram of the correlation transformation of the local sequence as the fundamental wave and the input signal sequence as the fundamental wave and the third harmonic. FIG13(c) is a schematic diagram of the correlation transformation of the local sequence as the fundamental wave and the input signal sequence as the second harmonic and the third harmonic. As shown in FIG13(a), FIG13(b) and FIG13(c), the correlation transformation outputs of the local sequence and the higher harmonics are always zero and have nothing to do with the initial phase, and the correlation transformation with the fundamental wave itself (in phase) is a cosine waveform with an initial phase of 0.

[0225] FIG14(a) is a schematic diagram of the correlation transformation when the local sequence is the second harmonic and the input signal sequence is the fundamental wave and the second harmonic. FIG14(b) is a schematic diagram of the correlation transformation when the local sequence is the second harmonic and the input signal sequence is the fundamental wave and the third harmonic. FIG14(c) is a schematic diagram of the correlation transformation when the local sequence is the second harmonic and the input signal sequence is the second harmonic and the third harmonic. As shown in FIG14(a), FIG14(b) and FIG14(c), the correlation transformation output of the local sequence and the fundamental wave of the input signal sequence is always 0, the output with its own second harmonic is a cosine sequence with an initial phase of 0, and the output with the third harmonic of the input signal sequence is also 0.

[0226] FIG15(a) is a schematic diagram of the correlation transformation when the local sequence is the third harmonic and the input signal sequence is the fundamental wave and the second harmonic. FIG15(b) is a schematic diagram of the correlation transformation when the local sequence is the third harmonic and the input signal sequence is the fundamental wave and the third harmonic. FIG15(c) is a schematic diagram of the correlation transformation when the local sequence is the third harmonic and the input signal sequence is the second harmonic and the third harmonic. As shown in FIG15(a), FIG15(b) and FIG15(c), the correlation transformation output of the local sequence third harmonic and the fundamental wave of the input signal sequence is always 0, and the correlation transformation output with the second harmonic of the input signal sequence is also always 0, and the output with its own third harmonic is a cosine sequence with an initial phase of 0.

[0227] Fig.16 The local sequence is the sum of the fundamental wave, the second harmonic and the third harmonic. Fig.16 As shown, at this time, the local sequence of the correlation transformation is the sum of the fundamental wave, the second harmonic and the third harmonic, and the input signal sequence is the fundamental wave, the second harmonic, the third harmonic, and the sum of the fundamental wave, the second harmonic and the third harmonic. Because at this time, the local sequence includes the fundamental wave, the second harmonic and the third harmonic components, the fundamental wave in the local sequence is correlated with the input fundamental wave signal sequence to generate the fundamental wave output, the second harmonic in the local sequence is correlated with the input second harmonic signal to generate the second harmonic output, and the third harmonic in the local sequence is correlated with the input third harmonic signal to generate the third harmonic output; the local sequence (fundamental wave, second harmonic The sum of the fundamental wave output, the second harmonic output and the third harmonic output is generated by the correlation transformation output of each harmonic in the sum of the fundamental wave, the second harmonic and the third harmonic of the input signal sequence; but it should be noted that the waveform of the sum of the fundamental wave output, the second harmonic output and the third harmonic output of the correlation transformation output is different from the waveform of the input fundamental wave, the sum of the second harmonic and the third harmonic and the sum of the fundamental wave, the second harmonic and the third harmonic of the local sequence, because the fundamental wave output, the second harmonic output and the third harmonic output are all zero-phase cosine sequences, and the upper peak of the waveform after addition is completely superimposed in phase.

[0228] Fig.17 It is a schematic diagram of the mutual orthogonality characteristics of the fundamental wave of the related transformation and the related transformation of each harmonic, such as Fig.17 As shown in the figure, the figure includes the output sequences of the fundamental wave, the second harmonic, and the third harmonic after the autocorrelation transformation, and the waveform diagram of the sum of the three; Fig.16 The output sequence of the sum of the local sequence fundamental wave, second harmonic and third harmonic after autocorrelation transformation is compared, and the comparison result shows that the two are completely overlapped, which is completely consistent with the theoretical analysis results of the two characteristics in the above embodiment.

[0229] In a possible implementation, since sequences of multiple cycle lengths are continuously connected by cycles, the above two related transformation characteristics are valid for sequences of one fundamental wave cycle length as well as for sequences of multiple cycle lengths.

[0230] Optionally, the specific implementation method of each of the above-mentioned embodiments is to give a detailed description of the high sampling rate of the ripple current sampling rate relative to the ripple period (such as the sampling rate is 100ksps and the maximum ripple frequency is 2kHz), but the aforementioned related transformation and other methods are also applicable to the low sampling rate case. At this time, the ripple period is no longer expressed as an integer multiple of the sampling interval, but as a real multiple with a decimal point.

[0231] Fig.18 This is a structural diagram of a first embodiment of a motor ripple processing device provided in an embodiment of the present application, as shown in FIG. Fig.18 As shown, the motor ripple processing device 1800 specifically includes:

[0232] The first reading module 1801 is used to read M cycles of sequence data starting from the starting point of the pre-acquired motor ripple sampling sequence according to the pre-acquired initial single-cycle sampling point number as a processing sequence, wherein M is a preset integer.

[0233] The transformation detection module 1802 is used to perform transformation detection processing on the processing sequence to obtain N period division points in the relevant transformation sequence.

[0234] The updating module 1803 is used to update the initial single-cycle sampling point number to obtain a new initial single-cycle sampling point number.

[0235] The loop module 1804 is used to read the sequence data of M cycles in the motor ripple sampling sequence in chronological order, starting from a new starting point according to the new initial single-cycle sampling point number, as a new processing sequence, and repeat the above operation until the motor ripple sampling sequence is processed, and N cycle segmentation points in the related transformation sequence corresponding to each processing sequence are obtained. The new starting point is determined based on the end point of the last ripple cycle data of the processing sequence.

[0236] The segmentation module 1805 is used to perform period segmentation on the motor ripple sampling sequence through all period segmentation points.

[0237] In a possible implementation, the transformation detection module 1802 includes:

[0238] A correlation transformation unit, in which the user performs correlation transformation calculation on the processing sequence to obtain a correlation transformation sequence;

[0239] The detection unit is used to detect the upper peak position of the correlation transformation sequence to obtain N period division points in the correlation transformation sequence.

[0240] Optionally, the motor ripple processing device 1800 further includes:

[0241] The second reading module 1806 is used to read L cycles of sequence data starting from the starting point of the processing sequence according to the initial single-cycle sampling point number as a local sequence;

[0242] Accordingly, the relevant transformation unit is specifically used for:

[0243] According to the processing sequence and the local sequence, the correlation transformation calculation is performed through a preset correlation transformation formula to obtain a correlation transformation sequence.

[0244] In a possible implementation, the update module 1803 includes:

[0245] The determination unit is used to determine the number of sampling points of the Nth ripple cycle in the correlation transformation sequence obtained in the last processing as the new initial single-cycle sampling point number.

[0246] In another possible implementation, the segmentation module 1805 is specifically configured to:

[0247] The motor ripple sampling sequence is periodically divided through all period division points to obtain a period division point sequence;

[0248] Accordingly, the motor ripple processing device 1800 further includes:

[0249] The counting module 1807 is used to count the ripples of the motor ripple sampling sequence according to the period segmentation point sequence.

[0250] Fig.19 The schematic diagram of the structure of the second embodiment of the motor ripple processing device provided in the embodiment of the present application is as follows: Fig.19 As shown, the motor ripple processing device 1800 further includes:

[0251] The third reading module 1901 reads M cycles of sequence data starting from the starting point of the motor ripple sampling sequence according to the pre-acquired single-cycle sampling point number prediction value as an initial processing sequence.

[0252] The fourth reading module 1902 is used to read L cycles of sequence data starting from the starting point of the initial processing sequence according to the predicted value of the number of sampling points in a single cycle as an initial local sequence.

[0253] The first calculation module 1903 is used to perform correlation transformation calculation according to the initial processing sequence and the initial local sequence through the correlation transformation formula to obtain an initial correlation transformation sequence.

[0254] The detection module 1904 is used to detect the upper peak position of the initial correlation transformation sequence to obtain N period division points in the initial correlation transformation sequence.

[0255] The second calculation module 1905 is used to average the number of sampling points in N periods of the initial correlation transformation sequence to obtain the number of initial single-period sampling points.

[0256] Fig. 20 This is a structural diagram of Embodiment 3 of the motor ripple processing device provided in the embodiment of the present application, as shown in FIG. Fig. 20 As shown, the motor ripple processing device 1800 further includes:

[0257] The acquisition module 2001 is used to acquire motor parameters, which include motor current, motor rotation direction, ambient temperature, motor voltage, and ambient temperature.

[0258] The table lookup module 2002 is used to obtain the predicted value of the number of sampling points in a single cycle through a table lookup method according to the motor parameter information.

[0259] Optionally, the motor ripple processing device 1800 further includes:

[0260] The sampling module 2003 is used to sample the motor current signal in real time.

[0261] The preprocessing module 2004 is used to perform DC removal and PWM filtering preprocessing on the motor current signal to obtain a motor ripple sampling sequence.

[0262] The motor ripple processing device provided in each of the above embodiments is used to execute the motor ripple processing method in any of the above method embodiments. Its implementation principle and technical effect are similar and will not be repeated here.

[0263] Fig.21 A schematic diagram of the structure of the motor controller provided in the embodiment of the present application is shown in FIG. Fig.21 As shown, the motor controller 2100 includes: a processor 2102, and a memory 2101 communicatively connected to the processor;

[0264] Memory 2101 stores computer-executable instructions.

[0265] The processor 2102 executes the computer-executable instructions stored in the memory 2101 to implement the motor ripple processing method in any one of the embodiments.

[0266] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the motor ripple processing method in any one of the embodiments.

[0267] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0268] Optionally, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0269] An embodiment of the present application also provides a computer program product, which includes a computer program. The computer program is stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, it can implement the technical solution provided by any of the above method embodiments.

[0270] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0271] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for processing motor ripple, characterized in that: Applied to a motor controller, the method comprises: Step a: according to the pre-acquired initial single-cycle sampling point number, read M cycles of sequence data starting from the starting point of the pre-acquired motor ripple sampling sequence as a processing sequence, where M is a preset integer; Step b: performing transformation detection processing on the processing sequence to obtain N period segmentation points in the relevant transformation sequence, wherein the relevant transformation sequence and the processing sequence have the same ripple period, wherein N is a preset number of ripple periods for this segmentation processing; Step c: updating the initial single-cycle sampling point number to obtain a new initial single-cycle sampling point number; Step d: in chronological order, starting from a new starting point according to the new initial single-cycle sampling point number, reading sequence data of M cycles in the motor ripple sampling sequence as a new processing sequence, repeating steps b to d until the motor ripple sampling sequence is processed, and obtaining N cycle segmentation points in the related transformation sequence corresponding to each processing sequence, wherein the new starting point is determined based on the end point of the last ripple cycle data of the processing sequence; Step e: performing period division on the motor ripple sampling sequence through all period division points.

2. The method according to claim 1, characterized in that The performing transformation detection processing on the processing sequence to obtain N period segmentation points in the relevant transformation sequence includes: Performing relevant transformation calculation on the processing sequence to obtain the relevant transformation sequence; The upper peak position of the correlation transformation sequence is detected to obtain N period division points in the correlation transformation sequence.

3. The method according to claim 2, characterized in that The method further comprises: According to the initial single-cycle sampling point number, read L cycles of sequence data starting from the starting point of the processing sequence as a local sequence; Accordingly, performing relevant transformation calculation on the processing sequence to obtain the relevant transformation sequence includes: According to the processing sequence and the local sequence, a correlation transformation calculation is performed using a preset correlation transformation formula to obtain the correlation transformation sequence.

4. The method according to claim 1, characterized in that: The updating of the initial single-cycle sampling point number to obtain a new initial single-cycle sampling point number includes: The number of sampling points of the Nth ripple cycle in the correlation transformation sequence obtained in the last processing is determined as the new initial single-cycle sampling point number.

5. The method according to claim 4, characterized in that The method further comprises: According to the single-cycle sampling point number prediction value obtained in advance, read the sequence data of M cycles starting from the starting point of the motor ripple sampling sequence as the initial processing sequence; According to the predicted value of the number of sampling points in a single cycle, starting from the starting point of the initial processing sequence, sequence data of L cycles are read as an initial local sequence; According to the initial processing sequence and the initial local sequence, performing correlation transformation calculation by using the correlation transformation formula, to obtain an initial correlation transformation sequence; Performing upper peak position detection on the initial correlation transformation sequence to obtain N period division points in the initial correlation transformation sequence; The number of sampling points in N periods of the initial correlation transformation sequence is averaged to obtain the number of sampling points in the initial single period.

6. The method according to claim 5, characterized in that The method further comprises: Acquire motor parameters, wherein the motor parameters include motor current, motor rotation direction, ambient temperature, motor voltage, and ambient temperature; According to the motor parameters, the predicted value of the number of sampling points in a single cycle is obtained by a table lookup method.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Real-time sampling of motor current signal; The motor current signal is preprocessed by removing direct current and performing pulse width modulation (PWM) filtering to obtain the motor ripple sampling sequence.

8. The method according to any one of claims 1 to 5, characterized in that: The step of performing period segmentation on the motor ripple sampling sequence through all period segmentation points includes: The motor ripple sampling sequence is periodically divided through all period division points to obtain a period division point sequence; Accordingly, the method further includes: According to the period division point sequence, the ripples of the motor ripple sampling sequence are counted.

9. A motor ripple processing device, characterized in that: include: A first reading module is used to read M cycles of sequence data starting from the starting point of the pre-acquired motor ripple sampling sequence according to the pre-acquired initial single-cycle sampling point number as a processing sequence, wherein M is a preset integer; A transformation detection module, used for performing transformation detection processing on the processing sequence to obtain N period segmentation points in the relevant transformation sequence, wherein the relevant transformation sequence and the processing sequence have the same ripple period, wherein N is a preset number of ripple periods for this segmentation processing; An updating module, used for updating the initial single-cycle sampling point number to obtain a new initial single-cycle sampling point number; A loop module, used to read M cycles of sequence data in the motor ripple sampling sequence from a new starting point according to the new initial single-cycle sampling point number in chronological order as a new processing sequence, and perform the above operation until the motor ripple sampling sequence is processed to obtain N cycle segmentation points in the related transformation sequence corresponding to each processing sequence, wherein the new starting point is determined based on the end point of the last ripple cycle data of the processing sequence; The segmentation module is used to perform period segmentation on the motor ripple sampling sequence through all period segmentation points.

10. A motor controller, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the motor ripple processing method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the motor ripple processing method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Automobile glass lifting anti-pinch system and method and storage medium thereof

    CN119393025A

  • Automobile glass lifting anti-pinch system, method and storage medium thereof

    CN119393025B

  • Electric motor ripple processing method and apparatus, and device and storage medium

    WO2026037058A1