Vehicle window anti-pinch device, control method, chip, system and vehicle

The vehicle window motion signal is trained through a multi-layer neural network model to achieve accurate identification and anti-pinch functions of the window anti-pinch system, which solves the problems of current detection noise interference and high hardware cost in the existing technology, and improves the accuracy of the system. performance and anti-interference ability.

CN118774518APending Publication Date: 2024-10-15BEIJING ESWIN COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410939468.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing window anti-pinch systems are prone to noise interference when detecting motor current, leading to misjudgments. The hardware cost is high, and the anti-pinch position judgment is inaccurate under bumpy road conditions.

Method used

The signal sampling module and the data training module are combined to train the signal samples during the window movement through a multi-layer neural network model to determine whether the window is blocked by obstacles, achieve a more accurate anti-pinch function, reduce misjudgments, and Does not rely on hardware such as Hall sensors.

Benefits of technology

It improves the accuracy of the window anti-pinch system, reduces hardware costs, enhances anti-interference capabilities, reduces misjudgments, and can accurately identify obstacles in complex road conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118774518A_ABST
    Figure CN118774518A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a vehicle window anti-pinch device, a control method, a chip, a system and a vehicle. The car window anti-pinch device comprises a signal sampling module which is connected with a control module of a car window motor and used for collecting a signal sample generated by the control module in the moving process of a car window; the data training module is connected with the signal sampling module and used for training a data classification model according to the signal samples collected by the signal sampling module; and the data classification model is used for determining whether the vehicle window is blocked by an obstacle according to the signal generated by the control module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of vehicles, and in particular, to a vehicle window anti-pinch device, a control method, a chip, a system and a vehicle. Background Art

[0002] At present, the windows of cars and other vehicles can be automatically controlled. During the automatic closing process of the windows, if the windows cannot automatically stop moving when encountering an obstacle, or if they automatically open, accidents such as pinching may occur. Therefore, window anti-pinch control is a research direction in this field.

[0003] In the related art, the ripple anti-pinch principle is used to realize the automatic anti-pinch function. Specifically, there is a certain functional relationship between the current of the window motor and the external resistance of the window. By detecting the current of the window motor, it can be detected whether the window is subjected to external resistance, thereby realizing anti-pinch.

[0004] However, current detection contains more noise and is prone to misjudgment. Summary of the invention

[0005] In view of this, embodiments of the present application provide a vehicle window anti-pinch device, a control method, a chip, a system and a vehicle.

[0006] On the one hand, an embodiment of the present application provides a vehicle window anti-pinch device, comprising:

[0007] A signal sampling module, connected to the control module of the window motor, for collecting signal samples generated by the control module during the movement of the window;

[0008] A data training module is connected to the signal sampling module and is used to train a data classification model based on the signal samples collected by the signal sampling module; the data classification model is used to determine whether the vehicle window is blocked by an obstacle based on the signal generated by the control module.

[0009] In some embodiments, the data training module includes:

[0010] A multi-layer neural network, wherein the multi-layer neural network comprises an input layer and an output layer;

[0011] The input layer is used to take the signal sample as input data and perform first layer processing;

[0012] The output layer is used to output data classification results.

[0013] In some embodiments, any layer other than the output layer in the multi-layer neural network includes:

[0014] A matrix operation module, used for performing matrix operation processing on the received data; wherein, if the matrix operation module is located in the first layer, the received data includes the input data; if the matrix operation module is located in a layer other than the first layer, the received data includes the output data of the previous layer;

[0015] The activation function module is used to activate the data after the matrix operation processing and pass the processed data to the next layer.

[0016] In some embodiments, the multi-layer neural network comprises:

[0017] DNN (Deep Neural Networks); and / or

[0018] CNN (Convolutional Neural Networks).

[0019] In some embodiments, the signal sample includes one or more of the following:

[0020] The first signal sample when the vehicle window encounters no obstacle;

[0021] A second signal sample of the vehicle window encountering an obstacle;

[0022] The third signal sample when the car window reaches the top;

[0023] The fourth signal sample where the window has not reached the top.

[0024] In some embodiments, the signal sampling module includes:

[0025] an analog-to-digital conversion module, connected to the signal output terminal of the control module, for receiving the analog signal generated by the control module, and performing analog-to-digital conversion on the analog signal to obtain a digital signal; wherein the digital signal obtained by sampling is used as the signal sample;

[0026] The delay trigger module is connected to the analog-to-digital conversion module and is used to output a trigger signal, wherein the trigger signal is used to trigger the analog-to-digital conversion module to sample the analog signal.

[0027] In some embodiments, the analog-to-digital conversion module includes:

