Motor current data acquisition system and automobile

By real-time acquisition and filtering of clutter in the current ripple of the window motor, and determining the true wave peak and trough values, the problem of the window motor clamping obstacles during the rising process is solved, the acquisition efficiency and accuracy are improved, and the real wave peak and trough values ​​are enhanced. The universality and safety performance of window anti-clip function.

CN116411768BActive Publication Date: 2025-01-14BYD CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111679717.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2025-01-14
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

In the prior art, the automotive window motor is prone to clamping obstacles during the rising process, resulting in increased rotational resistance and may be damaged. The existing solution is inefficient, has high CPU usage, complex calculations, large storage space, and the window location The calculation is inaccurate.

Method used

By collecting the current ripple value of the window motor in real time, determining the true wave peak and real wave trough values, filtering out clutter, reducing false wave peak and troughs, improving CPU operation efficiency and acquisition efficiency, and accurately calculating the window position.

Benefits of technology

Improve the accuracy of the true peak and true trough of the window motor, enhance the stability and accuracy of the anti-clip operation of the window, reduce costs, and make the anti-clip function of the window suitable for all models, improving the user experience and car safety performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116411768B_ABST
    Figure CN116411768B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of data acquisition, and the present invention discloses a motor current data acquisition system and a car, wherein the system comprises a window motor connected to a car window and used to control the lifting and lowering of the car window, and a controller connected to the window motor; the controller is used to be configured to: when the window motor drives the car window to lift and lower, collect the current ripple value of the motor current of the window motor in real time, and determine the pre-wave peak value and pre-wave valley value according to the current ripple value; obtain the preset ripple effective range value, and determine the real valley value according to the pre-wave valley value, the preset ripple effective range value and the current ripple value; determine the real wave peak value according to the pre-wave peak value, the preset ripple effective range value and the current ripple value. The present invention improves the accuracy of the collected real wave peak value and real wave valley value, enhances the stability and accuracy of the anti-pinch operation of the car window, and the present invention calculates a small amount of data, occupies a small storage space, and improves the operation efficiency and data acquisition efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data acquisition, and in particular to a motor current data acquisition system and a car. Background Art

[0002] With the widespread use of automobiles, users have higher and higher requirements for automobile configuration. At present, most automobile windows can be directly controlled by window motors to rise and fall. However, automobile windows often get caught by obstacles (such as clothing, user's outstretched hands, etc.) during the rising process. At this time, if the window motor continues to control the rising of the automobile window, the rotation resistance of the window motor will increase, and then the motor rotation will slow down, which may cause the window motor to be damaged in a long-term stalled state. In the prior art, there is a scheme for determining the peak and trough values ​​of the motor according to the pulse width difference of the peak and trough, and then performing the automobile window anti-pinch operation according to the peak and trough curve finally obtained. This scheme has the problem of inaccurate calculation of the window position; at the same time, the existing scheme determines the current ripple of the window motor according to the pulse width difference, which is inefficient and occupies too much CPU (central processing unit). At the same time, all ripples in the operation of the window motor need to be stored in the calculation process, which occupies a large storage space; and in the above scheme, a large number of experimental tests are required to obtain multiple threshold ranges, which increases the calculation complexity. Summary of the invention

[0003] The embodiments of the present invention provide a motor current data acquisition system and a vehicle, which can filter out the noise in the current ripple when the window motor is running in real time, and finally only need to collect the effective real peak value and real trough value, thereby improving the CPU operation efficiency and acquisition efficiency, and at the same time reducing the irregular current ripple problem caused by load changes of the window motor, and improving the accuracy of the collected real peak value and real trough value.

[0004] A motor current data acquisition system includes a window motor connected to a car window and used to control the lifting and lowering of the car window, and a controller connected to the window motor;

[0005] The controller is configured to:

[0006] When the window motor drives the automobile window to be raised or lowered, the current ripple value of the motor current of the window motor is collected in real time, and the pre-wave peak value and the pre-wave valley value are determined according to the current ripple value;

[0007] Obtaining a preset ripple effective range value, and determining a real valley value according to the pre-valley value, the preset ripple effective range value, and the current ripple value;

[0008] The actual peak value is determined according to the pre-peak value, the preset ripple effective range value and the current ripple value.

[0009] A car comprises the motor current data acquisition system.

[0010] In the motor current data acquisition system and automobile provided by the present invention, the motor current data acquisition system includes a window motor connected to a car window and used to control the lifting and lowering of the car window, and a controller connected to the window motor; the controller is used to be configured to: when the window motor drives the car window to lift and lower, collect the current ripple value of the motor current of the window motor in real time, and determine the pre-wave peak value and pre-wave valley value according to the current ripple value; obtain a preset ripple effective range value, and determine a real valley value according to the pre-wave valley value, the preset ripple effective range value and the current ripple value; determine the real wave peak value according to the pre-wave peak value, the preset ripple effective range value and the current ripple value.

[0011] The motor current data acquisition system in the above embodiment of the present invention can filter out the noise and false peaks and valleys in the current ripple generated when the window motor is running, and only obtain the effective real peak value and real valley value of the motor, thereby improving the accuracy of the collected real peak value and real valley value (compared with the prior art, the motor current data acquisition system of the present invention does not need to use the peak pulse width difference and the valley pulse width difference to determine the peak and valley of the current ripple of the window motor, thereby reducing the irregularity of the current ripple of the window motor due to load changes, thereby improving stability and accuracy). The value and the true trough value can accurately calculate the operating status of the window motor and the current lifting position of the car window, which can reduce the problems of false anti-pinch and non-anti-pinch in the implementation of the car window function due to inaccurate positioning of the car window, enhance the stability and accuracy of the car window anti-pinch operation, increase the safety performance of the car, and reduce the cost of implementing the car window anti-pinch function, so that the car window anti-pinch function is not only a configuration on high-end models, but is suitable for all models, increasing the universality of the window anti-pinch function, improving the user's driving experience, and improving the safety performance and level of the car.

[0012] Moreover, the controller of the present invention ultimately only needs to collect the true peak value and the true trough value (filtering out clutter), which can improve the utilization efficiency of the data collected by the controller. In the process of collecting the true peak value and the true trough value, the controller does not need to store all current ripple values. The amount of calculated data is small, and the storage space occupied is small, which improves the operating efficiency and data collection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0014] Figure 1 It is a structural schematic diagram of a motor current data acquisition system in one embodiment of the present invention.

[0015] Figure 2 It is a sinusoidal diagram of the window motor current ripple containing noise in the prior art.

[0016] Figure 3 It is a current ripple V graph of a window motor generated by the real peak value and the real valley value collected by the motor current data collection system in one embodiment of the present invention.

[0017] Figure 4 It is a flow chart of the steps executed by the controller in the motor current data acquisition system in one embodiment of the present invention. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] The present invention provides a motor current data acquisition system 1, such as Figure 1As shown, it includes a window motor 11 connected to a car window 2 and used to control the lifting of the car window 2, and a controller 12 connected to the window motor 11; wherein the window motor 11 is used to control the lifting of the car window 2; and the controller 12 can instruct the window motor 11 to control the lifting of the car window 2 after the car is started; it can be understood that ripple is a phenomenon caused by the voltage fluctuation of the DC stable power supply (the DC stable power supply is generally formed by the AC power supply through rectification and voltage stabilization, etc.), and the current ripple value of the motor current is any point on the fingerprint wave, and each current ripple value can represent the load size when the current window motor 11 drives the car window 2 to lift. After the controller 12 determines the true peak value and the true trough value according to the current ripple value obtained in the following text, it can perform the anti-pinch operation of the car window 2 according to the above true peak value and true trough value. The controller of the present invention ultimately only needs to collect the true peak value and the true trough value (filtering out clutter), which can improve the utilization efficiency of the data collected by the controller. In the process of collecting the true peak value and the true trough value, the controller does not need to store all current ripple values. The amount of calculated data is small, and the storage space occupied is small, which improves the operating efficiency and data collection efficiency.

[0020] It can be understood that the anti-pinch operation of the automobile window 2 may include controlling the window motor 11 to stop driving the automobile window 2 to move; it may also include controlling the window motor 11 not to stop driving the automobile window 2 to move, but to continue to drive the automobile window 2 to rise; it may also include controlling the window motor 11 to reverse, etc. The above-mentioned anti-pinch operation of the automobile window 2 can be determined according to the specific real peak value and real trough value, and the anti-pinch operation of the automobile window 2 corresponding to different real peak values ​​and real trough values ​​may be the same or different. In the embodiment of the present invention, since the accuracy of the true peak value and the true trough value finally collected is high, the operating status of the window motor and the current lifting position of the car window can be accurately calculated according to the collected true peak value and the true trough value, which can reduce the problems of false anti-pinch and non-anti-pinch in the implementation of the car window function due to inaccurate positioning of the car window, enhance the stability and accuracy of the anti-pinch operation of the car window, increase the safety performance of the car, reduce the cost of implementing the anti-pinch function of the car window, make the car window anti-pinch function not only a configuration of high-end models, but suitable for all models, increase the universality of the use of the window anti-pinch function, improve the user's driving experience, and improve the safety performance and level of the car.

