Car window control method and device, electronic equipment and computer readable storage medium
By acquiring and analyzing the current data when the windows move, determining the target distance and adjusting the movement speed, the problem of existing window control methods causing the windows to be closed is solved, and safety is improved.
Patent Information
- Application Number
- CN202411979138.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-06
AI Technical Summary
The existing window control method may cause the window to be closed tightly because the moving window stops driving immediately after touching the boundary, which reduces safety.
By obtaining the current current ripple and current current when the moving window moves, the target distance between the target window and the first frame is determined based on the current ripple and the historical current ripple. In response to the target distance being less than or greater than the preset distance threshold and the current current being greater than or equal to the preset current, the moving window is controlled to move at a corresponding movement speed until the requirements are met.
By accurately determining the target distance and current threshold, timely adjusting the moving speed of the moving window to ensure that the windows are tightly closed and improve safety.
Smart Images

Figure CN119933486A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle control technology, and in particular to a vehicle window control method, device, electronic equipment and computer-readable storage medium. Background Art
[0002] Vehicles are one of the most important means of transportation in today's society, and almost every family has a vehicle. The windows in a vehicle not only affect the appearance and comfort of the vehicle, but also the safety of the passengers and the overall performance of the vehicle. For example, when the windows are open, passengers can have a good view and fresh air from the outside can be delivered to the vehicle, while when the windows are closed, passengers can be protected from privacy and external noise. Therefore, how to better control the opening and closing of windows is of great significance.
[0003] The current window control method usually controls the moving window in the window to rise or fall at a constant speed until the moving window stops driving immediately after touching the boundary. This window control method may cause the window to not be closed tightly, thereby reducing safety because the moving window stops driving immediately after touching the boundary. Summary of the invention
[0004] The main technical problem solved by the present application is to provide a vehicle window control method, device, electronic device and computer-readable storage medium, which can improve safety.
[0005] In order to solve the above technical problems, the present application provides a vehicle window control method.
[0006] In one embodiment, a vehicle window control method is applied to a vehicle window control device, the vehicle window control device includes a vehicle frame and a movable window arranged in the vehicle frame, the vehicle frame includes a first frame and a second frame arranged relatively to each other, the height of the first frame relative to the ground plane is higher than the height of the second frame relative to the ground plane, the method includes: controlling the movable window to move between the first frame and the second frame of the vehicle frame, obtaining a current current ripple number and a current current when the movable window moves; determining a target distance between a target window edge of the movable window and the first frame according to the current current ripple number and the obtained historical current ripple number, the target window edge is parallel to the first frame, and the distance between the target window edge and the first frame is less than the distance between other parallel window edges and the first frame; in response to the target distance being less than a first preset distance threshold or greater than a second preset distance threshold, and the current current being greater than or equal to a preset current, controlling the movable window to move at a corresponding moving speed until the requirement is met, and the first preset distance threshold is less than the second preset distance threshold.
[0007] In one embodiment, the step of determining the target distance between the target window edge of the moving window and the first frame based on the current current ripple number and the acquired historical current ripple number includes: obtaining a first product term between the cube of the current current ripple number and a preset temperature compensation coefficient; obtaining a second product term between the square of the current current ripple number and a preset voltage compensation coefficient; obtaining a third product term between the current current ripple number and a preset current compensation coefficient; and determining the sum of the first product term, the second product term, the third product term and the historical current ripple number as the target distance between the target window edge of the moving window and the first frame.
[0008] In one embodiment, after the step of determining the target distance between the target window edge of the moving window and the first frame according to the current current ripple number and the acquired historical current ripple number, the method further includes: in response to the target distance being greater than or equal to the first preset distance threshold and less than a third preset distance threshold, determining the current moving speed of the moving window according to the ratio between the current current ripple number and a preset sampling interval time, the third preset distance threshold being greater than the first preset distance threshold and less than the second preset distance threshold; in response to the current moving speed of the moving window being greater than the first preset speed threshold, adjusting the current moving speed of the moving window.
[0009] In one embodiment, the vehicle window control device includes a drive motor, and the step of adjusting the current moving speed of the moving window includes: reducing the voltage of the drive motor when driving the moving window to move, so as to reduce the current moving speed of the moving window; in response to the moving speed of the moving window after the reduction is less than a second preset speed threshold, controlling the voltage of the drive motor when driving the moving window to move to remain unchanged, and the second preset speed threshold is less than the first preset speed threshold.
[0010] In one embodiment, after the step of determining the current moving speed of the moving window based on the ratio between the current current ripple number and the preset sampling interval time, the method further includes: in response to the current moving speed of the moving window being less than a third preset speed threshold, performing a fault detection on the vehicle window to obtain a fault detection result, the third preset speed threshold being less than the first preset speed threshold; in response to the fault detection result indicating that the vehicle window has a fault, performing a vehicle window fault alarm process.
[0011] In one embodiment, the vehicle window control device includes a drive motor, and the step of controlling the movable window to move at a corresponding moving speed until the requirements are met includes: in response to the target distance being less than a first preset distance threshold, controlling the drive motor to output a preset voltage to drive the movable window to move at a first preset moving speed; in response to the time for which the drive motor outputs the preset voltage being greater than a preset time threshold, controlling the drive motor to stop driving.
[0012] In one embodiment, the window control device includes a drive motor, and the step of controlling the movable window to move at a corresponding moving speed until the requirements are met also includes: in response to the target distance being greater than a second preset distance threshold, controlling the drive motor to output a preset voltage to drive the movable window to move at a second preset moving speed; in response to the time for which the drive motor outputs the preset voltage being greater than a preset time threshold, controlling the drive motor to stop driving.
[0013] In order to solve the above technical problems, the present application provides a vehicle window control device, which includes a first area controller and a second area controller, the first area controller controls the vehicle windows in a first direction, and the second area controller controls the vehicle windows in a second direction, the first direction is opposite to the second direction; the first area controller and the second area controller respectively execute the method as described above to control the vehicle windows.
[0014] In order to solve the above technical problems, the present application provides an electronic device, including a memory and a processor, wherein the memory stores program instructions, and the processor retrieves the program instructions from the memory to execute the above vehicle window control method.
[0015] In order to solve the above technical problems, the present application provides a computer-readable storage medium, including: storing program data, and the program data is used to implement the above vehicle window control method when executed by a processor.
[0016] The above scheme controls the moving window to move between the first frame and the second frame of the vehicle frame, obtains the current current ripple number and the current current when the moving window moves; determines the target distance between the target window edge of the moving window and the first frame according to the current current ripple number and the obtained historical current ripple number; in response to the target distance being less than the first preset distance threshold or greater than the second preset distance threshold, and the current current being greater than or equal to the preset current, controls the moving window to move at the corresponding moving speed until the requirements are met. Thus, the target distance between the target window edge of the moving window and the first frame can be determined more accurately through the current current ripple number and the historical current ripple number, thereby accurately judging the moment when the target distance is less than the first preset distance threshold or greater than the second preset distance threshold, and then timely controlling and adjusting the moving speed of the moving window to ensure that the vehicle window is tightly closed and improve safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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 are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0018] Figure 1 is a flowchart of an exemplary embodiment of a vehicle window control method shown in the present application;
[0019] Figure 2 is a schematic structural diagram of an exemplary embodiment of a vehicle window control device shown in the present application;
[0020] Figure 3 is a block diagram of a vehicle window control device shown in an exemplary embodiment of the present application;
[0021] Figure 4 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application;
[0022] Figure 5 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION
[0023] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be appreciated that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the art without making creative work are within the scope of protection of the present application.
[0024] First of all, it should be noted that vehicles are one of the most important means of transportation in today's society, and almost every family has a vehicle. The windows in a vehicle not only affect the appearance and comfort of the vehicle, but also are related to the safety of passengers and the overall performance of the vehicle. For example, when the windows are open, passengers can have a good view and deliver fresh air from the outside to the vehicle, while when the windows are closed, passengers can protect their privacy and isolate external noise. Therefore, how to better control the opening and closing of windows is of great significance.
[0025] The current window control method usually controls the moving window in the window to rise or fall at a constant speed until the moving window stops driving immediately after touching the boundary. This window control method may cause the window to not be closed tightly, thereby reducing safety because the moving window stops driving immediately after touching the boundary.
[0026] Based on this, the present application proposes a vehicle window control method, device, electronic device and computer-readable storage medium. Figure 1 , Figure 1 It is a flowchart of an exemplary embodiment of a vehicle window control method shown in the present application.
[0027] The execution subject of the vehicle window control method may be a terminal device or a server or other processing device, wherein the terminal device may be a computer, a mobile device, a terminal, a computing device, a vehicle-mounted device, etc. The execution subject of the vehicle window control method may also be a vehicle window control device. In some possible implementations, the vehicle window control method may be implemented by a processor calling a computer-readable instruction stored in a memory.
[0028] In one embodiment, a vehicle window control method is applied to a vehicle window control device, the vehicle window control device includes a vehicle frame and a movable window arranged in the vehicle frame, the vehicle frame includes a first frame and a second frame arranged relatively, the height of the first frame relative to the ground plane is higher than the height of the second frame relative to the ground plane. The vehicle frame remains fixed relative to the vehicle, the first frame is an upper frame of the vehicle frame, the second frame is a lower frame of the vehicle frame, and the movable window moves up and down in the vehicle frame. For example, the movable window can be a glass that can move up and down in the vehicle window.
[0029] Specifically, a vehicle window control method provided in this embodiment includes the following steps:
[0030] Step S110 , during the process of controlling the movable window to move between the first frame and the second frame of the vehicle frame, obtaining the current current ripple number and the current current when the movable window moves.
[0031] The current current ripple number refers to the fluctuation data of the current used to drive the moving window to move. The current ripple number is used to describe the current change of the driving motor during operation. Specifically, the vehicle control device collects the current ripple number of the current current through a ripple detector or a ripple detection circuit to obtain the current current ripple number. The ripple detector can be an oscilloscope, an AC millivoltmeter, a data acquisition card, etc.
[0032] The current current refers to the current currently used to drive the moving window to move. Specifically, the vehicle control device collects the current currently used to drive the moving window to move through the current sensor to obtain the current current.
[0033] Specifically, the vehicle window control device includes a ripple detector and a current sensor. The vehicle control device collects the current ripple number of the current through the ripple detector at intervals to obtain the current current ripple number, and at the same time collects the current used to drive the moving window to move at intervals through the current sensor to obtain the current current.
[0034] Specifically, in the process of controlling the movable window to move between the first frame and the second frame of the vehicle frame, before the step of obtaining the current current ripple number and the current current when the movable window moves, the window control device responds to receiving a window movement instruction, the vehicle movement instruction includes the identification of the window to be moved and the target moving direction; determines the corresponding target movable window from a preset window mapping table according to the identification of the window to be moved, the preset window mapping table includes the correspondence between preset identifications and preset windows; controls the movable window in the target movable window to move in the target moving direction.
[0035] Step S120, determining a target distance between a target window edge of the moving window and a first frame according to the current current ripple number and the acquired historical current ripple number, wherein the target window edge is parallel to the first frame, and the distance between the target window edge and the first frame is smaller than the distance between other parallel window edges and the first frame.
[0036] The historical current ripple number refers to the current ripple number obtained at a historical moment. The acquisition time of the historical current ripple number is earlier than the acquisition time of the current current ripple number, and the difference between the acquisition time of the historical current ripple number and the acquisition time of the current current ripple number is equal to the preset sampling interval time of the current ripple number. Specifically, the window control device uses the difference between the current moment and the preset sampling interval time as the previous collection moment, retrieves the current ripple number corresponding to the previous collection moment from the preset database, and determines the retrieved current ripple number as the historical current ripple number. The preset database stores the current ripple number collected from the start moment of the moving window to the current moment. The preset sampling interval time can be 1ms.
[0037] The target window edge refers to the window edge of the movable window that can be exposed to the outside. The target window edge is parallel to the ground plane and the distance between the target window edge and the ground plane is greater than the distance between other parallel window edges of the movable window that are parallel to the ground plane and the ground plane. The target window edge can be the upper window edge, and the other parallel window edges can be the lower window edges.
[0038] The target distance refers to the distance between the target window edge and the first frame.
[0039] Specifically, the window control device determines the target distance between the target window edge of the movable window and the first frame according to the current current ripple number and the acquired historical current ripple number, including: obtaining a first product term between the cube of the current current ripple number and a preset temperature compensation coefficient; obtaining a second product term between the square of the current current ripple number and a preset voltage compensation coefficient; obtaining a third product term between the current current ripple number and the preset current compensation coefficient; and determining the sum of the first product term, the second product term, the third product term and the historical current ripple number as the target distance between the target window edge of the movable window and the first frame.
[0040] For example, the vehicle window control device inputs the current current ripple number and the historical current ripple number into a preset adaptive ripple algorithm to calculate the target distance between the target window edge of the movable window and the first frame. The preset adaptive ripple algorithm is as follows:
[0041] y=ax 3 +bx 2 +cx 1 +d
[0042] In the above formula, y represents the target distance, x represents the current current ripple number, d represents the historical current ripple number, a represents the preset temperature compensation coefficient, b represents the preset voltage compensation coefficient, and c represents the preset current compensation coefficient.
[0043] The historical current ripple number may also be the total current ripple number of the moving window obtained at a historical moment, that is, the total current ripple number measured when the distance between the moving window and the first frame is 0. Specifically, the vehicle window control device obtains the ratio between the current current ripple number and the total current ripple number, and uses the product of the ratio and the preset total moving length of the moving window as the target distance.
[0044] Step S130, in response to the target distance being less than the first preset distance threshold or greater than the second preset distance threshold, and the current current being greater than or equal to the preset current, controlling the moving window to move at a corresponding moving speed until the requirements are met and the first preset distance threshold is less than the second preset distance threshold.
[0045] The first preset distance threshold may be the shortest distance that can be achieved between the movable window and the first frame, that is, the distance between the target window edge of the movable window and the first frame when the vehicle window is closed.
[0046] The second preset distance threshold may be the farthest distance that can be reached between the movable window and the first frame, or the distance between the second frame and the first frame, or the distance between the target window edge of the movable window and the first frame when the vehicle window is fully opened.
[0047] The preset current may include a first preset stall current and a second preset stall current. The first preset stall current refers to the current when the movable window reaches the first frame. At this time, the first frame will hinder the movement of the movable window, causing the load of the motor to increase, thereby causing the current to increase. The second preset stall current refers to the current when the movable window reaches the second frame. At this time, the second frame will hinder the movement of the movable window, causing the load of the motor to increase, thereby causing the current to increase.
[0048] As an example, in response to the target distance being less than the first preset distance threshold, and the current current being greater than or equal to the first preset stall current, the window control device controls the movable window to move at the corresponding first preset moving speed until the requirement is met. Among them, the requirement can be met that the distance between the target window edge of the movable window and the first frame is less than or equal to the fifth preset distance threshold, and the fifth preset distance threshold is less than the first preset distance threshold. The requirement can also be met that the movable window moves at the first preset moving speed for a preset time period. Therefore, by judging that the target distance is less than the first preset distance threshold, and the current current is greater than or equal to the first preset stall current, it can be determined that the movable window has risen to the top of the window, so that controlling the movable window to continue to move can ensure that the window is tightly closed.
[0049] As another example, in response to the target distance being greater than the second preset distance threshold, and the current current being greater than or equal to the second preset stall current, the window control device controls the movable window to move at the corresponding second preset moving speed until the requirement is met. Wherein, the requirement may be met when the distance between the target window edge of the movable window and the first frame is greater than or equal to the sixth preset distance threshold, and the sixth preset distance threshold is greater than the second preset distance threshold. The requirement may also be met when the movable window moves at the second preset moving speed for a preset time period. Thus, by judging that the target distance is greater than the second preset distance threshold, and the current current is greater than or equal to the second preset stall current, it can be determined that the movable window has dropped to the bottom of the window, so that controlling the movable window to continue to move can ensure that the window is fully opened.
[0050] It can be seen that in the process of controlling the moving window to move between the first frame and the second frame of the vehicle frame, the current current ripple number and the current current when the moving window moves are obtained; the target distance between the target window edge of the moving window and the first frame is determined according to the current current ripple number and the obtained historical current ripple number; in response to the target distance being less than the first preset distance threshold or greater than the second preset distance threshold, and the current current being greater than or equal to the preset current, the moving window is controlled to move at the corresponding moving speed until the requirements are met. Therefore, the target distance between the target window edge of the moving window and the first frame can be determined more accurately through the current current ripple number and the historical current ripple number, so as to accurately judge the moment when the target distance is less than the first preset distance threshold or greater than the second preset distance threshold, and then the moving speed of the moving window can be adjusted in time to ensure that the window is tightly closed and improve safety.
[0051] The vehicle window control device includes a drive motor, and the vehicle window control device controls the movable window to move at a corresponding moving speed until the requirements are met. As an example, in response to the target distance being less than a first preset distance threshold, the vehicle window control device controls the drive motor to output a preset voltage to drive the movable window to move at a first preset moving speed; in response to the time when the drive motor outputs the preset voltage being greater than a preset time threshold, the drive motor is controlled to stop driving. As another example, in response to the target distance being greater than a second preset distance threshold, the vehicle window control device controls the drive motor to output a preset voltage to drive the movable window to move at a second preset moving speed; in response to the time when the drive motor outputs the preset voltage being greater than a preset time threshold, the drive motor is controlled to stop driving.
[0052] For example, the preset voltage may be 100% of the preset driving voltage, and the vehicle window control device controls the driving motor to output 100% of the driving voltage to drive the movable window to move.
[0053] In one embodiment, after the window control device determines the target distance between the target window edge of the moving window and the first frame according to the current current ripple number and the acquired historical current ripple number, the window control method further includes: in response to the target distance being greater than or equal to the first preset distance threshold and less than the third preset distance threshold, determining the current moving speed of the moving window according to the ratio between the current current ripple number and the preset sampling interval time, the third preset distance threshold being greater than the first preset distance threshold and less than the second preset distance threshold; in response to the current moving speed of the moving window being greater than the first preset speed threshold, adjusting the current moving speed of the moving window. Thus, when the target distance is greater than or equal to the first preset distance threshold and less than the third preset distance threshold, the moving window is in an area close to the top of the window, and the current moving speed of the moving window is reduced at this time, so as to avoid the top-rushing noise caused by the moving window reaching the top of the window at too fast a speed, and at the same time, the speed is adjusted in the non-anti-pinch area of the window to avoid calibrating the window anti-pinch.
[0054] The vehicle window control device determines the current moving speed of the moving window according to the ratio between the current current ripple number and the preset sampling interval time. Specifically, the vehicle window control device determines the current moving speed of the moving window as the ratio between the current current ripple number and the preset sampling interval time.
[0055] The vehicle window control device includes a driving motor, and the steps of adjusting the current moving speed of the moving window by the vehicle window control device include: reducing the voltage of the driving motor when driving the moving window to move, so as to reduce the current moving speed of the moving window; in response to the moving speed of the moving window after the reduction is less than a second preset speed threshold, controlling the voltage of the driving motor when driving the moving window to move to remain unchanged, and the second preset speed threshold is less than the first preset speed threshold.
[0056] The window control device reduces the voltage output by the drive motor to the movable window through PWM (Pulse-Width Modulation) voltage regulation mode, so as to reduce the voltage when the drive motor drives the movable window to move, thereby reducing the current moving speed of the movable window.
[0057] In one embodiment, after the window control device determines the target distance between the target window edge of the moving window and the first frame according to the current current ripple number and the acquired historical current ripple number, the window control method further includes: in response to the target distance being greater than or equal to the fourth preset distance threshold and less than the second preset distance threshold, determining the current moving speed of the moving window according to the ratio between the current current ripple number and the preset sampling interval time, the fourth preset distance threshold being greater than the first preset distance threshold and less than the second preset distance threshold; in response to the current moving speed of the moving window being greater than the fourth preset speed threshold, adjusting the current moving speed of the moving window. Thus, when the target distance is greater than or equal to the fourth preset distance threshold and less than the second preset distance threshold, the moving window is in an area close to the bottom of the window, and reducing the current moving speed of the moving window at this time can avoid the noise caused by the moving window reaching the bottom of the window at too fast a speed, and is also conducive to the window being fully opened.
[0058] Specifically, the window control device reduces the voltage of the drive motor when driving the moving window to move so as to reduce the current moving speed of the moving window; in response to the current moving speed of the moving window after the reduction being less than a fifth preset speed threshold, the voltage of the drive motor when driving the moving window to move remains unchanged, and the fifth preset speed threshold is less than the fourth preset speed threshold.
[0059] In one embodiment, after the step of determining the current moving speed of the moving window based on the ratio between the current current ripple number and the preset sampling interval time, the window control device also includes: in response to the current moving speed of the moving window being less than a third preset speed threshold, performing a fault detection on the window to obtain a fault detection result, and the third preset speed threshold is less than the first preset speed threshold; in response to the fault detection result indicating that the window has a fault, performing a window fault alarm process.
[0060] Specifically, the fault detection of the vehicle window may include detecting the current and power supply when the vehicle window is driven to move in the vehicle window control device, and may also be detecting obstacles on the vehicle window to obtain the fault detection result.
[0061] The fault detection result may include a fault in the window control circuit or an obstacle in the window, that is, the window is faulty, and the fault detection result may also include that the window is not faulty. In response to the fault detection result indicating that the window is faulty, the window control device sends window fault information to a preset service end. The preset service end may be a mobile phone or a vehicle dashboard, etc.
[0062] The present application provides a vehicle window control device, including a first area controller and a second area controller, the first area controller controls the vehicle windows in a first direction, and the second area controller controls the vehicle windows in a second direction, the first direction is opposite to the second direction; the first area controller and the second area controller respectively execute the above method to control the vehicle windows.
[0063] The first zone controller may be a LZCU (Left Zone Control Unit) for controlling the front and rear windows on the left side of the vehicle.
[0064] The second zone controller may be a RZCU (Right Zone Control Unit) for controlling the front and rear windows on the right side of the vehicle.
[0065] Figure 2 FIG. 1 is a schematic diagram of an exemplary embodiment of a vehicle window control device shown in the present application. Figure 2 As shown, the window control device includes LZCU and RZCU, the first zone controller LZCU is respectively connected to the left front window and the left rear window for communication, and the second zone controller RZCU is respectively connected to the right front window and the right rear window for communication.
[0066] Compared with the prior art in which the left front door control submodule, the left rear door control submodule, the right front door control submodule and the right rear door control submodule are communicated and connected respectively through the BCMBCM (Body Control Module), and then the left front door control submodule controls the left front window, the left rear door control submodule controls the left rear window, the right front door control submodule controls the right front window, and the right rear door control submodule controls the right rear window. The window control device provided in this embodiment only needs two controllers, each of which can control two windows, which is lower than the cost of each control module controlling one window.
[0067] Figure 3 FIG. 1 is a block diagram of a vehicle window control device shown in an exemplary embodiment of the present application. Figure 3 As shown, the exemplary vehicle window control device 300 includes: an acquisition module 310, a target distance determination module 320 and a control module 330. Specifically:
[0068] An acquisition module 310 is used to control the movable window to move between the first frame and the second frame of the vehicle frame, and to acquire the current current ripple number and the current current when the movable window moves;
[0069] A target distance determination module 320 is used to determine a target distance between a target window edge of the moving window and a first frame according to a current current ripple number and an acquired historical current ripple number, wherein the target window edge is parallel to the first frame, and the distance between the target window edge and the first frame is smaller than the distance between other parallel window edges and the first frame;
[0070] The control module 330, in response to the target distance being less than a first preset distance threshold or greater than a second preset distance threshold, and the current current being greater than or equal to a preset current, controls the moving window to move at a corresponding moving speed until the requirements are met and the first preset distance threshold is less than the second preset distance threshold.
[0071] In this exemplary vehicle window control device, the current current ripple number and the current current when the moving window moves are obtained during the process of controlling the moving window to move between the first frame and the second frame of the vehicle frame; the target distance between the target window edge of the moving window and the first frame is determined according to the current current ripple number and the obtained historical current ripple number; in response to the target distance being less than the first preset distance threshold or greater than the second preset distance threshold, and the current current being greater than or equal to the preset current, the moving window is controlled to move at the corresponding moving speed until the requirements are met. Thus, the target distance between the target window edge of the moving window and the first frame can be more accurately determined by the current current ripple number and the historical current ripple number, so as to accurately judge the moment when the target distance is less than the first preset distance threshold or greater than the second preset distance threshold, and then the moving speed of the moving window can be timely controlled and adjusted to ensure that the vehicle window is tightly closed and improve safety.
[0072] Among them, the functions of each module can be found in the embodiment of the vehicle window control method, and will not be repeated here.
[0073] In order to implement the window control method of the above embodiment, the present application proposes another electronic device, which can be found in detail. Figure 4 , Figure 4 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application.
[0074] The electronic device 400 includes a memory 401 and a processor 402 , wherein the memory 401 and the processor 402 are coupled.
[0075] The memory 401 is used to store program data, and the processor 402 is used to execute the program data to implement the vehicle window control method of the above embodiment.
[0076] In this embodiment, the processor 402 may also be referred to as a CPU (Central Processing Unit). The processor 402 may be an integrated circuit chip having signal processing capabilities. The processor 402 may also be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. A general-purpose processor may be a microprocessor or the processor 402 may also be any conventional processor, etc.
[0077] The present application also provides a computer-readable storage medium, such as Figure 5 As shown, the computer-readable storage medium 500 is used to store program data 501. When the program data 501 is executed by the processor, it is used to implement the vehicle window control method in the method embodiment of the present application.
[0078] The method involved in the embodiment of the vehicle window control method of the present application, when implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a device, such as a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0079] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A vehicle window control method, characterized in that: Applied to a vehicle window control device, the vehicle window control device comprises a vehicle frame and a movable window arranged in the vehicle frame, the vehicle frame comprises a first frame and a second frame arranged opposite to each other, the height of the first frame relative to the ground plane is higher than the height of the second frame relative to the ground plane, the method comprises: During the process of controlling the movable window to move between the first frame and the second frame of the vehicle frame, obtaining the current current ripple number and the current current when the movable window moves; Determining a target distance between a target window edge of the movable window and the first frame according to the current current ripple number and the acquired historical current ripple number, wherein the target window edge is parallel to the first frame, and the distance between the target window edge and the first frame is smaller than the distance between other parallel window edges and the first frame; In response to the target distance being less than a first preset distance threshold or greater than a second preset distance threshold, and the current current being greater than or equal to a preset current, the moving window is controlled to move at a corresponding moving speed until the requirements are met, and the first preset distance threshold is less than the second preset distance threshold.
2. The method according to claim 1, characterized in that The step of determining a target distance between a target window edge of the movable window and the first frame according to the current current ripple number and the acquired historical current ripple number comprises: Obtaining a first product term between the cube of the current current ripple number and a preset temperature compensation coefficient; Obtaining a second product term between the square of the current current ripple number and a preset voltage compensation coefficient; Obtaining a third product term between the current current ripple number and a preset current compensation coefficient; The sum of the first product term, the second product term, the third product term and the historical current ripple number is determined as a target distance between a target window edge of the moving window and the first frame.
3. The method according to claim 1, characterized in that: After the step of determining the target distance between the target window edge of the movable window and the first frame according to the current current ripple number and the acquired historical current ripple number, the method further includes: In response to the target distance being greater than or equal to the first preset distance threshold and less than a third preset distance threshold, determining a current moving speed of the moving window according to a ratio between the current current ripple number and a preset sampling interval time, the third preset distance threshold being greater than the first preset distance threshold and less than the second preset distance threshold; In response to the current moving speed of the moving window being greater than a first preset speed threshold, the current moving speed of the moving window is adjusted.
4. The method according to claim 3, characterized in that The vehicle window control device includes a driving motor, and the step of adjusting the current moving speed of the moving window includes: reducing the voltage of the driving motor when driving the moving window to move, so as to reduce the current moving speed of the moving window; In response to the reduced moving speed of the moving window being less than a second preset speed threshold, the voltage of the driving motor driving the moving window to move is controlled to remain unchanged, and the second preset speed threshold is less than the first preset speed threshold.
5. The method according to claim 3, characterized in that: After the step of determining the current moving speed of the moving window according to the ratio between the current current ripple number and the preset sampling interval time, the method further includes: In response to a current moving speed of the moving window being less than a third preset speed threshold, performing a fault detection on the vehicle window to obtain a fault detection result, the third preset speed threshold being less than the first preset speed threshold; In response to the fault detection result indicating that the vehicle window is faulty, a vehicle window fault alarm process is performed.
6. The method according to claim 1, characterized in that The vehicle window control device includes a driving motor, and the step of controlling the movable window to move at a corresponding moving speed until the requirement is met includes: In response to the target distance being less than a first preset distance threshold, controlling the driving motor to output a preset voltage to drive the moving window to move at a first preset moving speed; In response to the time during which the drive motor outputs the preset voltage being greater than a preset time threshold, the drive motor is controlled to stop driving.
7. The method according to claim 1, characterized in that The vehicle window control device includes a driving motor, and the step of controlling the movable window to move at a corresponding moving speed until the requirement is met further includes: In response to the target distance being greater than a second preset distance threshold, controlling the driving motor to output a preset voltage to drive the moving window to move at a second preset moving speed; In response to the time during which the drive motor outputs the preset voltage being greater than a preset time threshold, the drive motor is controlled to stop driving.
8. A vehicle window control device, characterized in that: The device comprises a first zone controller and a second zone controller, the first zone controller controls the vehicle windows in a first direction, the second zone controller controls the vehicle windows in a second direction, the first direction being opposite to the second direction; The first zone controller and the second zone controller respectively execute the method according to any one of claims 1 to 7 to control the vehicle windows.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores program instructions, and the processor retrieves the program instructions from the memory to execute the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: include: Program data is stored, and when the program data is executed by a processor, it is used to implement the method according to any one of claims 1 to 8.