[0028] A serial output port is connected to the data training module and is used to serially output the signal samples.

[0029] In some embodiments, the analog-to-digital conversion module includes one or more signal channels;

[0030] The delay trigger module is used to send at least one pre-trigger signal to the analog-to-digital conversion module, wherein the pre-trigger signal is used to configure the trigger sequence of the signal channel and the delay duration of the delay trigger.

[0031] In some embodiments, the pre-trigger signal is associated with the signal channel, and the delay duration indicated by the pre-trigger signal is used to delay triggering of the associated signal channel.

[0032] On the other hand, an embodiment of the present application provides a control method for preventing vehicle window pinching, comprising:

[0033] Sampling a signal generated by a control module of a window motor during the movement of the window to obtain a signal sample;

[0034] The signal samples are used to perform model training to obtain a data classification model; wherein the data classification model is used to determine whether the vehicle window is blocked by an obstacle based on the signal generated by the control module.

[0035] In some embodiments, sampling a signal generated by a control module of a vehicle window during movement of the vehicle window to obtain a signal sample includes:

[0036] Perform analog-to-digital conversion on the analog signal generated by the control module to obtain the sampled signal sample.

[0037] In some embodiments, the using the signal samples to perform model training to obtain a data classification model includes:

[0038] Set a first signal sample when the vehicle window does not encounter an obstacle, a second signal sample when the vehicle window encounters an obstacle, a third signal sample when the vehicle window reaches the top, and a fourth signal sample when the vehicle window does not reach the top;

[0039] The first signal sample, the second signal sample, the third signal sample and the fourth signal sample are used to perform model training to obtain the data classification model.

[0040] In another aspect, an embodiment of the present application provides a window anti-pinch control chip, comprising:

[0041] Any of the above window anti-pinch devices.

[0042] In another aspect, an embodiment of the present application provides a vehicle window control system, comprising:

[0043] A window motor, connected to the window, for controlling the movement of the window;

[0044] The control module of the window motor is connected to the window motor;

[0045] Any of the above-mentioned vehicle window anti-pinch devices is connected to the control module.

[0046] In another aspect, an embodiment of the present application provides a vehicle, comprising:

[0047] Vehicle body;

[0048] A vehicle window, mounted on the vehicle body;

[0049] A window motor, connected to the window, for controlling the movement of the window;

[0050] The control module of the window motor is connected to the window motor;

[0051] Any of the above-mentioned vehicle window anti-pinch devices is connected to the control module.

[0052] The embodiment of the present application connects the control module of the window motor through the signal sampling module, samples the signal generated by the signal to obtain a signal sample, and then uses the data training module to train the collected signal samples to obtain a data classification model. In this way, through the training of a simple neural network model, it is possible to obtain whether the window is blocked by an obstacle, thereby realizing window anti-pinch. Compared with the method of detecting the motor current and calculating the resistance accordingly, this method is more accurate, can effectively reduce misjudgment, and does not require detection devices such as Hall sensors, and has low hardware costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic structural diagram of a vehicle window anti-pinch device provided in an embodiment of the present application;

[0054] Figure 2 It is a structural schematic diagram of another vehicle window anti-pinch device provided in an embodiment of the present application;

[0055] Figure 3 A flow chart of a vehicle window anti-pinch control method provided in an embodiment of the present application;

[0056] Figure 4 This is an interconnection structure diagram of a vehicle window anti-pinch system provided in an embodiment of the present application;

[0057] Figure 5 This is a signal simulation diagram for collecting current data in an embodiment of the present application;

[0058] Figure 6 A model diagram of a deep neural network provided in an embodiment of the present application;

[0059] Figure 7 A model diagram of a convolutional neural network provided in an embodiment of the present application;

[0060] Figure 8A structural block diagram of a vehicle window anti-pinch system provided in an embodiment of the present application;

[0061] Fig. 9 A structural block diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0063] In the following description, a large number of specific details are given to provide a more thorough understanding of the present application. However, it is obvious to those skilled in the art that the present application can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present application, some technical features known in the art are not described; that is, all features of the actual embodiments are not described here, and well-known functions and structures are not described in detail.

[0064] The purpose of the terms used herein is only to describe specific embodiments and is not intended to be limiting of the present application. When used herein, the singular forms "one", "an" and "said / the" are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "consisting of" and / or "comprising", when used in this specification, determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.

[0065] In order to thoroughly understand the present application, detailed steps and detailed structures will be presented in the following description to illustrate the technical solution of the present application. The preferred embodiments of the present application are described in detail below, but in addition to these detailed descriptions, the present application may also have other implementation methods.