[0021] Understandably, when the window motor of a car is operating under normal load, the irregular operation of the car window will cause irregular peak and trough pulse width values ​​of the motor ripple. In the embodiment of the present invention, the motor current data acquisition system can filter out the noise and false peaks and troughs in the current ripple generated when the window motor is running. Therefore, even if the peak and trough pulse width values ​​of the motor ripple are irregular when the window motor is under load operation, the present invention can still obtain the effective true peak value and true trough value of the motor (compared with the prior art, the motor current data acquisition system of the present invention does not need to use the peak pulse width difference and the trough pulse width difference to determine the peak and trough of the current ripple of the window motor, which reduces the irregularity of the current ripple of the window motor due to load changes, thereby improving stability and accuracy), thereby improving the accuracy of the collected true peak value and true trough value.

[0022] In one embodiment, if Figure 4 As shown, the controller 12 is configured to (that is, the controller 12 is also configured to perform the following steps S100-S300):

[0023] S100. When the window motor 11 drives the automobile window 2 to rise or fall, the current ripple value of the motor current of the window motor 11 is collected in real time, and the pre-wave peak value and the pre-wave valley value are determined according to the current ripple value; it is understandable that before the controller 12 starts collecting, it is necessary to first initialize relevant variables, wherein the relevant variables include the pre-wave peak value and the pre-wave valley value; the pre-wave peak value refers to the current peak value of the window motor 11 that first needs to be determined whether it is a real peak value after subsequently receiving the real peak and valley collection instruction (the current ripple value located at the peak position of the ripple); the pre-wave valley value refers to the current valley value of the window motor 11 that first needs to be determined whether it is a real valley value after subsequently receiving the real peak and valley collection instruction (the current ripple value located at the valley position of the ripple); both the pre-wave peak value and the pre-wave valley value need to be determined after the window motor 11 drives the automobile window 2 to start rising or falling. Furthermore, the related variables that need to be initialized also include the real peak number and the real trough number. Before receiving the real peak and trough acquisition instruction, the real peak number and the real trough number will be initialized to 0.

[0024] Furthermore, the controller 12 is also configured to:

[0025] When the window motor 11 starts to drive the automobile window 2 to rise and fall, it is confirmed that the initial acquisition stage has been entered and the current ripple value is acquired in real time, and the current peak value and the current valley value are determined according to the current ripple value; that is, in the initial acquisition stage, after the window motor 11 starts to drive the automobile window 2 to rise and fall, the initial acquisition stage is first entered, and at this time, the controller 12 starts to acquire the current ripple value in real time, and then the current peak value and the current valley value in the ripple can be determined from the acquired current ripple value by a preset method; wherein the preset method can be: acquiring the current ripple value once every first preset time, generating a current change curve in real time according to the current ripple value acquired each time, and then determining the peak and valley in the current change curve as the current peak value and the current valley value, respectively.

[0026] Receive the real wave peak and valley acquisition instruction, and record the last current wave peak value and the last current wave valley value determined in the initial acquisition stage as the pre-wave peak value and the pre-wave valley value, respectively. That is, after receiving the real wave peak and valley acquisition instruction (the real wave peak and valley acquisition instruction can be automatically generated after an upward or downward trend in the above-mentioned current change curve ends, that is, after a latest current wave peak value and current valley value are generated; the real wave peak and valley acquisition instruction can also be generated at any time point in the above-mentioned current change curve and after there is at least one current wave peak value and current valley value), it is considered that the initial acquisition stage has ended, and now enters the stage where the real wave peak value and the real valley value need to be determined. At this time, the last current wave peak value and the last current valley value determined in the initial acquisition stage will be determined as the pre-wave peak value and the pre-wave valley value in the initialization related variables.

[0027] S200, obtaining a preset ripple effective range value, and determining a real valley value according to the pre-valley value, the preset ripple effective range value, and the current ripple value; in this embodiment, the real valley value may be determined first, and then the real peak value may be determined; but in the present invention, according to the same principle, the real peak value may be determined first according to the pre-peak value, the preset ripple effective range value, and the current ripple value, and then the real valley value may be determined according to the pre-valley value, the preset ripple effective range value, and the current ripple value, and the order of these is not limited.

[0028] In one embodiment, the controller 12 is further configured to implement step S200 by:

[0029] S201, assign the first current ripple value collected after receiving the real peak and valley collection instruction to the real-time ripple value, and assign the previous current ripple value collected before the real-time ripple value to the temporary ripple value; that is, the real-time ripple value will be the current ripple value currently collected by the controller 12. After receiving the real peak and valley collection instruction, the first current ripple value collected refers to the real-time ripple value. At this time, the previous current ripple value before the real-time ripple value will be regarded as the temporary ripple value. At this time, since it is necessary to further determine the real valley value of the current ripple of the current window motor 11 through the rising or falling trend of the current ripple, it is necessary to enter the next step S202 to compare the real-time ripple value and the temporary ripple value to determine the rising or falling trend of the current ripple of the current window motor 11.

[0030] S202, when the real-time ripple value is less than the temporary ripple value, it is determined that the current current ripple is in a downward trend, and a first difference between the temporary ripple value and the pre-valley value is obtained; that is, the real-time ripple value is compared with the temporary ripple value. If the real-time ripple value is less than the temporary ripple value, it is determined that the current current ripple is in a downward trend. At this time, if the real peak and valley acquisition instruction is generated after an upward trend in the above-mentioned current change curve ends, and the downward trend has just begun, it is necessary to first obtain the first difference between the temporary ripple value and the pre-valley value, and then determine whether the pre-valley value is a real valley value based on the above-mentioned first difference and the preset ripple effective range value.

[0031] S203, obtaining a preset ripple effective range value, and when the first difference is greater than the preset ripple effective range value, determining the pre-valley value as a real valley value and storing it, and increasing the number of real valleys by one. It can be understood that the preset ripple effective range value is a fluctuation range of a normal current ripple obtained according to an experiment. The preset ripple effective range is pre-stored for the controller 12 to retrieve at any time. That is, if the first difference is greater than the preset ripple effective range value, it means that the ripple fluctuation range between the temporary ripple value and the pre-valley value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the first pre-valley value is a real valley value, and at this time, the number of real valleys can be increased by one. In this embodiment, the motor current data acquisition system can filter out the clutter and false peaks and valleys in the current ripple generated when the window motor is running, and obtain the real valley value, thereby improving the accuracy of the collected real valley value.

[0032] In one embodiment, the controller 12 is further configured to implement step S200 by:

[0033] S204, when the real-time ripple value is greater than or equal to the temporary ripple value, it is determined that the current current ripple is in an upward trend, and a preset peak assignment operation is performed to reassign the real-time ripple value and the temporary peak value; the preset peak assignment operation includes: assigning the current real-time ripple value to the temporary peak value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; that is, after comparing the real-time ripple value and the temporary ripple value in step S201, if the real-time ripple value is greater than or equal to the temporary ripple value, it can be determined that the current current ripple is in an upward trend. At this time, it is necessary to assign the latest current ripple value collected after the current real-time ripple value determined in step S201 as the new real-time ripple value, and at the same time, assign the current real-time ripple value determined in step S201 as the new temporary peak value. From the above, it can be seen that in the present invention, when the current current ripple is in an upward trend, the preset peak assignment operations that need to be executed all refer to: assigning the current real-time ripple value to the temporary peak value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value.

[0034] S204, when the latest assigned real-time ripple value is less than the temporary peak value, determine that the current current ripple switches from an upward trend to a downward trend, and obtain the second difference between the temporary peak value and the pre-trough value; in this embodiment, since the trend has just switched from an upward trend to a downward trend, it is necessary to first obtain the second difference between the temporary peak value and the pre-trough value, and then determine whether the pre-trough value is a true trough value based on the second difference and the preset ripple effective range value. In this step, after determining that the current current ripple switches from an upward trend to a downward trend, the temporary peak value will be a current peak value. In one embodiment, the current peak value can be compared with the pre-trough peak value determined in the previous step S100, and the larger value is determined as a new pre-trough peak value (which may be the true peak value). At this time, the other smaller value will be confirmed as not being the true peak value.

[0035] S205, when the second difference is greater than the preset ripple effective range value, the pre-trough value is determined as the real trough value and stored, and the number of real troughs is increased by one. That is, if the second difference is greater than the preset ripple effective range value, it means that the ripple fluctuation range between the temporary peak value and the pre-trough value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the first pre-trough value is a real trough value. At this time, the number of real troughs can be increased by one. It can be understood that when the second difference is less than or equal to the preset ripple effective range value, the next step can be performed with reference to step S206 and its subsequent steps, which will not be repeated here. In this embodiment, the motor current data acquisition system can filter out the noise and false peaks and troughs in the current ripple generated when the window motor is running, and obtain the real trough value, thereby improving the accuracy of the collected real trough value.

[0036] In one embodiment, the controller 12 is further configured to implement step S200 by:

[0037] S206, after obtaining the preset ripple effective range value, when the first difference is less than or equal to the preset ripple effective range value, determine whether the real-time ripple value is less than or equal to the pre-wave valley value; that is, after obtaining the preset ripple effective range value in step S203, if the first difference obtained in step S202 is less than or equal to the preset ripple effective range value, it means that the ripple fluctuation range between the temporary ripple value and the pre-wave valley value does not belong to the normal waveform fluctuation range, and the current may belong to abnormal fluctuation. At this time, it cannot be determined whether the first pre-wave valley value is a real trough value. Therefore, it can be further determined whether the real-time ripple value is less than or equal to the pre-wave valley value.

