Vehicle window position identification method and device, equipment and storage medium

Through current sampling and filtering processing, combined with the window position and operating status, the window position is identified, which solves the problem of difficult counting ripple when the motor stops or inertial operation, and improves the accuracy of window position recognition and the reliability of the system.

CN119266660AActive Publication Date: 2025-01-07DONGFENG MOTOR GRP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411340997.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2025-01-07
Estimated Expiration
2044-09-25

AI Technical Summary

Technical Problem

When the motor stops or is inertial, the current signal fluctuations caused by the reverse electromotive force make the ripple difficult to count, affecting the accuracy of position calculation, especially when the window does not completely fall, it may cause functional disorders and prevention. The clip fails.

Method used

The current signal of the window motor is obtained through the current sampling resistor, filter and period count, and the current window position is identified based on the initial window position and operating state. Counting strategies under different operating states are used to compensate for the inertia effect.

Benefits of technology

It improves the accuracy of window position recognition and system adaptability, ensures that the windows can be stopped safely and accurately under various working conditions, and enhances the reliability of the anti-clip function.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119266660A_ABST
    Figure CN119266660A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle window position identification method, device and equipment and a storage medium, and relates to the technical field of automobile electronic control, and the vehicle window position identification method comprises the following steps: obtaining an initial vehicle window position, and collecting a current signal of a vehicle window motor through a current sampling resistor; performing filtering and period counting on the current signal to obtain an initial ripple period number and a running state of the vehicle window motor; and recognizing the current vehicle window position according to the initial vehicle window position, the initial ripple cycle number and the running state. The vehicle window position identification precision is improved, the vehicle window position can be accurately identified, the adaptability and reliability of the system are enhanced, and it is ensured that the vehicle window can be safely and accurately stopped under various working conditions by effectively compensating the inertial effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automotive electronic control technology, and in particular to a vehicle window position recognition method, device, equipment and storage medium. Background Art

[0002] With the continuous development of automotive power window technology, the window anti-pinch function has become a key part of vehicle safety. The core is to accurately calculate the position of the window by identifying the ripples generated by the motor when it is running. However, during the movement of the window, the changes in the inertia and reverse electromotive force of the motor, especially when the window stops midway, make it difficult to identify the ripples. This makes the accuracy of window position identification and the reliability of the anti-pinch function challenging, and there is an urgent need to improve the accuracy of existing practices.

[0003] At present, the main method of window position recognition is to determine the window position by directly counting the number of ripples generated by the motor when it is running. In this method, when the motor is in a stable operating state, the ripple signal is more obvious and can accurately reflect the window position. However, when the motor stops driving but is still running due to inertia, the drastic change in back electromotive force makes the ripple signal difficult to identify, thus affecting the accuracy of the position calculation.

[0004] Although the existing approach can identify ripples when the motor is running stably, the current signal caused by the reverse electromotive force fluctuates violently during the motor stop or inertial operation stage, resulting in a small ripple volt value, making it difficult to accurately count the ripples. In addition, when the window is lowered to a non-bottom position, the ripple generated by the continuous movement of the motor cannot accurately reflect the window position, which may eventually cause the window function to become disordered and the anti-pinch function to fail. Therefore, the existing approach cannot effectively guarantee the accurate identification of the window position under various working conditions. Therefore, how to accurately identify the window position has become an urgent problem to be solved.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The purpose of the present application is to provide a vehicle window position recognition method, device, equipment and storage medium, aiming to solve the technical problem of how to accurately recognize the vehicle window position.

[0007] To achieve the above object, the present application proposes a vehicle window position recognition method, the method is applied to a vehicle window position recognition circuit, the vehicle window position recognition circuit comprises: a relay and a current sampling resistor, the relay is connected to the current sampling resistor, the relay is used to control the reverse rotation of the vehicle window motor, the method comprises:

[0008] Acquire the initial window position, and collect the current signal of the window motor through the current sampling resistor;

[0009] Filtering and counting the cycles of the current signal to obtain the initial ripple cycle number and the operating state of the window motor;

[0010] A current window position is identified according to the initial window position, the initial ripple cycle number, and the operating state.

[0011] In one embodiment, the step of identifying the current window position according to the initial window position, the initial ripple cycle number and the operating state comprises:

[0012] Determining a target window movement distance according to the operating state and the initial ripple cycle number;

[0013] The current window position is identified according to the target window movement distance and the initial window position.

[0014] In one embodiment, the current signal includes a current ripple signal, and the step of determining the target window moving distance according to the operating state and the initial ripple cycle number includes:

[0015] When the running state is a continuous driving state, obtaining a ripple cycle value, and determining a moving distance of the first window according to the initial ripple cycle number;

[0016] When the running state is the inertial running state, performing timing counting according to the ripple period value to determine the moving distance of the second window;

[0017] When the running state is the stop state, the timing counting is stopped, the current ripple signal is counted, and the moving distance of the third window is determined;

[0018] A target window moving distance is obtained according to the first window moving distance, the second window moving distance and the third window moving distance.

[0019] In one embodiment, the inertial running state includes an initial inertial running state and a deceleration inertial running state. When the running state is the inertial running state, the step of performing timing counting according to the ripple period value to determine the moving distance of the second window includes:

[0020] When the running state is the initial state of the inertia running, performing timing counting according to the ripple period value to determine the moving distance of the fourth window;

[0021] When the running state is the deceleration inertia running state, the timing counting is performed according to the ripple period value, the preset rising adjustment coefficient and the preset falling adjustment coefficient to obtain the fifth window moving distance;

[0022] The second window moving distance is obtained according to the fourth window moving distance and the fifth window moving distance.

[0023] In one embodiment, the step of performing the timing counting according to the ripple period value, the preset rising adjustment coefficient and the preset falling adjustment coefficient to obtain the fifth window moving distance comprises:

[0024] Obtaining a rising period value and a falling period value according to the ripple period value, a preset rising adjustment coefficient, and a preset falling adjustment coefficient;

[0025] When the window is raised, the timing counting is performed according to the rising cycle value to obtain the rising distance of the window;

[0026] When the window is lowered, the timing counting is performed according to the lowering cycle value to obtain the lowering distance of the window;

[0027] A fifth window moving distance is obtained according to the window raising distance and the window lowering distance.

[0028] In one embodiment, the step of filtering and counting the cycles of the current signal to obtain the initial ripple cycle number and the operating state of the window motor includes:

[0029] Filtering the current signal to extract a current ripple signal and a current voltage value signal;

[0030] Counting the cycles of the current ripple signal to obtain an initial ripple cycle number;

[0031] The operating state of the window motor is obtained according to the magnitude of the current voltage value in the current voltage value signal.

[0032] In one embodiment, the step of obtaining the operating state of the window motor according to the magnitude of the current voltage value in the current voltage value signal includes:

[0033] When the current voltage value is greater than a preset forward current threshold, determining that the operating state of the window motor is a continuous driving state;

[0034] When the current voltage value is less than a first preset negative current threshold, determining that the operating state of the window motor is an initial state of inertial operation;

[0035] When the current voltage value is greater than the first preset negative current threshold and the current voltage value is less than or equal to the second preset negative current threshold, determining that the operating state of the window motor is a deceleration inertia operating state;

[0036] When the rotation speed of the window motor is less than the preset speed and the current voltage is greater than or equal to the second preset negative current threshold, it is determined that the running state of the window motor is a stopped state.

[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle window position recognition device, the device comprising:

[0038] A data acquisition module, used to acquire an initial window position and collect a current signal of the window motor through the current sampling resistor;

[0039] A signal processing module, used for filtering and counting the cycles of the current signal to obtain the initial ripple cycle number and the operating state of the window motor;

[0040] A position identification module is used to identify the current vehicle window position according to the initial vehicle window position, the initial ripple cycle number and the operating state.

[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle window position recognition device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle window position recognition method as described above.

[0042] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle window position recognition method described above are implemented.

[0043] One or more technical solutions proposed in this application have at least the following technical effects:

[0044] The initial window position is obtained, and the current signal of the window motor is collected through the current sampling resistor; the current signal is filtered and cycle counted to obtain the initial ripple cycle number and the operating state of the window motor; the current window position is identified according to the initial window position, the initial ripple cycle number and the operating state. First, the system determines the initial state of the window and the current intensity of the motor by obtaining the initial position of the window and collecting the current signal of the window motor using the current sampling resistor. Next, the collected current signal is filtered to remove noise and interference, and the current ripple signal and the current voltage value signal are extracted, and the current ripple signal is cycle counted to obtain the initial ripple cycle number and the operating state of the window motor. This processing step can accurately identify the working state of the motor, such as continuous drive or inertial operation. Finally, the system combines the initial window position, the initial ripple cycle number and the operating state of the motor to calculate the current window position. The present application not only improves the accuracy of window position recognition and can accurately identify the window position, but also enhances the adaptability and reliability of the system, and ensures that the window can stop safely and accurately under various working conditions by effectively compensating for the inertia effect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0047] Figure 1 A flow chart of the first embodiment of the vehicle window position recognition method of the present application;

[0048] Figure 2 A schematic diagram of a vehicle window position recognition circuit provided in Embodiment 1 of the vehicle window position recognition method of the present application;

[0049] Figure 3 A schematic diagram of ripple counting position compensation provided in Embodiment 1 of the vehicle window position recognition method of the present application;

[0050] Figure 4 A flow chart of the second embodiment of the vehicle window position recognition method provided in this application;

[0051] Figure 5 This is a schematic diagram of the module structure of the vehicle window position recognition device according to an embodiment of the present application;

[0052] Figure 6Schematic diagram of the device structure of the hardware operating environment involved in the vehicle window position recognition method in the embodiment of the present application.

[0053] Description of Figure Numbers:

[0054] Relay K1; first port 1; second port 2; third port 3; fourth port 4; fifth port 5; sixth port 6; seventh port 7; eighth port 8; ninth port 9; tenth port 10.

[0055] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0056] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0057] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0058] With the advancement of automotive power window technology, the window anti-pinch function has become crucial, and the key lies in accurately identifying the ripple when the motor is running to calculate the window position. However, the inertia and reverse electromotive force changes of the motor, especially when the window is stopped, make the ripple difficult to identify, affecting the accuracy of position detection and the reliability of the anti-pinch function. At present, the method of determining the position by counting ripples is effective when the motor is stable, but when the motor stops or runs due to inertia, the current signal fluctuation caused by the reverse electromotive force makes it difficult to count the ripples, especially when the window is not fully lowered, which may cause the window function to malfunction and the anti-pinch failure, so it is necessary to improve the technical accuracy to adapt to different working conditions.

[0059] The main solution of the embodiment of the present application is: first, the current signal of the window motor is obtained through the current sampling resistor to determine the initial position of the window and the motor current intensity, then the signal is filtered to extract the current ripple and volt value signal, and the cycle is counted to identify the working status of the motor, and finally the current window position is calculated based on this information.

[0060] It should be noted that the execution subject of the embodiment of the present application may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a window position recognition circuit, a window position recognition system, etc. The following takes the window position recognition system as an example to illustrate this embodiment and the following embodiments.

[0061] Based on this, the embodiment of the present application provides a method for identifying the position of a vehicle window, referring to Figure 1 , Figure 1This is a flow chart of the first embodiment of the vehicle window position recognition method of the present application.