[0066] DNN deep learning is a new research direction in the field of machine learning. Its motivation is to build a model to simulate the neural connection structure of the human brain. When processing signals such as images, sounds and texts, it describes the data features in layers through multiple transformation stages, and then gives an explanation of the data. The reason why deep learning is called "deep" is relative to "shallow learning" methods such as support vector machine (SVM), boosting method (Boosting), maximum entropy method, etc. The number of levels of nonlinear operations in the model learned by deep learning is more. Shallow learning relies on manual experience to extract sample features. After the network model is learned, it obtains a single-layer feature without a hierarchical structure. Deep learning transforms the original signal layer by layer, transforms the feature representation of the sample in the original space to the new feature space, and automatically learns to obtain a hierarchical feature representation, which is more conducive to classification or feature visualization. Another theoretical motivation of deep learning theory is: if a function can be expressed in a concise form with a k-layer structure, then expressing it with a k-1-layer structure may require an exponential number of parameters (relative to the input signal) and lack generalization ability. The deep network structure obtained by deep learning contains a large number of single elements (neurons), each neuron is connected to a large number of other neurons, and the connection strength (weight) between neurons is modified during the learning process and determines the function of the network. The deep network structure obtained by deep learning conforms to the characteristics of neural networks.

[0067] Ripple anti-pinch principle: During the motor movement, the relationship between the external resistance and the motor current can be obtained through mathematical calculation as follows (1):

[0068]

[0069] Where, I(s) is the current flowing through the window motor; f f (s) is the equivalent resistance coefficient of the machine, which is used to reflect the magnitude of the external resistance of the window. f (s) is a variable, and the rest are constants. Specifically, U(s) is the voltage across the motor during the motor rotation process; L is the internal inductive inductance of the motor during the motor movement process; E(s) is the induced electromotive force generated by the motor rotation; s is the Laplace operator; R is the internal equivalent resistance of the motor; Ф is the amplitude value of the main magnetic flux; K E is the back electromotive force constant of the motor; J is the moment of inertia; C T is the electromagnetic torque.

[0070] It can be seen that if the motor voltage is regarded as a constant, the only variables are the external resistance f(s) and the motor current I(s). In order to maintain the balance of the equation, when the window encounters an obstacle during movement, the resistance increases, and the current flowing through the motor also increases accordingly. That is, when the motor current increases sharply, the window movement encounters an obstacle. This is the basis for the current method to judge the window resistance. Therefore, in theory, the size of the external resistance when the window moves can be indirectly obtained by detecting the angular velocity of the motor movement or collecting the current flowing through the motor (or converting it into a voltage signal), so as to determine whether an obstacle is encountered, and whether anti-pinch is needed based on the position.

[0071] Principle of ripple position detection: After the window motor is powered on, the motor rotates to drive the connected wire rope to move, and the wire rope drives the slider that fixes the window glass to move, thereby moving the window glass connected to the slider. Therefore, every time the motor rotates one circle, the wire rope also moves a fixed distance, and the window moves the same distance, that is, the travel of the window is proportional to the number of circles the motor rotates. If the number of circles the motor rotates can be measured directly or indirectly, the distance the window has traveled can be determined. If the starting point of this movement is known, the position where the window stops can be calculated. The trigger edge of the Hall pulse appears when the motor rotates to a specific position, so the number of Hall pulses generated when the motor moves is proportional to the distance the motor has traveled. This is the principle of Hall anti-pinch position detection.

[0072] The current mainstream window anti-pinch control method is designed based on the ripple anti-pinch principle and ripple position detection principle. In order to reduce costs and improve integration, automobile manufacturers have an increasing demand for using motor current ripple signals to achieve anti-pinch functions. However, the motor current ripple signal is generated by the sliding contact between the commutator and brushes of different windings during the operation of the DC brush motor, which contains a lot of noise, which can easily cause misjudgment of anti-pinch, and the current mainstream anti-pinch control algorithm has weak anti-interference ability. In the process of the window constantly rising and falling, the anti-pinch position of the window is easy to be inaccurately judged, that is, the position of the window is out of focus.

[0073] Regarding the above-mentioned window anti-pinch measurement, in the process of one-touch window control, the problems that may exist and can be improved mainly include the following aspects:

[0074] First, in order to collect ripples, a Hall sensor module is introduced into the car window, which increases the hardware cost of the entire setup.

[0075] Second, during the frequent up and down movement of the car window, the starting point of the car window position is prone to drift, that is, the relative position of the final position of the car window from its starting point is inaccurate, that is, distance defocus.

[0076] Third, on bumpy roads, the force on the car windows changes, and the anti-pinch algorithm using ripples is prone to misjudgment.