[0038] S207, if the real-time ripple value is less than or equal to the pre-valley value, a preset valley assignment operation is performed to reassign the real-time ripple value and the temporary valley value; the preset valley assignment operation includes: assigning the current real-time ripple value to the temporary valley value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; that is, if it is determined in step S206 that the real-time ripple value is less than or equal to the pre-valley value, then it can be fully determined that the first pre-valley value obtained in step S100 is not a real valley value (because the real-time ripple value currently collected is already less than or equal to the pre-valley value, that is, the current real-time ripple value will be equal to or lower than the pre-valley value in the current ripple, and the above step S202 has determined that the current current ripple is in a downward trend, so the pre-valley value must not be a real valley value, and a new pre-valley value needs to be re-determined to further determine whether the new pre-valley value is a real valley value). At this time, since it has been determined in the above step S202 that the current current ripple is in a downward trend, the preset trough assignment operation can be performed to further determine the next rising and falling trend of the current ripple, and then find the real trough value. That is, the current ripple value that is newly collected after the current real-time ripple value determined in step S201 is assigned as the new real-time ripple value, and at the same time, the current real-time ripple value determined in step S201 is assigned as the new temporary trough value. It can be seen from the above that in the present invention, when the current current ripple is in a downward trend, the preset trough assignment operation that needs to be performed refers to: assigning the current real-time ripple value to the temporary trough value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value.

[0039] S208, when the latest assigned real-time ripple value is less than or equal to the temporary valley value, it is determined that the current current ripple is still in a downward trend, and the process returns to continue to execute the preset valley assignment operation to reassign the real-time ripple value and the temporary valley value; in this embodiment, after determining that the current current ripple is still in a downward trend, it means that the new pre-valley value has not yet appeared, and the process returns to step S207, and continues to execute the preset valley assignment operation to reassign the real-time ripple value and the temporary valley value, until the latest assigned real-time ripple value is greater than the temporary valley value, and then enters step S209.

[0040] S209, when the latest assigned real-time ripple value is greater than the temporary valley value, it is determined that the current current ripple switches from a downward trend to an upward trend, the current temporary valley value is assigned to the pre-valley value, and a preset peak assignment operation is performed to reassign the real-time ripple value and the temporary peak value; the preset peak assignment operation includes: assigning the current real-time ripple value to the temporary peak value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; that is, in this embodiment, after determining that the current current ripple switches from a downward trend to an upward trend, the current valley value in the current ripple corresponding to the current trend change (a critical current ripple value for switching from a downward trend to an upward trend, that is, the current temporary valley value) can be determined as a new pre-valley value, and then it is determined whether the new pre-valley value is a real valley value. Specifically, after the current current ripple switches from an upward trend to a downward trend, it is necessary to perform a preset peak assignment operation to reassign the real-time ripple value and the temporary peak value, and then enter the next step S210 to compare the latest assigned real-time ripple value and temporary peak value to determine the rising or falling trend of the current ripple of the window motor 11.

[0041] S210, when the latest assigned real-time ripple value is less than the temporary peak value, determine that the current current ripple switches from an upward trend to a downward trend, and obtain the third difference between the temporary peak value and the latest assigned pre-trough value; specifically, after the current current ripple switches from an upward trend to a downward trend, it is necessary to first obtain the third difference between the temporary peak value and the latest assigned pre-trough value, and then determine whether the pre-trough value is a true trough value based on the third difference and the preset ripple effective range value. In this step, after determining that the current current ripple switches from an upward trend to a downward trend, the temporary peak value will be a current peak value. In one embodiment, the current peak value can be compared with the pre-trough peak value determined in the previous step S100, and the larger value is determined as a new pre-trough peak value (which may be the true peak value). At this time, the other smaller value will be confirmed as not being the true peak value.

[0042] S211, when the third difference is greater than the preset ripple effective range value, the newly assigned pre-valley value is determined as the real valley value and stored, and the number of real valleys is increased by one. That is, if the third difference is greater than the preset ripple effective range value, it means that the ripple fluctuation range between the temporary peak value and the newly assigned pre-valley value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the newly assigned pre-valley value is a real valley value. At this time, the number of real valleys can be increased by one. It can be understood that when the third difference is less than or equal to the preset ripple effective range value, the next step can be performed with reference to step S206 and its subsequent steps, which will not be repeated here. In this embodiment, the motor current data acquisition system can filter out the noise and false peaks and valleys in the current ripple generated when the window motor is running, and obtain the real valley value, thereby improving the accuracy of the collected real valley value.

[0043] In one embodiment, the controller 12 is further configured to implement step S200 by:

[0044] S212, after judging whether the real-time ripple value is less than or equal to the pre-valley value, if the real-time ripple value is greater than the pre-valley value, then judging whether the real-time ripple value is less than or equal to the temporary valley value; after judging whether the real-time ripple value is less than or equal to the pre-valley value in step S206, if the real-time ripple value is greater than the pre-valley value (and it has been determined in the above step S202 that the current ripple is in a downward trend), it means that the pre-valley value obtained in step S100 may still be the real valley value, and further judgment is needed. (When the current ripple continues to drop to the real-time ripple value less than or equal to the pre-trough value as described in the subsequent steps S213 and 214, it can be determined that the first pre-trough value will not be the real trough value. At this time, you can refer to the above step S207 to execute step S214 and subsequent operations; if the downward trend switches to an upward trend, the real-time ripple value is still greater than the pre-trough value, then execute step S218 and subsequent operations). At this time, it is necessary to first compare the real-time ripple value with the temporary trough value to determine the rising and falling trend of the current current ripple.

[0045] It can be understood that after determining whether the real-time ripple value is less than or equal to the temporary valley value, if the real-time ripple value is less than or equal to the temporary valley value, it can be determined that the current current ripple is still in a downward trend. At this time, it means that the pre-valley value obtained in step S100 may still be the real valley value and further judgment is required. Therefore, after executing the preset valley assignment operation to reassign the real-time ripple value and the temporary valley value, return to step S212 to continue to determine whether the real-time ripple value is less than or equal to the temporary valley value.

[0046] S213, when the real-time ripple value is less than or equal to the temporary valley value, it is determined that the current current ripple is still in a downward trend, and a preset valley assignment operation is performed to reassign the real-time ripple value and the temporary valley value; that is, if the current current ripple continues to be in a downward trend, it is necessary to further perform the preset valley assignment operation to continue to determine whether the latest assigned real-time ripple value of the current current ripple continues to decrease to a real-time ripple value that is less than or equal to the pre-valley value.

[0047] S214, when the latest assigned real-time ripple value is less than the pre-valley value, determine whether the latest assigned real-time ripple value is less than or equal to the latest assigned temporary trough value; if the latest assigned real-time ripple value is greater than the latest assigned temporary trough value, determine that the current current ripple switches from a downward trend to an upward trend; if the latest assigned real-time ripple value is less than or equal to the latest assigned temporary trough value, determine that the current current ripple is still in a downward trend, and return to continue to execute the preset trough assignment operation to reassign the real-time ripple value and the temporary trough value until it is determined that the current current ripple switches from a downward trend to an upward trend; that is, determine that the current current ripple is the most After the newly assigned real-time ripple value continues to decrease until the real-time ripple value is less than or equal to the pre-trough value, it can be determined that the first pre-trough value will not be the real trough value. At this time, if it is determined that the current current ripple has switched from a downward trend to an upward trend, step S215 can be directly entered; if it is determined that the current current ripple is still in a downward trend, at this time, it means that the new pre-trough value has not yet appeared, so the preset trough assignment operation is continued to be executed to reassign the real-time ripple value and the temporary trough value until it is determined that the current current ripple has switched from a downward trend to an upward trend (at this time, the latest assigned real-time ripple value is still less than the pre-trough value), and then step S215 is entered.

[0048] S215, after determining that the current current ripple switches from a downward trend to an upward trend, the current temporary trough value is assigned to the pre-trough value, and the preset peak assignment operation is performed to re-assign the real-time ripple value and the temporary peak value; that is, when determining that the current current ripple switches from a downward trend to an upward trend, it means that the latest pre-trough value has appeared (that is, the current temporary trough value), and at this time, the critical current ripple value for switching from the downward trend to the upward trend, that is, the current temporary trough value, can be determined as the new pre-trough value, and then determine whether the new pre-trough value is a real trough value. Specifically, after the current current ripple switches from an upward trend to a downward trend, it is also necessary to perform a preset peak assignment operation to re-assign the real-time ripple value and the temporary peak value, and then enter the next step S216 to compare the latest assigned real-time ripple value and the temporary peak value to determine the rising or falling trend of the current ripple of the window motor 11.