[0062] In this embodiment, the method is applied to the window position recognition circuit, please refer to Figure 2 , Figure 2A schematic diagram of a window position recognition circuit provided for the first embodiment of the window position recognition method of the present application, wherein the window position recognition circuit comprises: a relay K1 and a current sampling resistor R, wherein the relay K1 is connected to the current sampling resistor R, wherein the relay K1 is used to control the reverse rotation of the window motor, wherein the first port (port 1) and the seventh port (port 7) of the relay K1 are connected to the relay driver chip, wherein the second port and the sixth port of the relay are connected to the relay coil power supply, wherein the fifth port and the tenth port of the relay are connected to the positive and negative poles of the window motor, wherein the third port and the eighth port of the relay are connected to the positive pole of the relay, and the fourth port and the ninth port of the relay are connected to the negative pole of the relay. The figure shows the detailed layout and component connection relationship of the window position recognition circuit. In the circuit, C830 and C835 are 47nF capacitors used for filtering and stabilizing the power supply. PWR_KL30_Window1 is the power input of the window motor, and the forward and reverse rotation of the motor is controlled by the K1 relay. R1068 and R1080 are 5mR / 1W resistors for current detection, connected to the current sampling resistors respectively, and the measurement ports are Current_1 and Current_2. TP510 and TP517 are test points for detecting current signals. The circuit also includes two H-bridge drivers of ULQ2003-3 and ULQ2003-4, which control the rise and fall of the window respectively. WIN_GND is the ground terminal of the window motor. In the circuit, relay K1 is connected to the relay coil power supply through port 2 (second port) and port 6 (sixth port) to provide drive for the window motor. Port 5 (fifth port) and port 10 (tenth port) are the output terminals of the relay, connected to the positive and negative terminals of the window motor respectively. Port 3 (third port) and port 8 (eighth port) are the positive poles of the relay, while port 4 (fourth port) and port 9 (ninth port) are the negative poles of the relay. At the front end of port 4 and port 9, 5mR / 1W current sampling resistors R1068 and R1080 are connected respectively to measure the motor current and transmit the current signal to the microcontroller (MCU) for processing through the measurement ports Current_1 and Current_2. Capacitors C830 and C835, both 47nF, are connected between the power supply and the ground respectively to play the role of filtering and stabilizing the power supply. The microcontroller (MCU) collects the motor current signal through Current_1 and Current_2, and extracts the current ripple signal and current voltage value signal after signal filtering. The current ripple signal is a sine waveform, and its period can be calculated in real time, while the size of the current voltage value signal is used to judge the running state of the motor so as to use the corresponding position compensation strategy. In addition, the circuit also includes two ULQ2003-3 and ULQ2003-4 H-bridge drivers, which are used to control the rise and fall of the car window respectively.These drivers are connected to the window motor through the H-Bridge RL Window UP OUT and H-Bridge RL Window DOWN OUT ports to achieve forward and reverse control of the motor. WIN_GND is the ground terminal of the window motor to ensure stable operation of the circuit. The entire circuit design aims to improve the reliability of the window ripple anti-pinch function and the accuracy of the window position through precise current signal acquisition and processing combined with the ripple counting position compensation method.

[0063] The vehicle window position recognition method comprises steps S10 to S30:

[0064] Step S10, obtaining an initial window position, and collecting a current signal of the window motor through the current sampling resistor;

[0065] It should be noted that the initial window position refers to the specific physical position of the window when the system is started or the operation begins. This can be the position of the window being completely closed, partially opened or fully opened. Usually, the system will obtain this initial position through previous operation data or position sensors to ensure that subsequent window operations can be carried out accurately. The current sampling resistor is a low-resistance resistor used to measure current. When current passes through the resistor, a small voltage will be generated at both ends. By measuring the voltage, the current value flowing through the motor can be indirectly calculated. This current sampling resistor is one of the key components used to obtain the current signal of the window motor, and is usually connected to the corresponding position of the motor circuit. The window motor refers to the electric motor that drives the window to rise and fall. It converts electrical energy into mechanical energy and realizes the rise or fall of the window through mechanical connection with the window. The window motor generates current signals during operation. The change of current is closely related to the load of the motor (such as the movement state of the window), so these signals can be used to determine the position or movement state of the window. The current signal refers to the characteristic of the current flowing through the circuit when the window motor is running. This signal reflects the working state of the motor (such as acceleration, deceleration or stop). By analyzing the changes in these currents, the motor operation and the position of the window can be determined. These signals are collected and processed through current sampling resistors to achieve accurate window position control.

[0066] It is understandable that first, the system needs to determine the current physical position of the window, which is called the initial window position. It is usually obtained through a pre-set sensor or historical operating data to ensure that the initial state of the window is known, such as whether the window is fully closed, partially open, or fully open. Next, the system collects the current signal of the window motor through the current sampling resistor installed in the window motor circuit. The current sampling resistor is a low-resistance resistor that generates a voltage proportional to the current intensity when current passes through it. The system measures the voltage and then calculates the actual current value of the motor. The current signal reflects the working state of the motor, including the motor speed, load and other information. These signals can be used to further analyze the movement state of the window, such as acceleration, deceleration, and stop. The core of this step is to monitor and calculate the window position in real time through the change of the current signal, so as to provide accurate data information for subsequent control.

[0067] Step S20, filtering and cycle counting the current signal to obtain an initial ripple cycle number and an operating state of the window motor;

[0068] It should be noted that filtering refers to processing the collected current signal to remove noise and interference signals. The current signal may contain clutter or noise introduced by external electromagnetic interference, unstable motor operation and other factors during the actual collection process. Through filtering, the useful part of the current signal can be extracted, especially the ripple signal related to the motor movement. Filtering technology can usually be divided into low-pass filtering, high-pass filtering, band-pass filtering, etc., and the appropriate filter is selected according to the frequency characteristics of the signal. Cycle counting refers to analyzing the ripple in the current signal and measuring the number of ripple cycles. Ripple is a periodic change of the current signal. By counting the rising and falling cycles of the ripple, it can be determined how many complete ripple cycles are generated during the operation of the motor. This counting process helps to evaluate the movement state of the motor, especially to judge the speed or position of the motor by the change in the number of cycles. The initial ripple cycle number refers to the number of ripples recorded in the initial stage of motor operation. This value is usually obtained after the motor is started or the system is reset, and represents the number of ripples generated by the motor when the window starts to move. The initial number of cycles can be used to evaluate the initial motion state of the window and serve as a benchmark for subsequent control algorithms. The operating state refers to the current working condition of the window motor, including whether the motor is accelerating, decelerating, running at a constant speed, or is stopped. The operating state of the motor is usually determined by analyzing the characteristics of the current signal, such as current size, ripple period, and waveform changes. For example, the frequency and amplitude of the current signal can reflect the speed and load of the motor, and then determine whether the window is in different operating states such as rising, falling, or stopped.

[0069] It is understandable that first, the system will collect the current signal of the window motor and filter it, that is, remove the noise and interference in the signal through the filter, and retain the key signals related to the operation of the motor, especially the ripple signal generated by the motor. The ripple signal is a periodic fluctuation generated when the motor is running, reflecting the operating state of the motor. After filtering, the system counts the cycle of the ripple signal, that is, the number of ripples is counted by detecting the rising and falling cycles of the ripple. The initial ripple cycle number refers to the first complete ripple cycle number recorded by the system when the motor starts. This data provides a reference for judging the starting movement of the window. By analyzing the changes in these ripple cycle numbers and current signals, the system can further infer the operating state of the window motor, such as whether the motor is in acceleration, deceleration, constant speed or stop state. This process helps to accurately grasp the current working condition of the motor, thereby providing support for precise control of the window position.