[0077] Fourth, during the ripple collection process, there will be interference from ripple noise, burrs, etc., and during the entire ripple collection process, it is easily disturbed by the external environment.

[0078] Based on this, the embodiment of the present application provides a vehicle window anti-pinch device, such as Figure 1 As shown, the vehicle window anti-pinch device 100 comprises:

[0079] A signal sampling module 110, connected to the control module 200 of the window motor M, for collecting signal samples generated by the control module 200 during the movement of the window;

[0080] The data training module 120 is connected to the signal sampling module 110 and is used to train a data classification model based on the signal samples collected by the signal sampling module 110; the data classification model is used to determine whether the vehicle window is blocked by an obstacle based on the signal generated by the control module.

[0081] Here, the control module 200 of the window motor can provide the motor current as an output signal to the signal sampling module 110, and the signal sampling module 110 receives the motor current or detects the corresponding voltage as a sampling signal, and provides the sampled data as a signal sample to the data training module 120.

[0082] The data training module 120 is a neural network model that uses the sampled signal samples as input data for model training. Through model training, a model with data classification function can be obtained. The neural network model can be a DNN, a CNN, or other types of neural network models that can be trained with data to obtain classification results.

[0083] It is understandable that, during the data training process, data sampled under different types of situations can be used as input data for training, so that the model can achieve classification function.

[0084] Here, the trained data classification model can at least classify the data when the vehicle window is blocked by an obstacle and the data when the vehicle window is not blocked by an obstacle, thereby realizing the recognition of the vehicle window obstacle.

[0085] In some embodiments, the data training module includes:

[0086] A multi-layer neural network, wherein the multi-layer neural network comprises an input layer and an output layer;

[0087] The input layer is used to take the signal sample as input data and perform first layer processing;

[0088] The output layer is used to output data classification results.

[0089] It can be understood that each layer in the multi-layer neural network performs calculations on the received data and then outputs it to the next layer. The above signal samples can be input as input data to the first layer of the multi-layer neural network, that is, the above input layer. After the input layer performs the first layer of processing on the signal sample, the processing result is passed to the next layer as output data. After at least one layer of transmission, the final processed data is output through the output layer. The output result can be the classification result of classifying the data. The above DNN and CNN are both multi-layer neural networks.

[0090] The classification here can be to classify a set of data, specifically, it can be sampling data within a preset time period, or it can be a preset number of sampling data. This set of data is classified to determine whether the window state corresponding to this set of data is blocked by an obstacle. It can be understood that the smaller the amount of data in a set of data, the more refined the classification result, and the more adaptable it is to real-time determination of whether there is an obstacle, that is, it is more sensitive to obstacle recognition, but the more difficult the classification is; on the contrary, the larger the amount of data in a set of data, the coarser the classification result, and there may be a delay in identifying obstacles, but the classification is less difficult and more accurate.

[0091] In some embodiments, any layer other than the output layer in the multi-layer neural network includes:

[0092] A matrix operation module, used for performing matrix operation processing on the received data; wherein, if the matrix operation module is located in the first layer, the received data includes the input data; if the matrix operation module is located in a layer other than the first layer, the received data includes the output data of the previous layer;

[0093] The activation function module is used to activate the data after the matrix operation processing and pass the processed data to the next layer.

[0094] In an embodiment of the present application, the output layer in the multi-layer neural network can be used only for data output without performing data calculation processing. In some other embodiments, the output layer can also perform data processing, including data processing performed by the above-mentioned matrix operation module or activation function module, that is, the output layer can include the above-mentioned matrix operation module and / or activation function module, and can also include other data calculation or processing modules, or can also not include the data operation module and only perform data output operations.

[0095] It can be understood that the data in the multi-layer neural network is processed layer by layer and then passed to the next layer in sequence. Therefore, the input layer, as the first layer of the multi-layer neural network, receives input data and processes it before passing it to the next layer. Any layer other than the input layer receives the output data of the previous layer as the input data of this layer, and then passes it to the next layer after processing until it reaches the output layer. The output layer processes the data and outputs the final output data, or directly provides output data without any processing.

[0096] Specifically, any layer used for data processing, including the input layer and any intermediate layer, and may also include the output layer, is collectively referred to as the data processing layer. The data processing layer may include the above-mentioned matrix operation module, which is used to perform matrix operations on the input data, such as matrix multiplication, matrix addition, etc. In addition, activation processing can be performed through the activation function module to obtain the output data of this layer and pass it to the next layer.