[0049] S216, when the latest assigned real-time ripple value is less than the temporary peak value, determine that the current current ripple switches from an upward trend to a downward trend, and obtain the fourth difference between the temporary peak value and the latest assigned pre-trough value; specifically, after the current current ripple switches from an upward trend to a downward trend, it is necessary to first obtain the fourth difference between the temporary peak value and the latest assigned pre-trough value, and then determine whether the pre-trough value is a true trough value based on the fourth difference and the preset ripple effective range value. In this step, after determining that the current current ripple switches from an upward trend to a downward trend, the temporary peak value will be a current peak value. In one embodiment, the current peak value can be compared with the pre-trough peak value determined in the previous step S100, and the larger value is determined as a new pre-trough peak value (which may be the true peak value). At this time, the other smaller value will be confirmed as not being the true peak value.

[0050] S217, when the fourth difference is greater than the preset ripple effective range value, the newly assigned pre-trough value is determined as the real trough value and stored, and the number of real troughs is increased by one. That is, if the fourth difference is greater than the preset ripple effective range value, it means that the ripple fluctuation range between the temporary peak value and the newly assigned pre-trough value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the newly assigned pre-trough value is a real trough value. At this time, the number of real troughs can be increased by one. It can be understood that when the fourth difference is less than or equal to the preset ripple effective range value, the next step can be performed with reference to step S206 and its subsequent steps, which will not be repeated here. In this embodiment, the motor current data acquisition system can filter out the noise and false peaks and troughs in the current ripple generated when the window motor is running, and obtain the real trough value, thereby improving the accuracy of the collected real trough value.

[0051] In one embodiment, the controller 12 is further configured to implement step S200 by:

[0052] S218, after determining whether the real-time ripple value is less than or equal to the temporary valley value, if the real-time ripple value is greater than the temporary valley value, it is determined that the current current ripple switches from a downward trend to an upward trend, and a preset peak assignment operation is performed to reassign the real-time ripple value and the temporary peak value; that is, after determining whether the real-time ripple value is less than or equal to the temporary valley value in step S212, if the real-time ripple value is greater than the temporary valley value, it is determined that the current current ripple switches from a downward trend to an upward trend. At this time, since the real-time ripple value is greater than the pre-valley value, although this position corresponds to a current valley value that switches from a downward trend to an upward trend (that is, the current temporary valley value), the current valley value is greater than the pre-valley value determined in step S100. Therefore, the current temporary valley value cannot be a true valley value. Therefore, the original pre-valley value is kept unchanged (it may be a true valley value). At the same time, after determining that the current current ripple has switched from a downward trend to an upward trend, it is necessary to perform a preset peak assignment operation to reassign the real-time ripple value and the temporary peak value, and then enter the next step S219 to compare the latest assigned real-time ripple value and temporary peak value to further determine the rising or falling trend of the current ripple of the window motor 11.

[0053] S219, when the latest assigned real-time ripple value is less than the latest assigned temporary peak value, determine that the current current ripple switches from an upward trend to a downward trend, and obtain the fifth difference between the temporary peak value and the pre-trough value; specifically, after the current current ripple switches from an upward trend to a downward trend, it is necessary to first obtain the fifth difference between the temporary peak value and the latest assigned pre-trough value, and then determine whether the pre-trough value is a true trough value based on the fifth difference and the preset ripple effective range value. In this step, after determining that the current current ripple switches from an upward trend to a downward trend, the temporary peak value will be a current peak value. In one embodiment, the current peak value can be compared with the pre-trough peak value determined in the previous step S100, and the larger value is determined as a new pre-trough peak value (which may be the true peak value). At this time, the other smaller value will be confirmed as not being the true peak value.

[0054] S220, when the fifth difference is greater than the preset ripple effective range value, the pre-trough value is determined as the real trough value and stored, and the number of real troughs is increased by one. That is, if the fifth difference is greater than the preset ripple effective range value, it means that the ripple fluctuation range between the temporary peak value and the first pre-trough value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the first pre-trough value is a real trough value. At this time, the number of real troughs can be increased by one. It can be understood that when the fifth difference is less than or equal to the preset ripple effective range value, the next step can be performed with reference to step S206 and its subsequent steps, which will not be repeated here. In this embodiment, the motor current data acquisition system can filter out the noise and false peaks and troughs in the current ripple generated when the window motor is running, and obtain the real trough value, thereby improving the accuracy of the collected real trough value.

[0055] S300, determining the actual peak value according to the pre-peak value, the preset ripple effective range value and the current ripple value. In one embodiment, the controller 12 is further configured to implement step S300 by the following steps:

[0056] S301, after adding one to the number of real valleys, if it is determined according to the preset lifting mark that the downward trend of the current current ripple has not been completed, then the preset valley assignment operation is performed to reassign the real-time ripple value and the temporary valley value; the preset valley assignment operation includes: assigning the current real-time ripple value to the temporary valley value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; wherein the preset lifting mark is used to mark whether the rising trend or the falling trend of the current current ripple has been completed; the preset lifting mark can be set according to demand, for example, the preset lifting mark corresponding to the completion of the rising or falling trend can be set to 0, and the preset lifting mark corresponding to the unfinished rising or falling trend can be set to 1. It can be understood that in all the above embodiments, if a new real valley value is determined, the number of real valleys is increased by one, at this time, the current current ripple may still be in a downward trend, therefore, it can be determined according to the preset lifting mark whether the downward trend of the current current ripple has been completed. If it is determined according to the preset rise and fall mark that the current current ripple has not yet reached its downward trend, the preset trough assignment operation is continued to be performed to find the critical point where the downward trend switches to the upward trend according to whether the latest assigned real-time ripple value is less than or equal to the latest assigned temporary trough value, thereby determining the true peak value. Therefore, it is necessary to enter the next step S302 to compare the latest assigned real-time ripple value with the latest assigned temporary trough value to determine the upward or downward trend of the current ripple of the window motor 11.

[0057] S302, determine whether the latest assigned real-time ripple value is less than or equal to the latest assigned temporary trough value; that is, after determining whether the latest assigned real-time ripple value is less than or equal to the latest assigned temporary trough value, if the latest assigned real-time ripple value is less than or equal to the latest assigned temporary trough value, it is determined that the current current ripple is still in a downward trend, and it is necessary to return to step S301 to continue to perform the preset trough assignment operation to re-assign the real-time ripple value and the temporary trough value. If the latest assigned real-time ripple value is greater than the latest assigned temporary trough value, enter step S303.

[0058] S303, if the latest assigned real-time ripple value is greater than the latest assigned temporary trough value, it is determined that the current current ripple switches from a downward trend to an upward trend, the current temporary trough value is assigned to the pre-trough value, and the sixth difference between the pre-wave peak value and the latest assigned temporary trough value is obtained; that is, if the latest assigned real-time ripple value is greater than the latest assigned temporary trough value, it is determined that the current current ripple switches from a downward trend to an upward trend. At this time, it has just entered the upward trend, and it is necessary to obtain the sixth difference between the pre-wave peak value and the latest assigned temporary trough value, and then determine whether the pre-wave peak value is a real peak value based on the above sixth difference and the preset ripple effective range value. It can be understood that since the previous pre-trough value has been determined as a real trough value, there is no new pre-trough value at present. Therefore, it is necessary to assign the current temporary trough value corresponding to the critical point at the critical point where the downward trend switches to the upward trend as a new pre-trough value, so as to facilitate the subsequent determination of the next real trough value based on the pre-trough value.

[0059] S304, when the sixth difference is greater than the preset ripple effective range value, the pre-wave peak value is determined as the real peak value and stored, and the number of real peaks is increased by one. It can be understood that if the sixth difference is greater than the preset ripple effective range value, it means that the ripple fluctuation range between the pre-wave peak value and the latest assigned temporary trough value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the pre-wave peak value is a real peak value. At this time, the number of real peaks can be increased by one. In this embodiment, the motor current data acquisition system can filter out the noise and false peaks and troughs in the current ripple generated when the window motor is running, and obtain the real peak value, thereby improving the accuracy of the collected real peak value.

[0060] In one embodiment, the controller 12 is further configured to:

[0061] S305, after adding one to the number of real troughs, if it is determined according to the preset rise and fall mark that the downward trend of the current ripple is completed, it is determined that the current current ripple switches from a downward trend to an upward trend, and a preset peak assignment operation is performed to reassign the real-time ripple value and the temporary peak value; the preset peak assignment operation includes: assigning the current real-time ripple value to the temporary peak value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; that is, if it is determined that the current current ripple switches from a downward trend to an upward trend, at this time, it is necessary to perform the preset peak assignment operation to further determine the real trough value.

[0062] S306, when the latest assigned real-time ripple value is less than the temporary peak value, determine that the current current ripple switches from an upward trend to a downward trend, and obtain the seventh difference between the temporary peak value and the pre-trough value; in this embodiment, since the trend has just switched from an upward trend to a downward trend, it is necessary to first obtain the seventh difference between the temporary peak value and the pre-trough value, and then determine whether the pre-trough value is a true trough value based on the seventh difference and the preset ripple effective range value. In this step, after determining that the current current ripple switches from an upward trend to a downward trend, the temporary peak value will be a current peak value. In one embodiment, the current peak value can be compared with the current pre-trough peak value that has been set, and the larger value is determined as a new pre-trough peak value (which may be the true peak value). At this time, the other smaller value will be confirmed as not being the true peak value.