[0070] As an example, the steps of filtering and counting cycles of the current signal to obtain an initial ripple cycle number and the operating status of the window motor include: filtering the current signal to extract a current ripple signal and a current volt value signal; counting cycles of the current ripple signal to obtain an initial ripple cycle number; and obtaining the operating status of the window motor based on the magnitude of the current volt value in the current volt value signal.

[0071] The current ripple signal refers to the periodic current fluctuations generated by the window motor when it is running. This fluctuation is a sinusoidal or quasi-sinusoidal fluctuation in the current signal during the operation of the motor, especially when the motor load changes. The current ripple reflects the rotation speed and load status of the motor. By analyzing the frequency and period of the ripple signal, the movement status of the motor and the displacement of the window can be determined. The current volt value signal refers to the part of the current signal that reflects the voltage intensity. It is a voltage signal measured by a current sampling resistor and indirectly represents the current size when the window motor is running. The current volt value signal can provide more information about the motor load and operating status, helping the system to identify whether the motor is accelerating, decelerating, or in an inertial motion state. The current volt value is the voltage amplitude in the current signal, which reflects the strength of the current when the window motor is working. Usually, the current volt value changes with the changes in the motor load and operating status. For example, when the motor accelerates, the current volt value is large, while when the motor decelerates or inertial motion, the current volt value will decrease. Through the size of the current volt value, the system can identify the working status of the motor, such as whether it is in normal operation, stopped, or entering a reverse electromotive force state (that is, the motor is no longer driven but is still running due to inertia).

[0072] First, the system processes the collected current signal, removes noise and irrelevant interference through filtering, and retains the key signals related to the operating status of the window motor. After filtering, the current signal is decomposed into two parts: the current ripple signal and the current voltage value signal. The current ripple signal is a periodic fluctuation generated by the motor during operation, reflecting the changes in the motor speed and load. Next, the system counts the cycle of the current ripple signal, that is, by detecting each complete fluctuation cycle, the number of initial ripple cycles generated after the motor is started is calculated. This data is used to determine the initial motion state of the window. In addition, the system also judges the operating state of the motor based on the current voltage value in the current voltage value signal. The current voltage value reflects the strength of the motor current. When the current voltage value is large, it means that the motor is in a high load or acceleration state, and when the voltage value is small, the motor may be in a deceleration or inertial motion state. With this information, the system can accurately evaluate the current working condition of the window motor.

[0073] As an example, the step of obtaining the operating state of the window motor according to the magnitude of the current volt value in the current volt value signal includes: when the current volt value is greater than a preset positive current threshold, determining that the operating state of the window motor is a continuous drive state; when the current volt value is less than a first preset negative current threshold, determining that the operating state of the window motor is an initial inertial operation state; when the current volt value is greater than the first preset negative current threshold and the current volt value is less than or equal to the second preset negative current threshold, determining that the operating state of the window motor is a deceleration inertial operation state; when the rotation speed of the window motor is less than a preset speed and the current volt value is greater than or equal to the second preset negative current threshold, determining that the operating state of the window motor is a stopped state.

[0074] The preset positive current threshold refers to the current intensity threshold when the motor is operating normally. For example, assume that the preset positive current threshold is +1000mV (millivolts). When the current volt value is greater than this value, it means that the window motor is actively driving the window to move, which is usually used for the continuous driving state of the window rising or falling. The continuous driving state refers to the situation where the current volt value is greater than the preset positive current threshold, which means that the window motor is continuously driving the window to move, the motor is in a normal working state, and the current signal is stable and sufficient to support the lifting and lowering operation of the window. For example, when the current volt value is greater than +1000mV, the motor is in a continuous driving state. The first preset negative current threshold refers to a low value threshold in the current signal, which is used to identify the motor from the driving state to the initial state of inertial operation. For example, assume that the first preset negative current threshold is -300mV (the negative sign indicates the negative direction of the current, but does not indicate the positive or negative value, and does not affect the size). When the current volt value is less than -300mV, the state of the motor is considered to be the initial state of inertial operation. The initial state of inertial operation refers to the situation where the current volt value is greater than the first preset negative current threshold but less than or equal to the second preset negative current threshold. At this time, the motor has stopped actively driving, but due to inertia, the motor is still running slowly. The second preset negative current threshold refers to a lower current value, which is used to distinguish the deceleration inertial operation state of the motor. For example, assuming that the second preset negative current threshold is -600mV. When the current volt value is greater than -300mV and less than or equal to -1300mV, the state of the motor is considered to be a deceleration inertial operation state. The deceleration inertial operation state refers to the situation where the current volt value is greater than the first preset negative current threshold and less than or equal to the second preset negative current threshold. This means that during the inertial operation process, the rotation speed of the motor has been significantly reduced, and the current signal has also been greatly reduced. For example, when the current volt value is between -300mV and -1300mV, the motor is in a deceleration inertial operation state. The rotation speed refers to the rotation speed of the window motor, usually expressed in revolutions per minute (RPM). It reflects the rotation frequency of the motor and directly affects the lifting and lowering speed of the window. The preset speed refers to the set speed threshold of the window motor. For example, assume that the preset speed is 50RPM. When the actual rotation speed of the motor is lower than this preset speed, it means that the motor may be close to a stopped state. The stopped state refers to the situation when the rotation speed of the window motor is lower than the preset speed, and the current volt value is greater than or equal to the second preset negative current threshold (due to the running resistance, the motor rotation will eventually tend to stop. At this time, the reverse electromotive force will also gradually weaken, and the current volt value will increase). For example, when the current volt value is greater than or equal to -1300mV and the motor speed is lower than 50RPM, the motor almost stops running and enters a stopped state. In this state, the system will stop using the deceleration inertia operation compensation and switch back to using the ripple signal for position counting.

[0075] First, when the current volt value is greater than the preset positive current threshold value (e.g., +1200mV), the operating state of the window motor is determined to be a continuous drive state, at which the motor is actively driving the window to move. Second, when the current volt value is less than the first preset negative current threshold value (e.g., -200mV), the operating state of the window motor is determined to be an initial inertial operation state, at which the motor has stopped actively driving, but is still rotating slowly due to inertia. Next, when the current volt value is greater than the first preset negative current threshold value but less than or equal to the second preset negative current threshold value (e.g., -1000mV), the state of the motor is determined to be a deceleration inertial operation state, the motor speed is decreasing, and the current signal is low. Finally, when the rotation speed of the motor is less than the preset speed (e.g., 50RPM), and the current volt value is greater than or equal to the second preset negative current threshold value (e.g., -1500mV), the operating state of the motor is determined to be a stop state, at which the motor is almost stopped, and the current signal may be high, indicating that the motor is close to stopping.

