Car window control method, device and equipment and storage medium
By obtaining the current position and control instructions when the window is stopped, and adjusting the automatic gear recognition time, the problem of fixed automatic gear recognition time in the existing technology is solved, and the convenience of window operation and user experience are improved.
Patent Information
- Application Number
- CN202410821075.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-10
AI Technical Summary
The automatic gear recognition time parameter of the existing lever-type window switch is fixed and cannot be adjusted according to customer needs or window position, resulting in reduced convenience.
By obtaining the current motion status and control instructions of the window, the current position is obtained when the window is stopped, and the automatic transmission recognition time is adjusted according to the position and instructions to achieve flexible adjustment of the target automatic transmission recognition time.
The convenience and user experience of window operation are improved, and the appropriate automatic gear recognition time strategy is selected according to different window positions, which enhances the flexibility and accuracy of automatic gear recognition.
Smart Images

Figure CN118622111A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle window control technology, and in particular to a vehicle window control method, device, equipment and storage medium. Background Art
[0002] As vehicle interiors become more concise, traditional window switches are gradually replaced by lever-type window switches. To further reduce costs and optimize the design, existing lever-type window switches combine automatic and manual gears, that is, they share a switch contact, and determine whether it is automatic or manual gear by identifying the conduction and conduction time of this contact. However, in the prior art, the parameter value for conducting time determination is fixed and cannot be automatically adjusted according to customer needs or the current window position, resulting in reduced convenience. Summary of the invention
[0003] The main purpose of the present application is to provide a vehicle window control method, device, equipment and storage medium, aiming to solve the technical problem that the automatic gear recognition time of the switch cannot be adjusted.
[0004] To achieve the above object, the present application proposes a vehicle window control method, the vehicle window control method comprising:
[0005] Get the current motion state of the window and the window control instructions;
[0006] When the current motion state is that the window is stopped, obtaining the current window position;
[0007] The current automatic gear recognition time of the vehicle window is adjusted according to the current vehicle window position and the vehicle window control instruction to obtain a target automatic gear recognition time, and the vehicle window is controlled according to the target automatic gear recognition time.
[0008] In one embodiment, the step of adjusting the current automatic gear recognition time of the window according to the current window position and the window control instruction to obtain a target automatic gear recognition time, and controlling the window according to the target automatic gear recognition time includes:
[0009] When the current window position is in the first preset area, detecting whether the window control instruction is a window raising instruction;
[0010] When the vehicle window control instruction is a vehicle window raising instruction, reducing the current automatic gear recognition time of the vehicle window to a first holding time, and using the first holding time as a target automatic gear recognition time;
[0011] detecting a window control state according to the target automatic gear recognition time;
[0012] When the window control state is a manual up state, setting a first delay time;
[0013] When the first delay time is reached, the window is controlled to be manually raised, and a first position difference between the current window position and the window top dead center is determined;
[0014] When the first position difference is less than a first distance threshold, the vehicle window is controlled to continue rising until the vehicle window is closed.
[0015] In one embodiment, after the step of detecting whether the window control instruction is a window raising instruction when the current window position is the first preset area, the method further includes:
[0016] When the window control instruction is a window lowering instruction, reducing the current automatic gear recognition time of the window to a second holding time, and using the second holding time as a target automatic gear recognition time, the first holding time being less than the second holding time;
[0017] detecting a window control state according to the target automatic gear recognition time;
[0018] The window is controlled to be lowered according to the window control state and the window lowering instruction.
[0019] In one embodiment, the step of adjusting the current automatic gear recognition time of the window according to the current window position and the window control instruction to obtain a target automatic gear recognition time, and controlling the window according to the target automatic gear recognition time includes:
[0020] When the current window position is in the second preset area, detecting whether the window control instruction is a window raising instruction, and the height of the second preset area is lower than the height of the first preset area;
[0021] When the vehicle window control instruction is a vehicle window raising instruction, reducing the current automatic gear recognition time of the vehicle window to a second holding time, and using the second holding time as a target automatic gear recognition time;
[0022] detecting a window control state according to the target automatic gear recognition time;
[0023] When the window control state is a manual rising state, controlling the window to be manually raised until a release switch signal is received, controlling the window to stop, and acquiring a first stop time;
[0024] When the first stop time is less than a preset time threshold, detecting whether an update window control instruction is received;
[0025] When the window control update instruction is received and the window control update instruction is a window lowering instruction, updating the target automatic gear recognition time to a third holding time, wherein the third holding time is greater than the second holding time;
[0026] detecting a window control state according to the target automatic gear recognition time;
[0027] The window is controlled to be lowered according to the window control state and the window lowering instruction.
[0028] In one embodiment, when the current window position is in the second preset area, after the step of detecting whether the window control instruction is a window raising instruction, the step further includes:
[0029] When the vehicle window control instruction is a vehicle window lowering instruction, reducing the current automatic gear recognition time of the vehicle window to a first holding time, and using the first holding time as a target automatic gear recognition time;
[0030] detecting a window control state according to the target automatic gear recognition time;
[0031] The window is controlled to be lowered according to the window control state and the window lowering instruction.
[0032] In one embodiment, after the step of detecting whether an instruction to update the window control is received when the first stop time is less than a preset time threshold, the method further includes:
[0033] When the window control update instruction is received and the window control update instruction is a window raising instruction, updating the target automatic gear recognition time to a first holding time;
[0034] detecting a window control state according to the target automatic gear recognition time;
[0035] The window is controlled to rise according to the window control state and the window rising instruction.
[0036] In one embodiment, the step of adjusting the current automatic gear recognition time of the window according to the current window position and the window control instruction to obtain a target automatic gear recognition time, and controlling the window according to the target automatic gear recognition time includes:
[0037] When the current window position is in the third preset area, the current automatic gear recognition time of the window is used as the target automatic gear recognition time, the current automatic gear recognition time is greater than the second holding time and less than the third holding time, and the height of the third preset area is lower than the height of the first preset area and higher than the height of the second preset area;
[0038] detecting a window control state according to the target automatic gear recognition time;
[0039] The vehicle window is controlled according to the vehicle window control state and the vehicle window control instruction.
[0040] In one embodiment, after the step of obtaining the current motion state of the vehicle window and the vehicle window control instruction, the method further includes:
[0041] When the current motion state is a stop state controlled by the vehicle window control instruction, acquiring a first stop time after the vehicle window stops;
[0042] When the first stop time is less than a preset time threshold, detecting whether an update window control instruction is received;
[0043] When the updated window control instruction is received and the updated window control instruction is inconsistent with the window control instruction, the vehicle is controlled to prohibit recognition of the automatic window control state until the manual window control ends.
[0044] In one embodiment, after the step of obtaining the current motion state of the vehicle window and the vehicle window control instruction, the method further includes:
[0045] When the current motion state is the anti-pinch reversal before the window stops, obtaining a second stop time after the window stops;
[0046] When the second stop time is less than a preset time threshold, detecting whether an update window control instruction is received;
[0047] When the window control update instruction is received, the current automatic gear recognition time of the window is reduced to a first holding time, and the first holding time is used as a target automatic gear recognition time;
[0048] detecting a window control state according to the target automatic gear recognition time;
[0049] The vehicle window is controlled according to the vehicle window control state and the updated vehicle window control instruction.
[0050] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle window control device, the vehicle window control device comprising:
[0051] An acquisition module, used to acquire the current motion state of the window and the window control instruction;
[0052] The acquisition module is further used to acquire the current window position when the current motion state is that the window is stopped;
[0053] The adjustment module is used to adjust the current automatic gear recognition time of the window according to the current window position and the window control instruction, obtain the target automatic gear recognition time, and control the window according to the target automatic gear recognition time.
[0054] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle window control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle window control method described above.
[0055] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle window control method described above are implemented.
[0056] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the vehicle window control method described above are implemented.
[0057] One or more technical solutions proposed in the present application are achieved by obtaining the current movement state of the vehicle window and the window control instruction; when the current movement state is that the vehicle window is stopped, obtaining the current window position; adjusting the current automatic gear recognition time of the vehicle window according to the current window position and the window control instruction to obtain a target automatic gear recognition time, and controlling the vehicle window according to the target automatic gear recognition time. The current window position can be determined when the vehicle window is stopped, thereby selecting different automatic gear recognition time strategies according to the current vehicle window and the corresponding window control instruction, and flexibly adjusting the current automatic gear recognition time of the vehicle window. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0059] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0060] Figure 1 A flow chart of the first embodiment of the vehicle window control method of the present application;
[0061] Figure 2 This is a schematic diagram of the division of vehicle window glass areas in an embodiment of the vehicle window control method of the present application;
[0062] Figure 3 A flow chart of the second embodiment of the vehicle window control method of the present application;
[0063] Figure 4This is a schematic diagram of the control process of a vehicle window in the first preset area in an embodiment of the vehicle window control method of the present application;
[0064] Figure 5 A flowchart diagram of the third embodiment of the vehicle window control method of the present application;
[0065] Figure 6 This is a schematic diagram of the control flow of a vehicle window when the vehicle window is in the second preset area in an embodiment of the vehicle window control method of the present application;
[0066] Figure 7 A flowchart diagram of a fourth embodiment of the vehicle window control method of the present application;
[0067] Figure 8 This is a schematic diagram of the module structure of the vehicle window control device according to an embodiment of the present application;
[0068] Fig. 9 Schematic diagram of the device structure of the hardware operating environment involved in the vehicle window control method in the embodiment of the present application.
[0069] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0070] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0071] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0072] The main solution of the embodiment of the present application is: obtaining the current movement state of the vehicle window and the window control instruction; when the current movement state is that the vehicle window is stopped, obtaining the current window position; adjusting the current automatic gear recognition time of the vehicle window according to the current window position and the window control instruction, obtaining the target automatic gear recognition time, and controlling the vehicle window according to the target automatic gear recognition time.
[0073] In the prior art, when the lever switch is pressed in different directions, different nodes are turned on. The specific pressing direction (window raising or window lowering) can be identified according to the different resistance voltage divisions. Automatic or manual adjustment is then determined based on the user's pressing time. However, the judgment parameter for the conduction time (such as 300 milliseconds) is fixed and cannot be automatically adjusted according to the position of the window glass. For example, when the glass is closed, the user only wants to open it slightly for ventilation, but due to the short operation conduction time, the automatic lowering is triggered, affecting the user experience.
[0074] The present application provides a solution, which is to flexibly adjust the current automatic gear recognition time of the window by judging the reason why the window stops and selecting different automatic gear recognition time strategies according to different reasons when the window stops.
[0075] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a window control device, etc. The following takes the window control device as an example to illustrate this embodiment and the following embodiments.
[0076] Based on this, the embodiment of the present application provides a window control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle window control method of the present application.
[0077] In this embodiment, the vehicle window control method includes steps S10 to S30:
[0078] Step S10: Acquire the current motion state of the vehicle window and the vehicle window control instruction.
[0079] It should be noted that the current motion state of the vehicle window includes a stop state or a motion state, which can be detected by a motion sensor, and the vehicle window control instruction may include a vehicle window raising instruction or a vehicle window lowering instruction.
[0080] In a feasible implementation manner, after step S10, steps A11 to A13 may also be included:
[0081] Step A11: when the current motion state is a stop state controlled by the vehicle window control instruction, obtaining a first stop time after the vehicle window stops.
[0082] It should be noted that when the movement state of the window is a stopped state, the specific reason for the stop can be determined. The reason for the stop may be that it is interrupted by a new window control instruction and stops, or the user touches the window when the window is moving, causing the window anti-pinch reversal to stop. Therefore, the reason for the stop when the window stops can be detected.
[0083] In a specific implementation, when the vehicle window stops due to a vehicle window control instruction, a first stop time after the vehicle window stops can be obtained, and the first stop time is the time started after the vehicle window stops.
[0084] Step A12: When the first stop time is less than a preset time threshold, detecting whether an update window control instruction is received.
[0085] It should be understood that the preset time threshold can be set according to demand, for example, set to 500ms, by comparing the first stop time with the preset time threshold, if the first stop time is greater than or equal to the preset time threshold, the window is controlled to stop normally. If the first stop time is less than or equal to the preset time threshold, it is detected whether an update window control instruction is received, and the update window control instruction is a new switch input instruction. If the update window control instruction is not received, the window is also controlled to stop normally.
[0086] Step A13: When the updated window control instruction is received and the updated window control instruction is inconsistent with the window control instruction, the vehicle is controlled to prohibit recognition of the automatic window control state until the manual window control ends.
[0087] In a specific implementation, if an updated window control instruction is received, it is determined whether the updated window control instruction is consistent with the previous window control instruction. If they are consistent, the window is controlled to stop normally.
[0088] If the updated window control command is inconsistent with the previous window control command, the vehicle's automatic gear recognition is shielded and only the manual gear is retained. After the manual gear operation of the window is completed, the automatic gear recognition is restored.
[0089] In a feasible implementation manner, after step S10, steps B11 to B15 may also be included:
[0090] Step B11: when the current motion state is the anti-pinch reversal before the window stops, obtaining a second stop time after the window stops.
[0091] It should be noted that when the current motion state is that the window stops before anti-pinch reversal, it is proved that the reason for the window to stop is that it encounters an obstacle and anti-pinch reversal, then the second stop time of the window anti-pinch reversal stop can be obtained.
[0092] Step B12: When the second stop time is less than a preset time threshold, detecting whether a window control update instruction is received.
[0093] In a specific implementation, the second stop time can be compared with a preset time threshold. If the second stop time is greater than or equal to the preset time threshold, the window is controlled to stop normally. If the second stop time is less than the preset time threshold, it is determined whether there is a new window control instruction. If no updated window control instruction is received, the window is controlled to stop normally.
[0094] Step B13: upon receiving the window control update instruction, reducing the current automatic gear recognition time of the window to a first holding time, and using the first holding time as a target automatic gear recognition time.
[0095] It should be noted that when there is a new window control instruction, the current automatic gear recognition time of the window can be reduced, and the first holding time can be set to 100ms. Since anti-pinch occurred when the window was operated last time, the lifting and lowering automatic gear judgment time parameters can be reduced within a certain period of time, and the reduced time can be used as the latest automatic gear recognition time.
[0096] Step B14: Detecting the window control state according to the target automatic gear recognition time.
[0097] In a specific implementation, after the current automatic gear recognition time is updated, the window control state can be detected through the updated automatic gear recognition time. The window control state can be automatic control or manual control, so that corresponding actions can be performed according to the window control state. For example, if the user's operation time is less than the target automatic gear recognition time, the window control state is automatic control, or if the user's operation time is greater than or equal to the target automatic gear recognition time, the window control state is manual control.
[0098] Step B15: Control the vehicle window according to the vehicle window control state and the updated vehicle window control instruction.
[0099] It can be understood that the windows can be controlled according to the window control state and the updated window control instructions. For example, if the window control state is automatic control, the windows can be controlled to perform automatic actions based on the updated window control instructions (upward or downward instructions). If the window control state is manual control, manual actions can be performed based on the updated window control instructions until the user releases the switch.
[0100] Step S20: when the current motion state is that the window is stopped, obtaining the current window position.
[0101] It should be noted that if the current movement state of the vehicle window is that the vehicle window is normally stopped, the current vehicle window position can be obtained.
[0102] Normal stop of the window may be: not an anti-pinch reversal stop or a stop interrupted by a switch signal, a stop interrupted by a switch signal, the stop time is less than a preset time threshold, and an update window control instruction is received but the updated window control instruction is consistent with the previous window control instruction, a stop interrupted by a switch signal, the stop time is greater than or equal to the preset time threshold, a window anti-pinch reversal stop, the stop time is greater than or equal to the preset time threshold, the stop time is less than or equal to the preset time threshold but no update window control instruction is received.
[0103] The current window position can be anywhere from the top to the bottom, and the window glass area can be divided in advance, such as Figure 2 As shown, Figure 2This is a schematic diagram of the window glass area division, which is divided into the top area, the middle area and the bottom area. The windows are located in different areas, and the adjustment of the current automatic gear recognition time is different.
[0104] Step S30: adjusting the current automatic gear recognition time of the vehicle window according to the current vehicle window position and the vehicle window control instruction to obtain a target automatic gear recognition time, and controlling the vehicle window according to the target automatic gear recognition time.
[0105] In a specific implementation, the current automatic gear recognition time of the window can be adjusted according to the current window position and the corresponding window control instruction to obtain the optimal automatic gear recognition time, that is, the target automatic gear recognition time. The target automatic gear recognition time is the automatic gear recognition time after adjustment. When the optimal automatic gear recognition time is obtained, the window is automatically or manually controlled.
[0106] Specifically, the judgment can be made based on the user's operation time. If the user's operation time is less than the target automatic gear recognition time, the window is automatically controlled according to the window control instruction. If the user's operation time is greater than or equal to the target automatic gear recognition time, the window is manually controlled according to the window control instruction. Different automatic gear judgment time logics are selected according to the position of the window to improve the adjustment effect of the automatic gear recognition time.
[0107] The present embodiment provides a vehicle window control method, which obtains the current movement state of the vehicle window and the vehicle window control instruction; when the current movement state is that the vehicle window is stopped, obtains the current vehicle window position; according to the current vehicle window position and the vehicle window control instruction, the current automatic gear recognition time of the vehicle window is adjusted to obtain the target automatic gear recognition time, and the vehicle window is controlled according to the target automatic gear recognition time. The current vehicle window position can be determined when the vehicle window is stopped, so that different automatic gear recognition time strategies can be selected according to the current vehicle window and the corresponding vehicle window control instruction, and the current automatic gear recognition time of the vehicle window can be flexibly adjusted.
[0108] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , step S30 includes steps S301 to S306:
[0109] Step S301: When the current window position is in the first preset area, detecting whether the window control instruction is a window raising instruction.
[0110] It should be noted that the first preset area is the top area. When the current window position is the top area, it can be detected whether the window control instruction is a window raising instruction.
[0111] If the window control instruction is not a window up instruction, then in a feasible implementation manner, step S301 also includes: when the window control instruction is a window down instruction, reducing the current automatic gear recognition time of the window to a second holding time, and using the second holding time as a target automatic gear recognition time, the first holding time being less than the second holding time; detecting the window control state according to the target automatic gear recognition time; and controlling the window to be lowered according to the window control state and the window down instruction.
[0112] It should be noted that when the window control instruction is a window lowering instruction, the automatic gear recognition time can be reduced, and the current automatic gear recognition time can be reduced to the second holding time, the second holding time is greater than the first holding time, and the second holding time can be set to 200ms. After the current automatic gear recognition time is reduced to 200ms, this can be used as the subsequent automatic gear recognition time, and the window control state can be detected according to the target automatic gear recognition time. The window control state can be automatic or manual. For example, the user's operation time of the window switch button is obtained. When the operation time is greater than or equal to the target automatic gear recognition time, it is determined that the window control state is manual, and the window is manually lowered based on the window lowering instruction until the user releases the switch. If the window control state is automatic, the window is automatically lowered based on the window lowering instruction. If a new window control instruction is received, the window can also be automatically or manually operated according to the new window control instruction and the window control state.
[0113] Step S302: When the vehicle window control instruction is a vehicle window up instruction, the current automatic gear recognition time of the vehicle window is reduced to a first holding time, and the first holding time is used as a target automatic gear recognition time.
[0114] It can be understood that when the window control instruction is an ascending instruction, the current automatic gear recognition time can be reduced to a first holding time, the first holding time is set to 100 ms, and 100 ms is used as the target automatic gear recognition time.
[0115] Step S303: Detecting the window control state according to the target automatic gear recognition time.
[0116] It should be noted that the window control state can be detected based on the target automatic gear recognition time. For example, when the operation time is greater than or equal to the target automatic gear recognition time, the window control state is determined to be manual up control. If the window control state is automatic up, automatic window up can be performed.
[0117] Step S304: When the window control state is the manual up state, a first delay time is set.
[0118] In a specific implementation, if the window control state is a manual up state, the window actuation can be delayed, and the first delay time can be set to 400ms, so that the control of the window can be delayed based on the first delay time.
[0119] Step S305: When the first delay time is reached, the window is controlled to be manually raised, and a first position difference between the current window position and the upper dead point of the window is determined.
[0120] After reaching 400ms, the window can be manually raised until the user releases the switch, and the first position difference between the manual stop position of the window and the upper stop point of the window is determined. The upper stop point of the window is the top of the window. The first position difference can be compared with the set distance threshold to determine whether to continue controlling the window.
[0121] Step S306: When the first position difference is less than a first distance threshold, control the window to continue rising until the window is closed.
[0122] It can be understood that when the first position difference is less than the first distance threshold, the window can be controlled to continue to perform the window raising action until the window is closed, and when the first position difference is greater than or equal to the first distance threshold, the manual window raising action can be controlled to stop.
[0123] like Figure 4 As shown, Figure 4 This is a control flow diagram when the window is in the first preset area. When the window stops normally and is located in the top area, it is determined whether the window switch input signal is rising. If not, the automatic gear recognition time is reduced to 200ms, and it is determined whether the window switch input is an automatic action. If so, the automatic action is performed. If not, the manual action is performed until the customer releases the switch. If the window switch input signal is rising, the automatic gear recognition time is reduced to 100ms, and it is determined whether the window switch input signal is automatic rising. If so, the automatic window raising is performed. If not, the window is not automatically raised, the window is started after a delay of 400ms, and after 400ms, the window is raised manually until the user releases the switch, and it is determined whether the difference between the manual stop position of the window and the top position is less than 10mm. If so, the window raising action continues until the window is closed. If not, the manual window raising action is controlled to stop.
[0124] In this embodiment, when the current window position is the first preset area, it is detected whether the window control instruction is a window up instruction; when the window control instruction is the window up instruction, the current automatic gear recognition time of the window is reduced to a first holding time, and the first holding time is used as a target automatic gear recognition time; the window control state is detected according to the target automatic gear recognition time; when the window control state is a manual up state, a first delay time is set; when the first delay time is reached, the window is controlled to be manually raised, and a first position difference between the current window position and the upper dead point of the window is determined; when the first position difference is less than a first distance threshold, the window is controlled to continue to rise until the window is closed, and the automatic recognition time of the window in the top area is adjusted and the delay time is set, thereby delaying the start of the window actuation, improving the safety of window operation, and after the delay start, the window is intelligently controlled according to the range of the window from the top.
[0125] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 5 , step S30 includes steps S301' to S308':
[0126] Step S301 ′: when the current window position is in a second preset area, detecting whether the window control instruction is a window raising instruction, and the height of the second preset area is lower than the height of the first preset area.
[0127] It should be noted that the second preset area is the bottom area. When the current window position is in the bottom area, it is detected whether the window control instruction is a window up instruction, so that the current automatic gear recognition time is set differently according to the corresponding window control instruction.
[0128] Furthermore, after step S301', the following steps are further included:
[0129] When the window control instruction is a window lowering instruction, the current automatic gear recognition time of the window is reduced to a first holding time, and the first holding time is used as a target automatic gear recognition time; the window control state is detected according to the target automatic gear recognition time; and the window is controlled to be lowered according to the window control state and the window lowering instruction.
[0130] In a specific implementation, if the window control instruction is a window lowering instruction, the current automatic gear recognition time is reduced to 100ms, and 100ms is used as the target automatic gear recognition time. At the same time, the window control state is detected based on the automatic gear recognition time. For example, if the window control state is manual, the manual lowering action is performed until the user releases the switch.
[0131] Step S302': when the vehicle window control instruction is a vehicle window up instruction, reducing the current automatic gear recognition time of the vehicle window to a second holding time, and using the second holding time as a target automatic gear recognition time.
[0132] It can be understood that when the window control instruction is a window up instruction, the current automatic gear recognition time of the window can be reduced to 200ms, and 200ms is used as the target automatic gear recognition time.
[0133] Step S303 ′: detecting the window control state according to the target automatic gear recognition time.
[0134] It should be noted that the window control state can be detected based on the target automatic gear recognition time. For example, when the operation time is greater than or equal to the target automatic gear recognition time, the window control state is determined to be manual up control. If the window control state is automatic up, automatic window up can be performed.
[0135] Step S304': when the window control state is the manual up state, the window is controlled to be manually up until a release switch signal is received, the window is controlled to stop, and a first stop time is obtained.
[0136] In a specific implementation, if the window control state is a manual rising state, the window is controlled to be manually raised until the user releases the switch, thereby controlling the window to stop rising, and obtaining a first stop time of the window.
[0137] Step S305 ′: when the first stop time is less than a preset time threshold, detecting whether an update window control instruction is received.
[0138] In a specific implementation, the preset time threshold can be set in advance, for example 500ms. Then, when the first stop time is less than the preset time threshold, it can be determined whether there is an update window control instruction, so as to further adjust the automatic gear recognition time. If the first stop time is greater than or equal to the preset time threshold or no update window control instruction is received, the window is controlled to stop normally.
[0139] Optionally, after the step of detecting whether an instruction to update the window control is received when the first stop time is less than a preset time threshold, the method further includes:
[0140] When the updated window control instruction is received and the updated window control instruction is a window up instruction, the target automatic gear recognition time is updated to a first holding time; the window control state is detected according to the target automatic gear recognition time; and the window is controlled to rise according to the window control state and the window up instruction.
[0141] It should be understood that if an updated window control instruction is received and the updated window control instruction is a window up instruction, the target automatic gear recognition time can be adjusted to 100ms, and the window control status can be detected according to the updated automatic gear recognition time, so that the window can be manually or automatically raised according to the window control status and the window up instruction.
[0142] Step S306 ′: when the window control update instruction is received and the window control update instruction is a window lowering instruction, the target automatic gear recognition time is updated to a third holding time, and the third holding time is greater than the second holding time.
[0143] In a specific implementation, when a window control update instruction is received and the updated window control instruction is a window lowering instruction, the automatic gear recognition time may be updated to a third holding time, and the third holding time may be set to 500 ms.
[0144] Step S307 ′: detecting the window control state according to the target automatic gear recognition time.
[0145] The window control state may be detected based on the target automatic gear recognition time. For example, when the operation time is greater than or equal to 500 ms, it is determined that the window control state is manual control.
[0146] Step S308': controlling the window to be lowered according to the window control state and the window lowering instruction.
[0147] It should be noted that if the window control state is in the automatic state, the window lowering is automatically performed according to the window lowering instruction.
[0148] like Figure 6 As shown, Figure 6 The control flow diagram of the window in the second preset area is shown in FIG. 1. When the window stops normally and is located in the bottom area, it is determined whether the window switch input signal is rising. If not, the automatic gear recognition time is reduced to 100ms, and it is determined whether the window switch input is an automatic action. If so, the automatic action is performed. If not, the manual action is performed until the customer releases the switch. If the window switch input signal is rising, the automatic gear recognition time is reduced to 200ms, and it is determined whether the window switch input signal is automatic rising. If so, the automatic window rise is performed. If not, the manual window rise is performed until the user releases the switch, and the window stop time is obtained. When the window stop time is less than 500ms and a new window control command is received, it is determined whether the window switch command is a rising command. If so, the target automatic gear recognition time is adjusted to 100ms. If the window switch command is between falling, the target automatic gear recognition time is adjusted to 500ms. If the window stop time is greater than or equal to 500ms or there is no new switch input command, the window is controlled to stop normally.
[0149] In this embodiment, when the current window position is in the second preset area, it is detected whether the window control instruction is a window raising instruction, and the height of the second preset area is lower than the height of the first preset area; when the window control instruction is a window raising instruction, the current automatic gear recognition time of the window is reduced to a second holding time, and the second holding time is used as the target automatic gear recognition time; the window control state is detected according to the target automatic gear recognition time; when the window control state is a manual raising state, the window is controlled to be manually raised until a release switch signal is received, the window is controlled to stop, and a first stop time is obtained; when the first stop time is less than a preset time threshold , detect whether an updated window control instruction is received; when the updated window control instruction is received and the updated window control instruction is a window lowering instruction, update the target automatic gear recognition time to a third holding time, and the third holding time is greater than the second holding time; detect the window control state according to the target automatic gear recognition time; control the window to be lowered according to the window control state and the window lowering instruction, by adjusting the current automatic gear recognition time of the window, and performing corresponding operations according to the window control state and the window control instruction, if the instruction is triggered again within a certain period of time, the target automatic gear recognition time is reduced or increased, thereby improving the adjustment effect of the automatic gear recognition time.
[0150] Based on the first embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 7 , step S30 includes steps S301" to S303":
[0151] Step S301": when the current window position is the third preset area, the current automatic gear recognition time of the window is used as the target automatic gear recognition time, the current automatic gear recognition time is greater than the second holding time and less than the third holding time, and the height of the third preset area is lower than the height of the first preset area and higher than the height of the second preset area.
[0152] It should be noted that the third preset area is the middle area. When the current window position is in the middle area, the target automatic gear recognition time is the default time of 300ms.
[0153] Step S302": detecting the window control state according to the target automatic gear recognition time.
[0154] It should be noted that the window control state may be detected according to the target automatic gear recognition time. For example, if the user's operation time is greater than the target automatic gear recognition time, the window control state is manual window control.
[0155] Step S303": controlling the vehicle window according to the vehicle window control state and the vehicle window control instruction.
[0156] In a specific implementation, the window can be controlled according to the window control state and the window control instruction. For example, if the window control state is manual control and the window control instruction is a rising instruction, the manual rising action is executed until the user releases the switch.
[0157] In this embodiment, when the current window position is the third preset area, the current automatic gear recognition time of the window is used as the target automatic gear recognition time, the current automatic gear recognition time is greater than the second holding time and less than the third holding time, and the height of the third preset area is lower than the height of the first preset area and higher than the height of the second preset area; the window control state is detected according to the target automatic gear recognition time; the window is controlled according to the window control state and the window control instruction, and when the current window position is in the third preset area, the automatic gear recognition time is not adjusted, so that the window is controlled according to the automatic gear recognition time that is not adjusted.
[0158] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the vehicle window control method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0159] This application also provides a window control device, please refer to Figure 8 , the vehicle window control device comprises:
[0160] The acquisition module 10 is used to acquire the current motion state of the vehicle window and the vehicle window control instruction.
[0161] The acquisition module 10 is further configured to acquire the current window position when the current motion state is that the window is stopped.
[0162] The adjustment module 20 is used to adjust the current automatic gear recognition time of the window according to the current window position and the window control instruction, obtain the target automatic gear recognition time, and control the window according to the target automatic gear recognition time.
[0163] The window control device provided by the present application adopts the window control method in the above embodiment, which can solve the technical problem that the automatic gear recognition time cannot be adjusted. Compared with the prior art, the beneficial effects of the window control device provided by the present application are the same as the beneficial effects of the window control method provided by the above embodiment, and other technical features in the window control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0164] The present application provides a vehicle window control device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle window control method in the above-mentioned embodiment one.
[0165] Reference below Fig. 9 , which shows a schematic diagram of the structure of a vehicle window control device suitable for implementing an embodiment of the present application. The vehicle window control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The window control device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0166] like Fig. 9 As shown, the vehicle window control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the vehicle window control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the window control device to communicate with other devices wirelessly or by wire to exchange data. Although the window control device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0167] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0168] The window control device provided by the present application adopts the window control method in the above embodiment, which can solve the technical problem that the automatic gear recognition time cannot be adjusted. Compared with the prior art, the beneficial effects of the window control device provided by the present application are the same as the beneficial effects of the window control method provided by the above embodiment, and the other technical features of the window control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0169] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0170] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0171] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle window control method in the above-mentioned embodiment.
[0172] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0173] The computer-readable storage medium may be included in the vehicle window control device; or may exist independently without being assembled into the vehicle window control device.
[0174] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the window control device, the window control device: obtains the current movement state of the window and the window control instruction; when the current movement state is that the window is stopped, obtains the current window position; adjusts the current automatic gear recognition time of the window according to the current window position and the window control instruction to obtain the target automatic gear recognition time, and controls the window according to the target automatic gear recognition time.
[0175] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0176] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0177] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0178] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle window control method, and can solve the technical problem that the automatic gear recognition time of the switch cannot be adjusted. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle window control method provided by the above-mentioned embodiment, and will not be repeated here.
[0179] The present application also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the vehicle window control method as described above are implemented.
[0180] The computer program product provided by the present application can solve the technical problem that the automatic gear recognition time cannot be adjusted. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the window control method provided by the above embodiment, which will not be repeated here.
[0181] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A vehicle window control method, characterized in that: The vehicle window control method comprises: Get the current motion state of the window and the window control instructions; When the current motion state is that the window is stopped, obtaining the current window position; The current automatic gear recognition time of the vehicle window is adjusted according to the current vehicle window position and the vehicle window control instruction to obtain a target automatic gear recognition time, and the vehicle window is controlled according to the target automatic gear recognition time.
2. The method according to claim 1, characterized in that The step of adjusting the current automatic gear recognition time of the vehicle window according to the current vehicle window position and the vehicle window control instruction to obtain a target automatic gear recognition time, and controlling the vehicle window according to the target automatic gear recognition time comprises: When the current window position is in the first preset area, detecting whether the window control instruction is a window raising instruction; When the vehicle window control instruction is a vehicle window raising instruction, reducing the current automatic gear recognition time of the vehicle window to a first holding time, and using the first holding time as a target automatic gear recognition time; detecting a window control state according to the target automatic gear recognition time; When the window control state is a manual up state, setting a first delay time; When the first delay time is reached, the window is controlled to be manually raised, and a first position difference between the current window position and the window top dead center is determined; When the first position difference is less than a first distance threshold, the vehicle window is controlled to continue rising until the vehicle window is closed.
3. The method according to claim 2, characterized in that After the step of detecting whether the window control instruction is a window raising instruction when the current window position is the first preset area, the method further includes: When the window control instruction is a window lowering instruction, reducing the current automatic gear recognition time of the window to a second holding time, and using the second holding time as a target automatic gear recognition time, the first holding time being less than the second holding time; detecting a window control state according to the target automatic gear recognition time; The window is controlled to be lowered according to the window control state and the window lowering instruction.
4. The method according to claim 1, characterized in that The step of adjusting the current automatic gear recognition time of the vehicle window according to the current vehicle window position and the vehicle window control instruction to obtain a target automatic gear recognition time, and controlling the vehicle window according to the target automatic gear recognition time comprises: When the current window position is in the second preset area, detecting whether the window control instruction is a window raising instruction, and the height of the second preset area is lower than the height of the first preset area; When the vehicle window control instruction is a vehicle window raising instruction, reducing the current automatic gear recognition time of the vehicle window to a second holding time, and using the second holding time as a target automatic gear recognition time; detecting a window control state according to the target automatic gear recognition time; When the window control state is a manual rising state, controlling the window to be manually raised until a release switch signal is received, controlling the window to stop, and acquiring a first stop time; When the first stop time is less than a preset time threshold, detecting whether an update window control instruction is received; When the window control update instruction is received and the window control update instruction is a window lowering instruction, updating the target automatic gear recognition time to a third holding time, wherein the third holding time is greater than the second holding time; detecting a window control state according to the target automatic gear recognition time; The window is controlled to be lowered according to the window control state and the window lowering instruction.
5. The method according to claim 4, characterized in that When the current window position is in the second preset area, after the step of detecting whether the window control instruction is a window raising instruction, the step further includes: When the vehicle window control instruction is a vehicle window lowering instruction, reducing the current automatic gear recognition time of the vehicle window to a first holding time, and using the first holding time as a target automatic gear recognition time; detecting a window control state according to the target automatic gear recognition time; The window is controlled to be lowered according to the window control state and the window lowering instruction.
6. The method according to claim 4, characterized in that After the step of detecting whether an update window control instruction is received when the first stop time is less than a preset time threshold, the method further includes: When the window control update instruction is received and the window control update instruction is a window raising instruction, updating the target automatic gear recognition time to a first holding time; detecting a window control state according to the target automatic gear recognition time; The window is controlled to rise according to the window control state and the window rising instruction.
7. The method according to any one of claims 1 to 6, characterized in that The step of adjusting the current automatic gear recognition time of the vehicle window according to the current vehicle window position and the vehicle window control instruction to obtain a target automatic gear recognition time, and controlling the vehicle window according to the target automatic gear recognition time comprises: When the current window position is in the third preset area, the current automatic gear recognition time of the window is used as the target automatic gear recognition time, the current automatic gear recognition time is greater than the second holding time and less than the third holding time, and the height of the third preset area is lower than the height of the first preset area and higher than the height of the second preset area; detecting a window control state according to the target automatic gear recognition time; The vehicle window is controlled according to the vehicle window control state and the vehicle window control instruction.
8. The method according to any one of claims 1 to 6, characterized in that After the step of obtaining the current motion state of the vehicle window and the vehicle window control instruction, the method further includes: When the current motion state is a stop state controlled by the vehicle window control instruction, obtaining a first stop time after the vehicle window stops; When the first stop time is less than a preset time threshold, detecting whether an update window control instruction is received; When the updated window control instruction is received and the updated window control instruction is inconsistent with the window control instruction, the vehicle is controlled to prohibit recognition of the automatic window control state until the manual window control ends.
9. The method according to any one of claims 1 to 6, characterized in that After the step of obtaining the current motion state of the vehicle window and the vehicle window control instruction, the method further includes: When the current motion state is the anti-pinch reversal before the window stops, obtaining a second stop time after the window stops; When the second stop time is less than a preset time threshold, detecting whether an update window control instruction is received; When the window control update instruction is received, the current automatic gear recognition time of the window is reduced to a first holding time, and the first holding time is used as a target automatic gear recognition time; detecting a window control state according to the target automatic gear recognition time; The vehicle window is controlled according to the vehicle window control state and the updated vehicle window control instruction.
10. A vehicle window control device, characterized in that: The device comprises: An acquisition module, used to acquire the current motion state of the window and the window control instruction; The acquisition module is further used to acquire the current window position when the current motion state is that the window is stopped; The adjustment module is used to adjust the current automatic gear recognition time of the window according to the current window position and the window control instruction, obtain the target automatic gear recognition time, and control the window according to the target automatic gear recognition time.
11. A vehicle window control device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle window control method according to any one of claims 1 to 9.
12. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle window control method according to any one of claims 1 to 9 are implemented.