[0063] S307, when the seventh difference is greater than the preset ripple effective range value, the pre-trough value is determined as the real trough value and stored, and the number of real troughs is increased by one. That is, if the seventh difference is greater than the preset ripple effective range value, it means that the ripple fluctuation range between the temporary peak value and the pre-trough value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the pre-trough value is a real trough value. At this time, the number of real troughs can be increased by one. It can be understood that when the seventh difference is less than or equal to the preset ripple effective range value, the next step can be performed with reference to the above step S206 and its subsequent steps, which will not be repeated here. In this embodiment, the motor current data acquisition system can filter out the noise and false peaks and troughs in the current ripple generated when the window motor is running, and obtain the real trough value, thereby improving the accuracy of the collected real trough value.

[0064] In one embodiment, the controller 12 is further configured to implement step S300 by the following steps:

[0065] S308, when the sixth difference is less than or equal to the preset ripple effective range value, determine whether the real-time ripple value is greater than or equal to the pre-wave peak value; that is, after obtaining the sixth difference in step S303, if the sixth difference is less than or equal to the preset ripple effective range value, it means that the ripple fluctuation range between the pre-wave peak value and the latest assigned temporary trough value does not belong to the normal waveform fluctuation range, and the current may belong to abnormal fluctuation. At this time, it cannot be determined whether the pre-wave peak value is a real peak value. Therefore, it can be further determined whether the real-time ripple value is greater than or equal to the pre-wave peak value.

[0066] S309, if the real-time ripple value is greater than or equal to the pre-wave peak value, a preset peak assignment operation is performed to reassign the real-time ripple value and the temporary peak value; the preset peak assignment operation includes: assigning the current real-time ripple value to the temporary peak value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; that is, if it is determined in step S206 that the real-time ripple value is greater than or equal to the pre-wave peak value, then it can be fully determined that the currently set pre-wave peak value is not a real peak value (because the real-time ripple value currently collected is already greater than or equal to the pre-wave peak value, that is, the current real-time ripple value will be equal to or higher than the pre-wave peak value in the current ripple, and the above step S303 has determined that the current current ripple is in an upward trend, so the pre-wave peak value must not be the real peak value, and a new pre-wave peak value needs to be re-determined to further determine whether the new pre-wave peak value is the real peak value). At this time, since it has been determined in the above step S303 that the current ripple is in an upward trend, a preset peak value assignment operation can be performed to further determine the next rising and falling trend of the current ripple, and then find the real peak value.

[0067] S310, when the latest assigned real-time ripple value is greater than or equal to the temporary peak value, it is determined that the current current ripple is still on an upward trend, and returns to continue to execute the preset peak assignment operation to reassign the real-time ripple value and the temporary peak value; in this embodiment, after determining that the current current ripple is still on an upward trend, it means that the new pre-peak value has not yet appeared, and it will return to step S309, continue to execute the preset peak assignment operation to reassign the real-time ripple value and the temporary peak value, until the latest assigned real-time ripple value is less than the temporary peak value, and enter step S311.

[0068] S311, when the latest assigned real-time ripple value is less than the temporary trough value, it is determined that the current current ripple switches from an upward trend to a downward trend, the current temporary peak value is assigned to the pre-wave peak value, and the preset trough assignment operation is performed to re-assign the real-time ripple value and the temporary trough value; that is, in this embodiment, after determining that the current current ripple switches from an upward trend to a downward trend, the current peak value in the current ripple corresponding to the current trend change (a critical current ripple value for switching from an upward trend to a downward trend, that is, the current temporary peak value) can be determined as a new pre-wave peak value, and then it is determined whether the new pre-wave peak value is a real peak value. Specifically, after the current current ripple switches from an upward trend to a downward trend, it is also necessary to perform a preset trough assignment operation to re-assign the real-time ripple value and the temporary trough value, and then enter the next step S312 to compare the latest assigned real-time ripple value and the temporary trough value to determine the rising or falling trend of the current ripple of the current window motor 11.

[0069] S312, when the latest assigned real-time ripple value is greater than the latest assigned temporary trough value, determine that the current current ripple switches from a downward trend to an upward trend, and obtain the eighth difference between the latest assigned pre-wave peak value and the latest assigned temporary trough value; specifically, after the current current ripple switches from a downward trend to an upward trend, it is necessary to first obtain the eighth difference between the latest assigned pre-wave peak value and the latest assigned temporary trough value, and then determine whether the pre-wave peak value is a true peak value based on the above eighth difference and the preset ripple effective range value. In this step, after determining that the current current ripple switches from a downward trend to an upward trend, the temporary trough value will be a current trough value. In one embodiment, the current trough value can be compared with the currently set pre-trough value, and the smaller value therebetween is determined as a new pre-trough value (which may be a true trough value). At this time, the other larger value will be confirmed as not being a true trough value.

[0070] S313, when the eighth difference is greater than the preset ripple effective range value, the newly assigned pre-wave peak value is determined as the real peak value and stored, and the number of real peaks is increased by one. That is, if the eighth difference is greater than the preset ripple effective range value, it means that the ripple fluctuation range between the newly assigned pre-wave peak value and the newly assigned temporary trough value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the newly assigned pre-wave peak value is a real peak value. At this time, the number of real peaks can be increased by one. It can be understood that when the eighth difference is less than or equal to the preset ripple effective range value, the next step can be performed with reference to step S308 and its subsequent steps, which will not be repeated here. In this embodiment, the motor current data acquisition system can filter out the noise and false peaks and troughs in the current ripple generated when the window motor is running, and obtain the real peak value, thereby improving the accuracy of the collected real peak value.

[0071] In one embodiment, the controller 12 is further configured to implement step S300 by the following steps:

[0072] S314, after judging whether the real-time ripple value is greater than or equal to the pre-wave peak value, if the real-time ripple value is less than the pre-wave peak value, then judging whether the real-time ripple value is greater than or equal to the latest assigned temporary trough value; after judging whether the real-time ripple value is greater than or equal to the pre-wave peak value in step S308, if the real-time ripple value is less than the pre-wave peak value (and it has been determined in the above step S303 that the current ripple is in an upward trend), it means that the currently set pre-wave peak value may still be the real peak value, and further judgment is required (when the real-time ripple value is less than the pre-wave peak value). As described in the subsequent steps S315 and 316, when the current ripple continues to rise to the point where the real-time ripple value is greater than or equal to the pre-wave peak value, it can be determined that the currently set pre-wave peak value is not the actual peak value. At this time, refer to the above-mentioned step S309 to execute step S316 and subsequent operations accordingly; if the rising trend switches to a falling trend, the real-time ripple value is still less than the pre-wave peak value, then execute step S320 and subsequent operations). At this time, it is necessary to first compare the real-time ripple value with the latest assigned temporary trough value to determine the rising and falling trend of the current current ripple.

[0073] It can be understood that after determining whether the real-time ripple value is greater than or equal to the pre-wave peak value, if the real-time ripple value is greater than or equal to the pre-wave peak value, it can be determined that the current current ripple is still on an upward trend. At this time, it means that the currently set pre-wave peak value may still be the true peak value and further judgment is required. Therefore, after executing the preset peak assignment operation to reassign the real-time ripple value and the temporary peak value, return to step S314 to continue to determine whether the real-time ripple value is greater than or equal to the latest assigned temporary trough value.

[0074] S315, when the real-time ripple value is greater than or equal to the temporary valley value, it is determined that the current current ripple is still on an upward trend, and a preset peak assignment operation is performed to reassign the real-time ripple value and the temporary peak value; that is, if the current current ripple continues to be on an upward trend, it is necessary to further perform the preset peak assignment operation to continue to determine whether the latest assigned real-time ripple value of the current current ripple continues to rise to a real-time ripple value greater than or equal to the pre-peak value.

[0075] S316, when the latest assigned real-time ripple value is greater than the pre-peak value, determine whether the latest assigned real-time ripple value is greater than or equal to the latest assigned temporary peak value; if the latest assigned real-time ripple value is less than the latest assigned temporary peak value, determine that the current current ripple switches from an upward trend to a downward trend; if the latest assigned real-time ripple value is greater than or equal to the latest assigned temporary peak value, determine that the current current ripple is still in an upward trend, and return to continue to execute the preset peak assignment operation to reassign the real-time ripple value and the temporary peak value until it is determined that the current current ripple switches from an upward trend to a downward trend; that is, determine that the current current ripple is latest assigned After the real-time ripple value continues to rise until the real-time ripple value is greater than or equal to the pre-wave peak value, it can be determined that the currently set pre-wave peak value will not be the actual peak value. At this time, if it is determined that the current current ripple switches from an upward trend to a downward trend, step S317 can be directly entered; if it is determined that the current current ripple is still on an upward trend, at this time, it means that the new pre-wave peak value has not yet appeared, so the preset peak assignment operation is continued to be executed to reassign the real-time ripple value and the temporary peak value until it is determined that the current current ripple switches from an upward trend to a downward trend (at this time, the latest assigned real-time ripple value is still greater than the currently set pre-wave peak value), and then step S317 is entered.