[0076] Please refer to Figure 3 , Figure 3The ripple count position compensation schematic diagram provided for the first embodiment of the window position identification method of the present application shows the dynamic changes of the ripple count position compensation during the window lifting and lowering process. In the figure, the red curve represents the current volt value, which changes as the window is raised and lowered; the dark blue wavy line represents the ripple curve, which reflects the current ripple generated when the motor is running; the light blue square wave represents the window position count identified by the software compensation, and each square wave cycle represents an increase in the window position count by one. Different SimState states are also marked in the figure, such as SimState0 (continuous drive state), SimState1 (initial inertial operation state), SimState2 (deceleration inertial operation state) and SimState3 (stop state), which reflect the working conditions of the window motor in different operation stages. In SimState0, the window motor is continuously driven, the current output is stable, and the position count is performed using ripples. In SimState1, the motor drive is disconnected after the window reaches the expected position, and the reverse electromotive force is about to be generated. The last ripple cycle value in SimState0 is used for timing counting. In SimState2, the motor continues to rotate due to inertia, but the speed gradually decreases, and the ripple signal is unavailable. The last ripple cycle value in SimState0 continues to be used, but the cycle length needs to be adjusted according to the speed decrease. In SimState3, the motor rotation tends to stop, the reverse electromotive force weakens, and when the current voltage value increases to a certain extent, the compensation count of SimState2 is terminated and switched back to the ripple recognition count. The entire figure describes in detail the working principle of the ripple counting position recognition and compensation method when the window lifting stops midway through the changes in the current voltage value and the ripple curve, as well as the counting methods in different SimState states.

[0077] Step S30, identifying the current window position according to the initial window position, the initial ripple cycle number and the operating state.

[0078] It should be noted that the initial window position is the window position recorded by the system before the calculation begins. This can be the actual position of the window when it starts, such as fully closed, partially open, or fully open. The initial ripple cycle number is the number of current ripple cycles recorded by the window motor in the initial state. It reflects the movement state of the window in the initial position and serves as a reference value for subsequent position calculations. The operating state is the state of the motor during the actual operation of the window, including the continuous drive state, the initial inertial operation state, the deceleration inertial operation state, or the stopped state. The operating state affects the movement mode of the motor, thereby affecting the window position calculation.

[0079] It is understandable that in this step, the current window position is identified by comprehensively utilizing the initial window position, the initial ripple cycle number, and the operating state. First, the system records the initial position of the window, that is, the actual physical position of the window at the beginning, such as fully closed or partially open. Next, the system records the initial ripple cycle number, that is, the number of current ripple cycles of the window motor in the initial state, which provides benchmark data for calculating the window movement. During the operation of the window, the operating state is analyzed based on the real-time collected current signal, including continuous drive, initial inertial operation, deceleration inertial operation, or stop state. The system adjusts the calculation strategy according to different operating states, such as relying on ripple counts during continuous drive, and using previous ripple cycles for position compensation during inertial operation. With this information, the system can accurately calculate the current position of the window, that is, the actual position of the window after passing through various states during actual operation, thereby ensuring the accuracy of the window position and the reliability of operation.

[0080] This embodiment provides a method for identifying the position of a vehicle window, which obtains the initial position of the vehicle window, and collects the current signal of the vehicle window motor through the current sampling resistor; the current signal is filtered and cycle counted to obtain the initial ripple cycle number and the operating state of the vehicle window motor; the current position of the vehicle window is identified according to the initial vehicle window position, the initial ripple cycle number and the operating state. First, the system determines the initial state of the vehicle window and the current intensity of the motor by obtaining the initial position of the vehicle window and collecting the current signal of the vehicle window motor using the current sampling resistor. Next, the collected current signal is filtered to remove noise and interference, and the current ripple signal and the current voltage value signal are extracted, and the current ripple signal is cycle counted to obtain the initial ripple cycle number and the operating state of the vehicle window motor. This processing step can accurately identify the working state of the motor, such as continuous drive or inertial operation. Finally, the system combines the initial window position, the initial ripple cycle number and the operating state of the motor to calculate the current window position. This embodiment not only improves the accuracy of window position recognition and can accurately identify the window position, but also enhances the adaptability and reliability of the system, and ensures that the window can stop safely and accurately under various working conditions by effectively compensating for the inertia effect.

[0081] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 4 , Figure 4 This is a flow chart of the second embodiment of the vehicle window position recognition method of the present application. Step S30 of the vehicle window position recognition method includes steps S31 to S32:

[0082] Step S31, determining a target window moving distance according to the operating state and the initial ripple cycle number;

[0083] It should be noted that the target window movement distance refers to the actual movement distance of the window from its initial position to the current target position. This is the displacement achieved by the window under the drive of the motor, and is usually used to adjust the exact position of the window and ensure the normal operation of the window function.

[0084] It can be understood that based on the operating state of the window motor and the initial ripple cycle number, the system can calculate the moving distance of the target window. First, the operating state (such as continuous drive, inertial operation, deceleration, etc.) affects the movement pattern and speed of the window, so the system needs to adjust the calculation method according to different states. Next, the initial ripple cycle number provides the baseline data of the motor in the initial stage, which helps to determine the position baseline of the window at the beginning of operation. Combining these two, the system will calculate the actual distance the window moves from the initial position to the target position based on the actual operation of the motor (such as acceleration, deceleration or inertial movement) and the initial ripple cycle data. This calculation ensures that the window can stay in a precise position, thereby achieving reliable window control and operation.

[0085] As an example, the current signal includes a current ripple signal, and the step of determining the target window movement distance according to the operating state and the initial ripple cycle number includes: when the operating state is a continuous driving state, obtaining a ripple cycle value, and determining the first window movement distance according to the initial ripple cycle number; when the operating state is an inertial operating state, performing timed counting according to the ripple cycle value to determine the second window movement distance; when the operating state is a stopped state, stopping the timed counting, counting the current ripple signal, and determining the third window movement distance; and obtaining the target window movement distance according to the first window movement distance, the second window movement distance, and the third window movement distance.