[0097] Specifically, the above-mentioned activation function module may include a Relu (Rectified Linear Unit) function or a "SoftMax function" (normalized exponential function), etc. Among them, the "Relu function" is a commonly used nonlinear activation function, the principle of which is that when the input is less than or equal to zero, the output is zero, and when the input is greater than or equal to zero, the output is equal to the input value. That is, f(x) = max(0,x). The "SoftMax function" is an activation function for multi-category classification problems, which converts the original score (also called logits) into a numerical value representing the probability distribution, so that the probability value of each category is between 0 and 1, and the sum of the probabilities of all categories is equal to 1. This makes it suitable for multi-category classification problems, in which each sample can only belong to one category.

[0098] In particular, the above-mentioned "SoftMax function" can be used in the output layer as a processing unit of the output layer, so that the above-mentioned multi-layer neural network finally outputs the classification result through the "SoftMax function".

[0099] In some embodiments, the signal sample includes one or more of the following:

[0100] The first signal sample when the vehicle window encounters no obstacle;

[0101] A second signal sample of the vehicle window encountering an obstacle;

[0102] The third signal sample when the car window reaches the top;

[0103] The fourth signal sample where the window has not reached the top.

[0104] Here, the sampled signal samples are provided by setting different scenarios of obstacles or no obstacles during the movement of the car window. Moreover, each of the above samples can have multiple sets of data to improve the accuracy of the training model.

[0105] For example, when the window does not encounter an obstacle, the window can be controlled to move up and down to obtain at least one set of the first signal samples. Specifically, the window can be controlled to move from the bottom to the top, from the top to the bottom, or back and forth between the top and the bottom. Obstacles of different hardness and size can be set in the window, and then the window can be controlled to move until it is clamped by the obstacle, thereby obtaining at least one set of second signal samples.

[0106] In addition, in order to distinguish between the two situations of reaching the top or encountering an obstacle during the movement of the vehicle window, at least one group of third signal samples of the vehicle window moving upward from different positions to the top, and at least one group of fourth samples of the vehicle window moving upward from different positions but not reaching the top and being controlled to stop moving or return to downward movement can be set.

[0107] These samples are input into the model training module respectively for model training, and different types of obstacles are distinguished to obtain the final data classification model.

[0108] The data classification model can at least distinguish whether an obstacle is encountered. In some embodiments, the data classification model can also distinguish specific situations when no obstacle is encountered, for example, whether the top is reached, whether the bottom is reached, and whether the movement is controlled to stop, etc.

[0109] In some embodiments, Figure 2 As shown, the signal sampling module 110 includes:

[0110] The analog-to-digital conversion module 111 is connected to the signal output terminal of the control module 200, and is used to receive the analog signal generated by the control module 200, and perform analog-to-digital conversion on the analog signal to obtain a digital signal; wherein the sampled digital signal is used as the signal sample;

[0111] The delay trigger module 112 is connected to the analog-to-digital conversion module 111 and is used to output a trigger signal, where the trigger signal is used to trigger the analog-to-digital conversion module 111 to sample the analog signal.

[0112] The window motor controls the movement of the window through a series of electrical and mechanical structures, and the control module 200 of the window motor provides a corresponding control signal. The current signal or voltage signal flowing through the control module 200 can be used for analog-to-digital conversion processing. Therefore, the current signal or voltage signal is output here through the signal output terminal of the control module 200.

[0113] The analog-to-digital conversion module 111 is connected to the signal output terminal of the control module, so that the current signal or voltage signal flowing through the control module 200 can be processed by analog-to-digital conversion, that is, the analog signal is converted into a digital signal as a corresponding signal sample. Specifically, the analog-to-digital conversion processing method can be to sample the current signal or voltage signal to obtain a discrete signal, thereby realizing analog-to-digital conversion. In addition, the digital signal can also be obtained by sampling the current signal or voltage signal and then continuing to quantize and encode it to obtain a digital signal, thereby realizing analog-to-digital conversion.

[0114] The delay trigger module 112 is used to control the timing of the analog-to-digital conversion module 111 to perform signal sampling.

[0115] The delay trigger module 112 can control the analog-to-digital conversion module 111 to start sampling by providing a delay trigger signal. Specifically, the delay trigger module 112 can send a pre-trigger signal to the analog-to-digital conversion module 111, and the analog-to-digital conversion module 111 determines the duration of the delay trigger according to the pre-trigger signal, and triggers the start of sampling after a delay of a corresponding duration.

[0116] In some embodiments, the analog-to-digital conversion module includes:

[0117] A serial output port is connected to the data training module and is used to serially output the signal samples.

[0118] By setting the above-mentioned delay trigger module 112, the analog-to-digital conversion module 111 can continuously sample the current or voltage signal of the motor in sequence. Here, the sampled data can be saved first, and then sent to the data training module through the above-mentioned serial output port, or directly sent to the data training module through the serial data port during the sampling process.