[0076] S317, after determining that the current current ripple switches from an upward trend to a downward trend, the current temporary ripple value is assigned to the pre-wave peak value, and the preset trough assignment operation is performed to re-assign the real-time ripple value and the temporary trough value; that is, when it is determined that the current current ripple switches from an upward trend to a downward trend, it means that the latest pre-wave peak value has appeared (that is, the current temporary wave peak value), and at this time, the critical current ripple value for switching from the upward trend to the downward trend, that is, the current temporary wave peak value, can be determined as the new pre-wave peak value, and then determine whether the new pre-wave peak value is the real wave peak value. Specifically, after the current current ripple switches from an upward trend to a downward trend, it is also necessary to perform a preset trough assignment operation to re-assign the real-time ripple value and the temporary trough value, and then enter the next step S318 to compare the latest assigned real-time ripple value and the temporary trough value to determine the rising or falling trend of the current ripple of the window motor 11.

[0077] S318, when the latest assigned real-time ripple value is greater than the temporary trough value, determine that the current current ripple switches from a downward trend to an upward trend, and obtain the ninth difference between the latest assigned pre-wave peak value and the latest assigned temporary trough value; specifically, after the current current ripple switches from a downward trend to an upward trend, it is necessary to first obtain the ninth difference between the latest assigned pre-wave peak value and the latest assigned temporary trough value, and then determine whether the latest assigned pre-wave peak value is a true peak value based on the above ninth difference and the preset ripple effective range value. In this step, after determining that the current current ripple switches from a downward trend to an upward trend, the temporary trough value will be a current peak value. In one embodiment, the current trough value can be compared with the previously set pre-trough value, and the smaller value therebetween is determined as a new pre-trough value (which may be a true trough value). At this time, the other larger value will be confirmed as not being a true trough value.

[0078] S319, when the ninth difference is greater than the preset ripple effective range value, the most recently assigned pre-wave peak value is determined as the real peak value and stored, and the number of real peaks is increased by one. That is, if the ninth difference is greater than the preset ripple effective range value, it means that the ripple fluctuation range between the most recently assigned pre-wave peak value and the most recently assigned temporary trough value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the most recently assigned pre-wave peak value is a real peak value. At this time, the number of real peaks can be increased by one. It can be understood that when the ninth difference is less than or equal to the preset ripple effective range value, the next step can be performed with reference to step S307 and its subsequent steps, which will not be repeated here. In this embodiment, the motor current data acquisition system can filter out the noise and false peaks and troughs in the current ripple generated when the window motor is running, and obtain the real peak value, thereby improving the accuracy of the collected real peak value.

[0079] In one embodiment, the controller 12 is further configured to implement step S300 by the following steps:

[0080] S320, after determining whether the real-time ripple value is greater than or equal to the latest assigned temporary valley value, if the real-time ripple value is less than the temporary valley value, it is determined that the current current ripple switches from an upward trend to a downward trend, and a preset valley assignment operation is performed to reassign the real-time ripple value and the temporary valley value; that is, after determining whether the real-time ripple value is greater than or equal to the latest assigned temporary valley value in step S313, if the real-time ripple value is less than the temporary valley value, it is determined that the current current ripple switches from an upward trend to a downward trend. At this time, since the real-time ripple value is less than the pre-wave peak value, although this position corresponds to a current peak value that switches from an upward trend to a downward trend (that is, the current temporary peak value), the current peak value is less than the currently set pre-wave peak value. Therefore, the current temporary peak value cannot be the true peak value. Therefore, the original pre-wave peak value is kept unchanged (it may be the true peak value). At the same time, after determining that the current current ripple has switched from an upward trend to a downward trend, it is necessary to perform a preset trough assignment operation to reassign the real-time ripple value and the temporary trough value, and then enter the next step S320 to compare the latest assigned real-time ripple value and temporary trough value to further determine the rising or falling trend of the current ripple of the window motor 11.

[0081] S321, when the latest assigned real-time ripple value is greater than the temporary trough value, determine that the current current ripple switches from a downward trend to an upward trend, and obtain the tenth difference between the latest assigned pre-wave peak value and the latest assigned temporary trough value; specifically, after determining that the current current ripple switches from a downward trend to an upward trend, first obtain the tenth difference between the latest assigned pre-wave peak value and the latest assigned temporary trough value, and then determine whether the pre-wave peak value is a true peak value based on the tenth difference and the preset ripple effective range value. In this step, after determining that the current current ripple switches from a downward trend to an upward trend, the current temporary trough value will be a current peak value. In one embodiment, the current trough value can be compared with the previously set pre-trough value, and the smaller value therebetween is determined as a new pre-trough value (which may be a true trough value). At this time, the other larger value will be confirmed as not being a true trough value.

[0082] S322, when the tenth difference is greater than the preset ripple effective range value, the most recently assigned pre-wave peak value is determined as the real peak value and stored, and the number of real peaks is increased by one. That is, if the tenth difference is greater than the preset ripple effective range value, it means that the ripple fluctuation range between the most recently assigned pre-wave peak value and the most recently assigned temporary trough value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the pre-wave peak value is a real peak value. At this time, the number of real peaks can be increased by one. It can be understood that when the tenth difference is less than or equal to the preset ripple effective range value, the next step can be performed with reference to step S308 and its subsequent steps, which will not be repeated here. In this embodiment, the motor current data acquisition system can filter out the noise and false peaks and troughs in the current ripple generated when the window motor is running, and obtain the real peak value, thereby improving the accuracy of the collected real peak value.

[0083] In one embodiment, the controller 12 is further configured to:

[0084] S323, after adding one to the number of real peaks, if it is determined according to the preset lifting mark that the rising trend of the current current ripple has not ended, the preset peak assignment operation is performed to reassign the real-time ripple value and the temporary peak value; the preset peak assignment operation includes: assigning the current real-time ripple value to the temporary peak value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; it can be understood that in all the above embodiments, if a new real peak value is determined, the number of real peaks is increased by one. At this time, the current current ripple may still be in an upward trend. Therefore, it can be determined according to the preset lifting mark whether the rising trend of the current current ripple has ended. If it is determined according to the preset lifting mark that the rising trend of the current current ripple has not ended, the preset peak assignment operation is continued to be performed to find the critical point where the rising trend switches to the falling trend according to whether the latest assigned real-time ripple value is greater than or equal to the latest assigned temporary peak value, so as to determine the real peak value. Therefore, it is necessary to proceed to the next step S324 to compare the latest assigned real-time ripple value and the latest assigned temporary peak value to determine the rising or falling trend of the current ripple of the window motor 11 .

[0085] S324, determine whether the latest assigned real-time ripple value is greater than or equal to the latest assigned temporary peak value; that is, after determining whether the latest assigned real-time ripple value is greater than or equal to the latest assigned temporary peak value, if the latest assigned real-time ripple value is greater than or equal to the latest assigned temporary peak value, it is determined that the current current ripple is still in an upward trend, and it is necessary to return to step S323 to continue to perform the preset peak assignment operation to re-assign the real-time ripple value and the temporary peak value. If the latest assigned real-time ripple value is less than the latest assigned temporary peak value, enter step S325.

[0086] S325, if the latest assigned real-time ripple value is less than the latest assigned temporary peak value, it is determined that the current current ripple switches from an upward trend to a downward trend, the current temporary peak value is assigned to the pre-wave peak value, and the eleventh difference between the latest assigned temporary peak value and the latest assigned pre-wave valley value is obtained; that is, if the latest assigned real-time ripple value is less than the latest assigned temporary peak value, it is determined that the current current ripple switches from an upward trend to a downward trend, and at this time, it has just entered a downward trend, and it is necessary to obtain the eleventh difference between the pre-wave peak value and the latest assigned temporary valley value, and then determine whether the pre-wave valley value is a real valley value based on the above eleventh difference and the preset ripple effective range value. It is understandable that since the previous pre-wave peak value has been determined as the real peak value, there is no new pre-wave peak value at present. Therefore, it is necessary to assign the current temporary peak value corresponding to the critical point at the critical point where the upward trend switches to the downward trend as a new pre-wave peak value, so as to facilitate the subsequent determination of the next real peak value based on the pre-wave peak value.

[0087] S326, when the eleventh difference is greater than the preset ripple effective range value, the newly assigned pre-trough value is determined as the real trough value and stored, and the number of real troughs is increased by one. Understandably, if the eleventh difference is less than the preset ripple effective range value, it means that the ripple fluctuation range between the newly assigned temporary peak value and the newly assigned pre-trough value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the pre-trough value is a real trough value, and at this time, the number of real troughs can be increased by one. In this embodiment, the motor current data acquisition system can filter out the noise and false peaks and troughs in the current ripple generated when the window motor is running, and obtain the real trough value, thereby improving the accuracy of the collected real trough value.

[0088] In one embodiment, the controller 12 is further configured to implement step S300 by the following steps:

[0089] S327, after adding one to the number of real peaks, if it is determined according to the preset rise and fall mark that the rising trend of the current ripple is completed, it is determined that the current current ripple switches from an rising trend to a falling trend, and a preset trough assignment operation is performed to reassign the real-time ripple value and the temporary trough value; the preset trough assignment operation includes: assigning the current real-time ripple value to the temporary trough value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; that is, if it is determined that the current current ripple switches from an rising trend to a falling trend, at this time, it is necessary to perform the preset trough assignment operation to further determine the real peak value.