[0086] The ripple cycle value refers to the time length of a complete cycle of the current ripple signal, which is determined by analyzing the current ripple signal of the motor under a specific operating state. The ripple cycle value reflects the periodic fluctuation characteristics of the motor under continuous driving state, and provides benchmark data for calculating the window movement distance. The first window movement distance refers to the window displacement calculated based on the obtained ripple cycle value and the initial ripple cycle number when the motor is in a continuous driving state. In this state, the window movement distance is directly determined by the normal operation state of the motor and the change of the ripple signal. Timing counting refers to the calculation of the time interval based on the ripple cycle value when the window motor is in an inertial operation state. This method determines the actual displacement of the window by calculating the window movement within a certain time interval, compensating for the speed change caused by the motor inertia. The second window movement distance refers to the window displacement obtained by timing counting when the motor is in an inertial operation state. In this state, the motor is no longer actively driven, and the window movement depends on inertia, so it is necessary to calculate the movement distance based on the ripple cycle value. The third window movement distance refers to the window displacement obtained by counting the current ripple signal after the motor is stopped and the timing count is stopped. When the motor stops, the window position count directly depends on the cumulative value of the ripple signal, ensuring accurate measurement of the window position. The target window movement distance refers to the actual movement distance of the window from the initial position to the target position. It is the final displacement obtained by comprehensively calculating the first window movement distance, the second window movement distance and the third window movement distance. This calculation result ensures that the window can accurately reach the predetermined position in actual operation, supporting precise control and safe operation.

[0087] First, when the window motor is in a continuous driving state, the system obtains the ripple period value of the current ripple signal and calculates the first window movement distance based on the initial ripple period number. This value reflects the displacement of the window during normal motor driving. Secondly, when the motor is in an inertial operation state, the system performs a timing count based on the obtained ripple period value and calculates the second window movement distance. This step compensates for the window speed change caused by inertia. Finally, when the motor enters a stopped state, the system stops the timing count and counts the current ripple signal instead to determine the third window movement distance. This value represents the window displacement after the motor stops. Combining the window movement distances in these three states, the system calculates the target window movement distance, that is, the actual total displacement of the window from the initial position to the target position, to ensure that the window accurately reaches the predetermined position.

[0088] As an example, the inertial running state includes an initial inertial running state and a deceleration inertial running state. When the running state is the inertial running state, performing timed counting according to the ripple cycle value to determine the moving distance of the second window includes: when the running state is the initial inertial running state, performing timed counting according to the ripple cycle value to determine the moving distance of the fourth window; when the running state is the deceleration inertial running state, performing timed counting according to the ripple cycle value, a preset rising adjustment coefficient and a preset falling adjustment coefficient to obtain the moving distance of the fifth window; and obtaining the moving distance of the second window according to the moving distance of the fourth window and the moving distance of the fifth window.

[0089] The fourth window moving distance refers to the window displacement calculated by timing counting according to the ripple period value of the current ripple signal when the window motor is in the initial state of inertial operation. In this state, the window motor has stopped actively driving, but is still rotating slowly due to inertia. The fourth window moving distance reflects the window displacement in this initial inertial stage. The preset rising adjustment coefficient is a coefficient used to adjust the calculated window moving distance, and is used when the window motor is rising in the inertial operation state. It is used to compensate for the displacement change that may occur in the window during the rising process due to inertia. For example, if the inertial effect is strong during the rising process, the coefficient may be greater than 1, such as 1.5, to increase the calculated displacement. The preset falling adjustment coefficient is a coefficient used to adjust the calculated window moving distance, and is used when the window motor is falling in the inertial operation state. It is used to compensate for the displacement change caused by inertia during the falling process. Since the inertial effect is usually strong during the falling process, the preset falling adjustment coefficient may be greater than 1, such as 1.2, to more accurately calculate the displacement. The fifth window movement distance refers to the window displacement calculated by timing counting based on the ripple period value and the preset rising adjustment coefficient and falling adjustment coefficient when the window motor is in the deceleration inertia operation state. In this stage, the motor speed gradually decreases, and the inertia effect significantly affects the actual movement distance of the window. Therefore, the calculation result is corrected by the adjustment coefficient to obtain a more accurate displacement. The second window movement distance is determined by combining the fourth window movement distance and the fifth window movement distance, which represents the actual movement distance of the window in the entire inertia operation state. This step combines the displacement of the initial inertia and deceleration inertia stages to ensure that the total displacement of the window during the inertia operation is accurately calculated.

[0090] When processing the inertial operation state of the window, it includes two sub-states: the initial inertial operation state and the deceleration inertial operation state. When the window motor is in the inertial operation state, the system first performs a timing count based on the ripple period value of the current ripple signal to determine the fourth window movement distance, which reflects the displacement of the window in the initial inertial operation state. Then, in the deceleration inertial operation state, the system still performs a timing count based on the ripple period value, but this time combines the preset rising adjustment coefficient and the preset falling adjustment coefficient to calculate the fifth window movement distance. These coefficients are used to correct the displacement error caused by the inertial effect. Finally, the second window movement distance is obtained by combining the fourth window movement distance and the fifth window movement distance, which represents the actual total displacement of the window in the entire inertial operation state. This process ensures the accurate calculation and adjustment of the window position during the inertial operation of the window motor.

[0091] As an example, the step of performing the timing counting according to the ripple cycle value, the preset rising adjustment coefficient and the preset falling adjustment coefficient to obtain the fifth window moving distance includes: obtaining the rising cycle value and the falling cycle value according to the ripple cycle value, the preset rising adjustment coefficient and the preset falling adjustment coefficient; when the window is rising, performing the timing counting according to the rising cycle value to obtain the window rising distance; when the window is falling, performing the timing counting according to the falling cycle value to obtain the window falling distance; and obtaining the fifth window moving distance based on the window rising distance and the window falling distance.