[0119] In some embodiments, the analog-to-digital conversion module 111 includes one or more signal channels;

[0120] The delay trigger module 112 is used to send at least one pre-trigger signal to the analog-to-digital conversion module, wherein the pre-trigger signal is used to configure the triggering sequence of the signal channels and the delay duration of the delay trigger.

[0121] In some embodiments, the pre-trigger signal is associated with the signal channel, and the delay duration indicated by the pre-trigger signal is used to delay triggering of the associated signal channel.

[0122] In the embodiment of the present application, the analog-to-digital conversion module 111 may include at least one signal channel, each of which may sample a group of signals. Multiple channels may sample sequentially.

[0123] The sampling order of each channel of the analog-to-digital conversion module 111 can be configured through the pre-trigger signal provided by the above-mentioned delay trigger module 112. In this way, the analog-to-digital conversion module 111 can perform sampling in the order configured by the delay trigger module 112, and start sampling at the specified time according to the set delay duration.

[0124] In this way, the timing for sampling the motor signal can be conveniently set, thereby facilitating the collection of required data for model training.

[0125] Based on the same inventive concept, the embodiment of the present application provides a control method for preventing vehicle window pinching, such as Figure 3 As shown, the method includes:

[0126] Step S101, sampling a signal generated by a control module of a window motor during movement of the window to obtain a signal sample;

[0127] Step S102: Perform model training using the signal samples to obtain a data classification model; wherein the data classification model is used to determine whether the vehicle window is blocked by an obstacle based on the signal generated by the control module.

[0128] The signal here may be a current signal flowing through the motor during the movement of the window, or a voltage signal corresponding to the current signal, etc.

[0129] By providing the collected signal samples to the model training module for model training, a neural network model for data classification can be obtained, that is, the above-mentioned data classification model. The model can at least classify different situations of whether the car window is blocked by an obstacle, so as to use the model to identify whether there is an obstacle at the car window.

[0130] In some embodiments, sampling a signal generated by a control module of a vehicle window during movement of the vehicle window to obtain a signal sample includes:

[0131] Perform analog-to-digital conversion on the analog signal generated by the control module to obtain the sampled signal sample.

[0132] Here, sampling can be achieved through an analog-to-digital conversion module, that is, converting the collected analog signal into a digital signal as a signal sample.

[0133] In this way, the sampled data can form a data matrix so that matrix operations and other processing can be performed during model training.

[0134] In some embodiments, the using the signal samples to perform model training to obtain a data classification model includes:

[0135] Set a first signal sample when the vehicle window does not encounter an obstacle, a second signal sample when the vehicle window encounters an obstacle, a third signal sample when the vehicle window reaches the top, and a fourth signal sample when the vehicle window does not reach the top;

[0136] The first signal sample, the second signal sample, the third signal sample and the fourth signal sample are used to perform model training to obtain the data classification model.

[0137] The signal samples in each of the above situations may include one or more sets of data, so as to facilitate model training. For example, for the second signal sample encountering an obstacle, multiple sets of different data may be provided by setting obstacles of different sizes and hardnesses. For the first signal sample not encountering an obstacle, data samples of the window in different movement processes may be set, for example, moving from bottom to top, moving from top to bottom, and moving back and forth, etc.

[0138] By training different types of data models, the data classification model can accurately classify signals in different scenarios, improve the accuracy of obstacle detection, and thus improve the anti-pinch effect.

[0139] The present application also provides the following examples:

[0140] In the assembly of the entire system of the DNN anti-pinch algorithm adopted in the embodiment of the present application, there is no need to install additional Hall element parts and other components. Only the ADC (Analog-to-Digital Converter) module can complete the initial acquisition process of current and voltage data. By training the model, the obtained model can accurately identify the state and position of the car window, and take anti-pinch measures for various obstacles. Since the whole process is to process the current data within a window time, it has a strong anti-interference ability in the face of sudden bumpy sections and instantaneous changes in current. The model adopts a higher ADC sampling frequency, and has a higher accuracy rate in dealing with various complex situations.

[0141] The sampling module interconnection diagram structure used by the entire window anti-pinch system is as follows: Figure 4As shown, the sampling module 410 includes: a first timing module 401 is configured as a timer in the entire module, which is used to make the motor rotate in different directions. The first timing module 401 is connected to the second timing module 403 through the first routing unit 402, and the second timing module 403 is routed to the hardware trigger input of the delay trigger module 405 through the second routing unit 404. The delay trigger module 405 can be a delay counter, exemplarily, it can be a 16-bit delay counter, and the pre-trigger signal ch0pretrigx output by it is used as a prerequisite for the ADC (analog-to-digital converter) module 406. Ch0pretrigx is directly output to the trigger signal port ADHWTS of the ADC module 406 to select the ADC channel and arrange the order of the channels (such as ADCH0 shown in the figure) through the configurable pre-trigger delay. When the ADC receives the rising edge of the trigger, it will start converting according to the order defined by the pre-trigger ch0pretrigx.