[0090] S328, when the latest assigned real-time ripple value is greater than the temporary trough value, determine that the current current ripple switches from a downward trend to an upward trend, and obtain the twelfth difference between the pre-wave peak value and the temporary trough value; in this embodiment, since the trend has just switched from a downward trend to an upward trend, it is necessary to first obtain the twelfth difference between the pre-wave peak value and the temporary trough value, and then determine whether the pre-wave peak value is a true peak value based on the twelfth difference and the preset ripple effective range value. In this step, after determining that the current current ripple switches from a downward trend to an upward trend, the current temporary trough value will be a current peak value. In one embodiment, the current trough value can be compared with the previously set pre-trough value, and the smaller value can be determined as a new pre-trough value (which may be a true trough value). At this time, the other larger value will be confirmed as not being a true trough value.

[0091] S329, when the twelfth difference is greater than the preset ripple effective range value, the pre-wave peak value is determined as the real peak value and stored, and the number of real peaks is increased by one. That is, if the twelfth difference is greater than the preset ripple effective range value, it means that the ripple fluctuation range between the pre-wave peak value and the temporary trough value is a normal waveform fluctuation range, rather than an irregular fluctuation range of abnormal fluctuation. Therefore, at this time, it can be first determined that the pre-wave peak value is a real peak value. At this time, the number of real peaks can be increased by one. It can be understood that when the twelfth difference is less than or equal to the preset ripple effective range value, the next step can be performed with reference to the above step S308 and its subsequent steps, which will not be repeated here. In this embodiment, the motor current data acquisition system can filter out the noise and false peaks and troughs in the current ripple generated when the window motor is running, and obtain the real peak value, thereby improving the accuracy of the collected real peak value.

[0092] The motor current data acquisition system 1 in the above embodiment of the present invention can filter out the clutter and false peaks and valleys in the current ripple generated when the window motor 11 is running ( Figure 2 ] is a sine diagram of the current ripple of the window motor 11 in the prior art, Figure 2 The circled part contains clutter and false peaks and valleys), and only the effective real peak value and real valley value of the motor are obtained (the present invention can be based on Figure 3All the real peak values ​​A and real trough values ​​B shown in the figure form the current ripple V graph of the window motor 11, in which the clutter has been completely filtered out), which improves the accuracy of the collected real peak values ​​and real trough values ​​(compared with the prior art, the motor current data acquisition system 1 of the present invention does not need to use the peak pulse width difference and the trough pulse width difference to determine the peak and trough of the current ripple of the window motor 11, which reduces the irregularity of the current ripple of the window motor 11 due to load changes, thereby improving stability and accuracy), and according to the collected real peak values ​​and real trough values, the By calculating the operating status of the window motor 11 and the current lifting position of the automobile window 2, the problems of false anti-pinch and non-anti-pinch in the implementation of the automobile window 2 function caused by inaccurate positioning of the automobile window 2 can be reduced, the stability and accuracy of the anti-pinch operation of the automobile window 2 can be enhanced, the safety performance of the automobile can be increased, and the cost of implementing the anti-pinch function of the automobile window 2 can be reduced, so that the anti-pinch function of the automobile window 2 is not only a configuration available on high-end models, but is applicable to all models, thereby increasing the universality of the window anti-pinch function, improving the user's driving experience, and improving the safety performance and level of the automobile.

[0093] Moreover, the controller 12 of the present invention only needs to collect the real peak value and the real trough value (filter out the clutter), which can improve the utilization efficiency of the data collected by the controller 12, and the controller 12 does not need to store all current ripple values ​​in the process of collecting the real peak value and the real trough value, and the amount of calculated data is small, and the storage space occupied is small, which improves the operation efficiency and data collection efficiency. It should be understood that the size of the sequence number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0094] The present invention also provides a car, comprising the above-mentioned motor current data acquisition system 1. The motor current data acquisition system 1 comprises a window motor 11 connected to a car window 2 and used to control the lifting of the car window 2, and a controller 12 connected to the window motor 11; wherein the window motor 11 is used to control the lifting of the car window 2. The controller 12 can instruct the window motor 11 to control the lifting of the car window 2 after the car is started; it can be understood that ripple is a phenomenon caused by the voltage fluctuation of a DC stable power supply (a DC stable power supply is generally formed by an AC power supply through rectification and voltage stabilization, etc.), and the current ripple value of the motor current is any point on the fingerprint wave, and each current ripple value can represent the load size when the current window motor 11 drives the car window 2 to lift. After the controller 12 determines the true peak value and the true trough value according to the current ripple value obtained by the acquisition, the anti-pinch operation of the car window 2 can be performed according to the above-mentioned true peak value and true trough value. Among them, the anti-pinch operation of the car window 2 may include controlling the window motor 11 to stop driving the car window 2 to move; it also includes controlling the window motor 11 not to stop driving the car window 2 to move, but to continue to drive the car window 2 to rise; it may also include controlling the window motor 11 to reverse, etc. The above-mentioned anti-pinch operation of the car window 2 can be determined according to the specific real peak value and real trough value, and the anti-pinch operation of the car window 2 corresponding to different real peak values ​​and real trough values ​​may be the same or different.

[0095] For the specific definition of the controller 12, please refer to the definition of the motor current data acquisition system 1 above, which will not be repeated here. Each module in the above controller 12 can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0096] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A motor current data acquisition system, characterized in that: It includes a window motor connected to a car window and used to control the lifting and lowering of the car window, and a controller connected to the window motor; The controller is configured to: When the window motor drives the automobile window to be raised or lowered, the current ripple value of the motor current of the window motor is collected in real time, and the pre-wave peak value and the pre-wave valley value are determined according to the current ripple value; Obtaining a preset ripple effective range value, and determining a real valley value according to the pre-valley value, the preset ripple effective range value, and the current ripple value; Determine the actual peak value according to the pre-peak value, the preset ripple effective range value and the current ripple value; The controller is also configured to: Assigning the first current ripple value collected after receiving the real peak and valley collection instruction to the real-time ripple value, and assigning the last current ripple value collected before the real-time ripple value to the temporary ripple value; When the real-time ripple value is less than the temporary ripple value, determining that the current current ripple is in a downward trend, and obtaining a first difference between the temporary ripple value and the pre-valley value; Obtaining a preset ripple effective range value, and when the first difference is greater than the preset ripple effective range value, determining the pre-valley value as the real valley value and storing it, and increasing the number of real valleys by one; The controller is also configured to: After the actual trough number is increased by one, if it is determined according to the preset rise and fall mark that the current current ripple has not yet reached its downward trend, the preset trough assignment operation is performed to reassign the real-time ripple value and the temporary trough value; The preset valley value assignment operation includes: assigning the current real-time ripple value to a temporary valley value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; Determine whether the latest assigned real-time ripple value is less than or equal to the latest assigned temporary trough value; If the latest assigned real-time ripple value is greater than the latest assigned temporary trough value, it is determined that the current current ripple switches from a downward trend to an upward trend, the current temporary trough value is assigned to the pre-trough value, and a sixth difference between the pre-peak value and the latest assigned temporary trough value is obtained; When the sixth difference is greater than the preset ripple effective range value, the pre-peak value is determined as the real peak value and stored, and the number of real peaks is increased by one; The controller is also configured to: When the window motor starts to drive the automobile window to move up and down, confirming that the initial collection phase has begun and collecting the current ripple value in real time, and determining the current peak value and the current valley value according to the current ripple value; A real wave peak and valley acquisition instruction is received, and the last current wave peak value and the last current wave valley value determined in the initial acquisition phase are recorded as the pre-wave peak value and the pre-wave valley value, respectively.

2. The motor current data acquisition system according to claim 1, characterized in that: The controller is also configured to: When the real-time ripple value is greater than or equal to the temporary ripple value, determining that the current current ripple is in an upward trend, and performing a preset peak value assignment operation to reassign the real-time ripple value and the temporary peak value; The preset peak value assignment operation includes: assigning the current real-time ripple value to the temporary peak value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; When the latest assigned real-time ripple value is less than the temporary peak value, determining that the current current ripple switches from an upward trend to a downward trend, and obtaining a second difference between the temporary peak value and the pre-trough value; When the second difference is greater than the preset ripple effective range value, the pre-valley value is determined as the real valley value and stored, and the number of real valleys is increased by one.

3. The motor current data acquisition system according to claim 1, characterized in that: The controller is also configured to: After obtaining the preset ripple effective range value, when the first difference value is less than or equal to the preset ripple effective range value, determining whether the real-time ripple value is less than or equal to the predicted valley value; If the real-time ripple value is less than or equal to the pre-valley value, performing a preset valley assignment operation to re-assign the real-time ripple value and the temporary valley value; The preset valley value assignment operation includes: assigning the current real-time ripple value to a temporary valley value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; When the latest assigned real-time ripple value is less than or equal to the temporary valley value, determining that the current current ripple is still in a downward trend, and returning to continue to execute the preset valley assignment operation to re-assign the real-time ripple value and the temporary valley value; When the latest assigned real-time ripple value is greater than the temporary valley value, it is determined that the current current ripple switches from a downward trend to an upward trend, the current temporary valley value is assigned to the pre-valley value, and a preset peak assignment operation is performed to reassign the real-time ripple value and the temporary peak value; the preset peak assignment operation includes: assigning the current real-time ripple value to the temporary peak value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; When the latest assigned real-time ripple value is less than the temporary peak value, determining that the current current ripple switches from an upward trend to a downward trend, and obtaining a third difference between the temporary peak value and the latest assigned pre-valley value; When the third difference is greater than the preset ripple effective range value, the most recently assigned pre-valley value is determined as the real valley value and stored, and the number of real valleys is increased by one.