[0092] The rising cycle value refers to the cycle time length of the current ripple signal during the window rising process. It is calculated based on the ripple cycle value and the preset rising adjustment coefficient, reflecting the current ripple cycle of the window in the rising state. This value is used to adjust the timing count to more accurately calculate the rising displacement of the window. The falling cycle value refers to the cycle time length of the current ripple signal during the window falling process. It is calculated based on the ripple cycle value and the preset falling adjustment coefficient, reflecting the current ripple cycle of the window in the falling state. This value is used to adjust the timing count to more accurately calculate the falling displacement of the window. The window rising distance refers to the window displacement calculated by timing counting according to the rising cycle value during the window rising process. It indicates the actual moving distance of the window in the rising state, which is determined by counting the rising cycle value. The window falling distance refers to the window displacement calculated by timing counting according to the falling cycle value during the window falling process, which indicates the actual moving distance of the window in the falling state, which is determined by counting the falling cycle value.

[0093] First, by combining the ripple cycle value and the preset rising adjustment coefficient, the rising cycle value is calculated, and the falling cycle value is calculated by combining the ripple cycle value and the preset falling adjustment coefficient. Next, when the window is in the rising state, the system uses the rising cycle value for timing counting to determine the rising distance of the window, that is, the distance the window actually moves during the rising process. When the window is in the falling state, the system uses the falling cycle value for timing counting to determine the falling distance of the window, that is, the distance the window actually moves during the falling process. Finally, by combining the rising distance of the window and the falling distance of the window, the fifth window movement distance is obtained, which represents the actual total displacement of the window in the entire inertial running state, ensuring that the displacement calculation of the window in different states is accurate.

[0094] Step S32, identifying the current window position according to the target window movement distance and the initial window position.

[0095] It should be noted that the current window position refers to the actual position of the window after it has moved from the initial position to the target window movement distance during actual operation. Specifically, it is calculated by combining the target window movement distance with the initial window position to obtain the current physical position of the window. The target window movement distance is the actual displacement of the window from the initial position to the target position. Combined with the initial window position, the exact position of the window in actual operation can be determined.

[0096] It can be understood that first, the system uses the initial window position as the starting point of the window, which is usually the actual physical position of the window recorded at the beginning of the operation. Then, based on the target window movement distance, which is the actual distance the window moves from the initial position to the target position, the displacement of the window during the actual operation is calculated. By adding or subtracting the initial window position from the target window movement distance (depending on the direction of the window lifting and lowering), the system can accurately identify the current window position, that is, the latest actual position of the window after the specified movement distance. This calculation ensures that the window can stay in the correct position for precise control and safe operation.

[0097] In this embodiment, the target window moving distance is determined according to the operating state and the initial ripple cycle number; the current window position is identified according to the target window moving distance and the initial window position. According to the operating state of the window motor and the initial ripple cycle number, the system first calculates the target window moving distance. This process adjusts the calculation method according to different operating states (such as continuous drive, inertial operation, and stop state). For example, the ripple cycle value is directly used in the continuous drive state, while the inertial effect needs to be considered for adjustment in the inertial operation state. Through this step, the system can accurately determine the distance that the window should move, thereby improving the accuracy and reliability of the position calculation. Subsequently, the system combines the initial window position, that is, the actual position of the window at the beginning of the operation, and the calculated target window moving distance to accurately identify the current window position. This process combines the target moving distance with the initial position to ensure the accurate position of the window in actual operation, thereby optimizing the control of the window and improving the accuracy of the window function and the overall reliability of the system.

[0098] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the vehicle window position recognition method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0099] This application also provides a vehicle window position recognition device, please refer to Figure 5 , the vehicle window position recognition device comprises:

[0100] The data acquisition module 10 is used to acquire the initial window position and collect the current signal of the window motor through the current sampling resistor;

[0101] A signal processing module 20, for filtering and counting the cycles of the current signal to obtain the initial ripple cycle number and the operating state of the window motor;

[0102] The position identification module 30 is used to identify the current vehicle window position according to the initial vehicle window position, the initial ripple cycle number and the operating state.

[0103] In one embodiment, the position identification module 30 is further used to determine a target window movement distance according to the operating state and the initial ripple cycle number; and identify a current window position according to the target window movement distance and the initial window position.

[0104] In one embodiment, the position identification module 30 is further used to obtain the ripple cycle value when the operating state is a continuous driving state, and determine the first window movement distance according to the initial ripple cycle number; when the operating state is an inertial operating state, perform timed counting according to the ripple cycle value to determine the second window movement distance; when the operating state is a stopped state, stop the timed counting, count the current ripple signal, and determine the third window movement distance; obtain the target window movement distance according to the first window movement distance, the second window movement distance and the third window movement distance.

[0105] In one embodiment, the position identification module 30 is further used to, when the operating state is the initial inertial operation state, perform timed counting according to the ripple period value to determine the moving distance of the fourth window; when the operating state is the deceleration inertial operation state, perform timed counting according to the ripple period value, a preset rising adjustment coefficient and a preset falling adjustment coefficient to obtain the moving distance of the fifth window; and obtain the moving distance of the second window according to the fourth window moving distance and the fifth window moving distance.

[0106] In one embodiment, the position identification module 30 is further used to obtain a rising cycle value and a falling cycle value according to the ripple cycle value, a preset rising adjustment coefficient and a preset falling adjustment coefficient; when the window rises, the timing count is performed according to the rising cycle value to obtain a rising distance of the window; when the window falls, the timing count is performed according to the falling cycle value to obtain a falling distance of the window; and the fifth window movement distance is obtained according to the window rising distance and the window falling distance.

[0107] In one embodiment, the signal processing module 20 is further used to filter the current signal to extract a current ripple signal and a current voltage value signal; count the cycles of the current ripple signal to obtain an initial ripple cycle number; and obtain the operating status of the window motor according to the size of the current voltage value in the current voltage value signal.

[0108] In one embodiment, the signal processing module 20 is also used to determine that the operating state of the window motor is a continuous driving state when the current volt value is greater than a preset positive current threshold; determine that the operating state of the window motor is an initial inertial operation state when the current volt value is less than a first preset negative current threshold; determine that the operating state of the window motor is a deceleration inertial operation state when the current volt value is greater than the first preset negative current threshold and the current volt value is less than or equal to the second preset negative current threshold; determine that the operating state of the window motor is a deceleration inertial operation state when the rotation speed of the window motor is less than a preset speed and the current volt value is greater than or equal to the second preset negative current threshold.

[0109] The vehicle window position recognition device provided by the present application adopts the vehicle window position recognition method in the above embodiment, and can solve the technical problem of how to accurately recognize the vehicle window position. Compared with the prior art, the beneficial effects of the vehicle window position recognition device provided by the present application are the same as the beneficial effects of the vehicle window position recognition method provided by the above embodiment, and other technical features in the vehicle window position recognition device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0110] The present application provides a vehicle window position recognition device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle window position recognition method in the above-mentioned embodiment 1.