[0142] The sampling module 410 is connected to the control circuit board 420 of the window motor M. The control circuit board 420 includes a driving chip GD3000. The sampling module 410 may include a driving control unit SPI0, which can be used to drive the above-mentioned driving chip GD3000. In addition, the sampling module 410 may also include an interrupt module PORTA for processing some error information in the driving chip GD3000. In addition, the above-mentioned second timing module also includes a plurality of signal channels CH0-CH3 that can be connected to the driving chip GD3000 and provide corresponding clock signals to control the electrodes to rotate in different directions.

[0143] For the sampling of the above ADC module 406, the pre-trigger delay of the delayed trigger module 405 must be set correctly so that reliable operation can be performed between the delayed trigger module 405 and the corresponding ADC module 406. Exemplarily, when the first pre-trigger is set, the associated lock of the pre-trigger will become active until the corresponding conversion is completed. This associated lock is released by the corresponding ADC conversion complete flag ADC_SC1[COCOx], and the next pre-trigger can only be generated when the ongoing conversion is completed.

[0144] The delay trigger module 405 continuously sends commands to the ADC module 406 so that the ADC module 406 continuously collects the current data of the motor, saves it, and sends it through the serial port data.

[0145] The current data collected when different obstacles are placed or not placed during the window rising process can be plotted in Matlab as follows: Figure 5 shown.

[0146] like Figure 5The four curves shown are, from top to bottom, when there is no obstacle during the rising process of the window (the window can be closed normally from bottom to top), when the obstacle is a human arm, when the obstacle is a plastic bottle foreign object, and when the obstacle is a foam material foreign object. The X-axis is the time of the overall movement of the window from bottom to top, and the Y-axis is the current size. For the convenience of display, the four curves have been translated in the vertical direction.

[0147] It can be seen that there is a clear difference in the time of the current mutation when the obstacle is clamped and when it is not clamped, which is related to the diameter of the obstacle in the vertical direction. When the obstacle is applied, there is also a slight difference in the curvature of the current shape, and this difference can be amplified under high-frequency current sampling. The deep learning network can learn this difference and distinguish it.

[0148] The deep neural network provided in the embodiment of the present application can be as follows Figure 6 The model shown is a four-layer neural network model that can realize the function of a classifier. It includes: an input layer 601, two intermediate processing layers 602 and an output layer 603. Exemplarily, the input can be a set of data with 128 current sampling points, and the activation function is set to "Relu function" and "SoftMax function", and finally output a classifier result. Among them, the data set can include two groups, the first group is labeled with whether the object is clamped, that is, there is an obstacle blocking or not clamped, that is, there is no obstacle blocking; the other group is labeled with whether the window reaches the top or not. Through these two groups of data sets, training is carried out separately, and finally a model with anti-pinch function is output.

[0149] The above DNN network can also be implemented using a CNN network, such as Figure 7 As shown, it includes multiple convolution layers 701 and output layer 702. Each convolution layer processes data through matrix convolution calculation, and then passes it to the next layer through the activation function. Finally, it is output through the conversion module.

[0150] The neural network model is used to realize the window anti-pinch function without using Hall sensors or other modules, avoiding the problems of distance defocus and ripple noise.

[0151] Based on the same inventive concept, the embodiment of the present application provides a window anti-pinch control chip, including:

[0152] Any of the above window anti-pinch devices.

[0153] Based on the same inventive concept, the embodiment of the present application provides a window control system, such as Figure 8 As shown, the vehicle window control system 800 includes:

[0154] A window motor 801, connected to the window, for controlling the movement of the window;

[0155] The control module 802 of the window motor 801 is connected to the window motor 801;

[0156] Any of the above-mentioned vehicle window anti-pinch devices 100 is connected to the control module 802 .

[0157] Based on the same inventive concept, the embodiment of the present application provides a vehicle, such as Fig. 9 As shown, the vehicle 900 includes:

[0158] Car body 901;

[0159] A vehicle window 902, mounted on the vehicle body 901;

[0160] A window motor 903 connected to the window 902 and used to control the movement of the window 902;

[0161] The control module 904 of the window motor 903 is connected to the window motor 903;

[0162] Any of the above-mentioned vehicle window anti-pinch devices 100 is connected to the control module 904 .