4. The motor current data acquisition system as claimed in claim 3, characterized in that: The controller is also configured to: After determining whether the real-time ripple value is less than or equal to the pre-trough value, if the real-time ripple value is greater than the pre-trough value, determining whether the real-time ripple value is less than or equal to the temporary trough value; When the real-time ripple value is less than or equal to the temporary valley value, determining that the current current ripple is still in a downward trend, and performing a preset valley assignment operation to reassign the real-time ripple value and the temporary valley value; When the latest assigned real-time ripple value is less than the pre-valley value, determining whether the latest assigned real-time ripple value is less than or equal to the latest assigned temporary valley value; If the latest assigned real-time ripple value is greater than the latest assigned temporary trough value, it is determined that the current current ripple switches from a downward trend to an upward trend; If the latest assigned real-time ripple value is less than or equal to the latest assigned temporary valley value, it is determined that the current current ripple is still in a downward trend, and the preset valley assignment operation is returned to re-assign the real-time ripple value and the temporary valley value until it is determined that the current current ripple switches from a downward trend to an upward trend; After determining that the current current ripple switches from a downward trend to an upward trend, assigning the current temporary valley value to the pre-valley value, and performing a preset peak value assignment operation to reassign the real-time ripple value and the temporary peak value; When the latest assigned real-time ripple value is less than the temporary peak value, determining that the current current ripple switches from an upward trend to a downward trend, and obtaining a fourth difference between the temporary peak value and the latest assigned pre-valley value; When the fourth difference is greater than the preset ripple effective range value, the most recently assigned pre-valley value is determined as the real valley value and stored, and the number of real valleys is increased by one.

5. The motor current data acquisition system as claimed in claim 4, characterized in that: The controller is also configured to: After determining whether the real-time ripple value is less than or equal to the temporary trough value, if the real-time ripple value is greater than the temporary trough value, determining that the current current ripple is switched from a downward trend to an upward trend, and performing a preset peak value assignment operation to reassign the real-time ripple value and the temporary peak value; When the latest assigned real-time ripple value is less than the latest assigned temporary peak value, determining that the current current ripple switches from an upward trend to a downward trend, and obtaining a fifth difference between the temporary peak value and the pre-trough value; When the fifth difference is greater than the preset ripple effective range value, the pre-valley value is determined as the real valley value and stored, and the number of real valleys is increased by one.

6. The motor current data acquisition system according to claim 1, characterized in that: The controller is also configured to: After the number of real troughs is increased by one, if it is determined according to the preset rise and fall mark that the downward trend of the current ripple is completed, it is determined that the current current ripple switches from a downward trend to an upward trend, and a preset peak assignment operation is performed to reassign the real-time ripple value and the temporary peak value; The preset peak value assignment operation includes: assigning the current real-time ripple value to the temporary peak value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; When the latest assigned real-time ripple value is less than the temporary peak value, determining that the current current ripple switches from an upward trend to a downward trend, and obtaining a seventh difference between the temporary peak value and the pre-trough value; When the seventh difference is greater than the preset ripple effective range value, the pre-valley value is determined as the real valley value and stored, and the number of real valleys is increased by one.

7. The motor current data acquisition system according to claim 1, characterized in that: The controller is also configured to: When the sixth difference is less than or equal to the preset ripple effective range value, determining whether the real-time ripple value is greater than or equal to the pre-ripple peak value; If the real-time ripple value is greater than or equal to the pre-peak value, a preset peak value assignment operation is performed to re-assign the real-time ripple value and the temporary peak value; The preset peak value assignment operation includes: assigning the current real-time ripple value to the temporary peak value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; When the latest assigned real-time ripple value is greater than or equal to the temporary peak value, determining that the current current ripple is still in an upward trend, and returning to continue to execute the preset peak value assignment operation to re-assign the real-time ripple value and the temporary peak value; When the latest assigned real-time ripple value is less than the temporary trough value, determining that the current current ripple switches from an upward trend to a downward trend, assigning the current temporary peak value to the pre-peak value, and performing a preset trough assignment operation to reassign the real-time ripple value and the temporary trough value; When the latest assigned real-time ripple value is greater than the latest assigned temporary trough value, determining that the current current ripple switches from a downward trend to an upward trend, and obtaining an eighth difference between the latest assigned pre-wave peak value and the latest assigned temporary trough value; When the eighth difference is greater than the preset ripple effective range value, the newly assigned pre-peak value is determined as the real peak value and stored, and the number of real peaks is increased by one.

8. The motor current data acquisition system as claimed in claim 7, characterized in that: The controller is also configured to: After determining whether the real-time ripple value is greater than or equal to the pre-wave peak value, if the real-time ripple value is less than the pre-wave peak value, determining whether the real-time ripple value is greater than or equal to the latest assigned temporary trough value; When the real-time ripple value is greater than or equal to the temporary valley value, determining that the current current ripple is still in an upward trend, and performing a preset peak value assignment operation to reassign the real-time ripple value and the temporary peak value; When the latest assigned real-time ripple value is greater than the pre-wave peak value, determining whether the latest assigned real-time ripple value is greater than or equal to the latest assigned temporary wave peak value; If the latest assigned real-time ripple value is less than the latest assigned temporary peak value, it is determined that the current current ripple switches from an upward trend to a downward trend; If the latest assigned real-time ripple value is greater than or equal to the latest assigned temporary peak value, it is determined that the current current ripple is still in an upward trend, and the preset peak value assignment operation is returned to re-assign the real-time ripple value and the temporary peak value until it is determined that the current current ripple switches from an upward trend to a downward trend; After determining that the current current ripple switches from an upward trend to a downward trend, assigning the current temporary ripple value to the pre-wave peak value, and performing a preset trough assignment operation to reassign the real-time ripple value and the temporary trough value; When the latest assigned real-time ripple value is greater than the temporary trough value, determining that the current current ripple switches from a downward trend to an upward trend, and obtaining a ninth difference between the latest assigned pre-wave peak value and the latest assigned temporary trough value; When the ninth difference is greater than the preset ripple effective range value, the most recently assigned pre-peak value is determined as the real peak value and stored, and the number of real peaks is increased by one.

9. The motor current data acquisition system as claimed in claim 8, characterized in that: The controller is also configured to: After determining whether the real-time ripple value is greater than or equal to the latest assigned temporary valley value, if the real-time ripple value is less than the temporary valley value, determining that the current current ripple switches from an upward trend to a downward trend, and performing a preset valley assignment operation to reassign the real-time ripple value and the temporary valley value; When the latest assigned real-time ripple value is greater than the temporary trough value, determining that the current current ripple switches from a downward trend to an upward trend, and obtaining the tenth difference between the latest assigned pre-wave peak value and the latest assigned temporary trough value; When the tenth difference is greater than the preset ripple effective range value, the most recently assigned pre-peak value is determined as the real peak value and stored, and the number of real peaks is increased by one.

10. The motor current data acquisition system according to claim 1, characterized in that: The controller is also configured to: After the actual peak number is increased by one, if it is determined according to the preset rise and fall mark that the rising trend of the current ripple has not ended, the preset peak assignment operation is performed to reassign the real-time ripple value and the temporary peak value; The preset peak value assignment operation includes: assigning the current real-time ripple value to the temporary peak value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; Determine whether the latest assigned real-time ripple value is greater than or equal to the latest assigned temporary peak value; If the latest assigned real-time ripple value is less than the latest assigned temporary wave peak value, it is determined that the current current ripple switches from an upward trend to a downward trend, the current temporary wave peak value is assigned to the pre-wave peak value, and the eleventh difference between the latest assigned temporary wave peak value and the latest assigned pre-wave valley value is obtained; When the eleventh difference is greater than the preset ripple effective range value, the most recently assigned pre-valley value is determined as the real valley value and stored, and the number of real valleys is increased by one.

11. The motor current data acquisition system according to claim 10, characterized in that: The controller is also configured to: After the number of real peaks is increased by one, if it is determined according to the preset rise and fall mark that the rising trend of the current ripple is completed, it is determined that the current current ripple switches from an rising trend to a falling trend, and a preset trough assignment operation is performed to reassign the real-time ripple value and the temporary trough value; The preset valley value assignment operation includes: assigning the current real-time ripple value to a temporary valley value, and assigning the next current ripple value collected after the current real-time ripple value to the real-time ripple value; When the latest assigned real-time ripple value is greater than the temporary trough value, determining that the current current ripple switches from a downward trend to an upward trend, and obtaining a twelfth difference between the pre-wave peak value and the temporary trough value; When the twelfth difference is greater than the preset ripple effective range value, the pre-peak value is determined as the real peak value and stored, and the number of real peaks is increased by one.

12. A car, characterized in that: A motor current data acquisition system comprising any one of claims 1 to 11.

Citation Information

Patent Citations

  • Motion position determining method and device

    CN108132396A

  • Ripple counting filtering and peak detection method and system

    CN111293934A