[0111] Reference below Figure 6 , which shows a schematic diagram of the structure of a vehicle window position recognition device suitable for implementing the embodiment of the present application. The vehicle window position recognition device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The vehicle window position recognition device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0112] like Figure 6As shown, the vehicle window position recognition device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the vehicle window position recognition device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle window position recognition device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a vehicle window position recognition device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0113] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0114] The vehicle window position recognition device provided by the present application adopts the vehicle window position recognition method in the above embodiment, which can solve the technical problem of how to accurately recognize the vehicle window position. Compared with the prior art, the beneficial effects of the vehicle window position recognition device provided by the present application are the same as the beneficial effects of the vehicle window position recognition method provided by the above embodiment, and other technical features in the vehicle window position recognition device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0115] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0116] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0117] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle window position recognition method in the above-mentioned embodiment.

[0118] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0119] The computer-readable storage medium may be included in the vehicle window position recognition device; or may exist independently without being assembled into the vehicle window position recognition device.

[0120] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the window position recognition device, the window position recognition device: obtains the initial window position, and collects the current signal of the window motor through the current sampling resistor; filters and counts the cycle of the current signal to obtain the initial ripple cycle number and the operating status of the window motor; and identifies the current window position according to the initial window position, the initial ripple cycle number and the operating status.

[0121] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0122] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0123] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0124] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle window position recognition method, and can solve the technical problem of how to accurately recognize the vehicle window position. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the vehicle window position recognition method provided in the above-mentioned embodiment, and will not be repeated here.

[0125] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned vehicle window position recognition method when executed by a processor.

[0126] The computer program product provided by the present application can solve the technical problem of how to accurately identify the position of the vehicle window. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the vehicle window position identification method provided by the above embodiment, which will not be repeated here.

[0127] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A vehicle window position recognition method, characterized in that: The method is applied to a vehicle window position recognition circuit, the vehicle window position recognition circuit comprises: a relay and a current sampling resistor, the relay is connected to the current sampling resistor, the relay is used to control the reverse rotation of the vehicle window motor, and the method comprises: Acquire the initial window position, and collect the current signal of the window motor through the current sampling resistor; Filtering and counting the cycles of the current signal to obtain the initial ripple cycle number and the operating state of the window motor; A current window position is identified according to the initial window position, the initial ripple cycle number, and the operating state.

2. The method according to claim 1, characterized in that The step of identifying the current window position according to the initial window position, the initial ripple cycle number and the operating state comprises: Determining a target window movement distance according to the operating state and the initial ripple cycle number; The current window position is identified according to the target window movement distance and the initial window position.

3. The method according to claim 2, characterized in that The current signal includes a current ripple signal, and the step of determining the target window moving distance according to the operating state and the initial ripple cycle number includes: When the running state is a continuous driving state, obtaining a ripple cycle value, and determining a moving distance of the first window according to the initial ripple cycle number; When the running state is the inertial running state, performing timing counting according to the ripple period value to determine the moving distance of the second window; When the running state is the stop state, the timing counting is stopped, the current ripple signal is counted, and the moving distance of the third window is determined; A target window moving distance is obtained according to the first window moving distance, the second window moving distance and the third window moving distance.

4. The method according to claim 3, characterized in that The inertial running state includes an initial inertial running state and a deceleration inertial running state. When the running state is the inertial running state, the step of performing timing counting according to the ripple period value to determine the moving distance of the second window includes: When the running state is the initial state of the inertia running, performing timing counting according to the ripple period value to determine the moving distance of the fourth window; When the running state is the deceleration inertia running state, the timing counting is performed according to the ripple period value, the preset rising adjustment coefficient and the preset falling adjustment coefficient to obtain the fifth window moving distance; The second window moving distance is obtained according to the fourth window moving distance and the fifth window moving distance.

5. The method according to claim 4, characterized in that The step of performing the timing counting according to the ripple period value, the preset rising adjustment coefficient and the preset falling adjustment coefficient to obtain the fifth window moving distance comprises: Obtaining a rising period value and a falling period value according to the ripple period value, a preset rising adjustment coefficient, and a preset falling adjustment coefficient; When the window is raised, the timing counting is performed according to the rising cycle value to obtain the rising distance of the window; When the window is lowered, the timing counting is performed according to the lowering cycle value to obtain the lowering distance of the window; A fifth window moving distance is obtained according to the window raising distance and the window lowering distance.

6. The method according to claim 1, characterized in that The step of filtering and counting the cycles of the current signal to obtain the initial ripple cycle number and the operating state of the window motor includes: Filtering the current signal to extract a current ripple signal and a current voltage value signal; Counting the cycles of the current ripple signal to obtain an initial ripple cycle number; The operating state of the window motor is obtained according to the magnitude of the current voltage value in the current voltage value signal.

7. The method according to claim 6, characterized in that The step of obtaining the operating state of the window motor according to the magnitude of the current voltage value in the current voltage value signal comprises: When the current voltage value is greater than a preset forward current threshold, determining that the operating state of the window motor is a continuous driving state; When the current voltage value is less than a first preset negative current threshold, determining that the operating state of the window motor is an initial state of inertial operation; When the current voltage value is greater than the first preset negative current threshold and the current voltage value is less than or equal to the second preset negative current threshold, determining that the operating state of the window motor is a deceleration inertia operating state; When the rotation speed of the window motor is less than the preset speed and the current voltage is greater than or equal to the second preset negative current threshold, it is determined that the running state of the window motor is a stopped state.

8. A vehicle window position recognition device, characterized in that: The device comprises: A data acquisition module, used to acquire an initial window position and collect a current signal of the window motor through the current sampling resistor; A signal processing module, used for filtering and counting the cycles of the current signal to obtain the initial ripple cycle number and the operating state of the window motor; A position identification module is used to identify the current vehicle window position according to the initial vehicle window position, the initial ripple cycle number and the operating state.

9. A vehicle window position recognition device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle window position recognition method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle window position recognition method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Ripple anti-pinch position compensation method and device

    CN111206838A

  • Method and device for judging position of vehicle window, vehicle, equipment and medium

    CN111706199A

  • Car window position compensation method and device

    CN116950530A

  • Power window apparatus for vehicle

    JP2002364246A