[0163] The above-mentioned window control chip, window control system and vehicle and window anti-pinch device belong to the same inventive concept. The understanding of the relevant contents can refer to the description in the above-mentioned embodiments, which will not be repeated here.

[0164] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0165] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium includes: a mobile storage device, ROM, a disk or an optical disk, and other media that can store program codes.

[0166] The various embodiments / implementations provided in this application can be combined with each other without causing any contradiction.

[0167] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A vehicle window anti-pinch device, characterized in that: include: A signal sampling module, connected to the control module of the window motor, for collecting signal samples generated by the control module during the movement of the window; A data training module is connected to the signal sampling module and is used to train a data classification model based on the signal samples collected by the signal sampling module; the data classification model is used to determine whether the vehicle window is blocked by an obstacle based on the signal generated by the control module.

2. The device according to claim 1, characterized in that The data training module includes: A multi-layer neural network, wherein the multi-layer neural network comprises an input layer and an output layer; The input layer is used to take the signal sample as input data and perform first layer processing; The output layer is used to output data classification results.

3. The device according to claim 2, characterized in that Any layer other than the output layer in the multi-layer neural network includes: A matrix operation module, used for performing matrix operation processing on the received data; wherein, if the matrix operation module is located in the input layer, the received data includes the input data; if the matrix operation module is located in a layer other than the input layer, the received data includes the output data of the previous layer; The activation function module is used to activate the data after the matrix operation processing and pass the processed data to the next layer.

4. The device according to claim 2 or 3, characterized in that The multi-layer neural network comprises: Deep Neural Network (DNN); and / or Convolutional Neural Network (CNN).

5. The device according to any one of claims 1 to 4, characterized in that: The signal samples include one or more of the following: The first signal sample when the vehicle window encounters no obstacle; A second signal sample of the vehicle window encountering an obstacle; The third signal sample when the window reaches the top; The fourth signal sample where the window has not reached the top.

6. The device according to any one of claims 1 to 5, characterized in that: The signal sampling module comprises: an analog-to-digital conversion module, connected to the signal output terminal of the control module, for receiving the analog signal generated by the control module, and performing analog-to-digital conversion on the analog signal to obtain a digital signal; wherein the digital signal is used as the signal sample; The delay trigger module is connected to the analog-to-digital conversion module and is used to output a trigger signal, wherein the trigger signal is used to trigger the analog-to-digital conversion module to sample the analog signal.

7. The device according to claim 6, characterized in that The analog-to-digital conversion module comprises: A serial output port is connected to the data training module and is used to serially output the signal samples.

8. The device according to claim 6, characterized in that The analog-to-digital conversion module includes one or more signal channels; The delay trigger module is used to send at least one pre-trigger signal to the analog-to-digital conversion module, wherein the pre-trigger signal is used to configure the trigger sequence of the signal channel and the delay duration of the delay trigger.

9. The device according to claim 8, characterized in that The pre-trigger signal is associated with the signal channel, and the delay duration indicated by the pre-trigger signal is used to delay triggering of the associated signal channel.

10. A control method for preventing vehicle window pinching, characterized in that: include: Sampling a signal generated by a control module of a window motor during the movement of the window to obtain a signal sample; The signal samples are used to perform model training to obtain a data classification model; wherein the data classification model is used to determine whether the vehicle window is blocked by an obstacle based on the signal generated by the control module.

11. The control method according to claim 10, characterized in that: The step of sampling a signal generated by a control module of the vehicle window during the movement of the vehicle window to obtain a signal sample includes: Perform analog-to-digital conversion on the analog signal generated by the control module to obtain the sampled signal sample.

12. The control method according to claim 10, characterized in that: The method of using the signal samples to perform model training to obtain a data classification model includes: Set a first signal sample when the vehicle window does not encounter an obstacle, a second signal sample when the vehicle window encounters an obstacle, a third signal sample when the vehicle window reaches the top, and a fourth signal sample when the vehicle window does not reach the top; The first signal sample, the second signal sample, the third signal sample and the fourth signal sample are used to perform model training to obtain the data classification model.

13. A control chip for preventing window pinching, characterized in that: include: A vehicle window anti-pinch device as claimed in any one of claims 1 to 9.

14. A vehicle window control system, characterized in that: include: A window motor, connected to the window, for controlling the movement of the window; The control module of the window motor is connected to the window motor; The vehicle window anti-pinch device according to any one of claims 1 to 9, connected to the control module.

15. A vehicle, characterized in that: include: Vehicle body; A vehicle window, mounted on the vehicle body; A window motor, connected to the window, for controlling the movement of the window; The control module of the window motor is connected to the window motor; The vehicle window anti-pinch device according to any one of claims 1 to 9, connected to the control module.