CN115434600A - Vehicle window control method and device, vehicle and storage medium - Google Patents

Vehicle window control method and device, vehicle and storage medium Download PDF

Info

Publication number
CN115434600A
CN115434600A CN202210981194.2A CN202210981194A CN115434600A CN 115434600 A CN115434600 A CN 115434600A CN 202210981194 A CN202210981194 A CN 202210981194A CN 115434600 A CN115434600 A CN 115434600A
Authority
CN
China
Prior art keywords
window
parameter
target
difference
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210981194.2A
Other languages
Chinese (zh)
Other versions
CN115434600B (en
Inventor
莫七华
胡素君
黄越
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN202210981194.2A priority Critical patent/CN115434600B/en
Publication of CN115434600A publication Critical patent/CN115434600A/en
Application granted granted Critical
Publication of CN115434600B publication Critical patent/CN115434600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05FDEVICES FOR MOVING WINGS INTO OPEN OR CLOSED POSITION; CHECKS FOR WINGS; WING FITTINGS NOT OTHERWISE PROVIDED FOR, CONCERNED WITH THE FUNCTIONING OF THE WING
    • E05F15/00Power-operated mechanisms for wings
    • E05F15/70Power-operated mechanisms for wings with automatic actuation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a vehicle window control method, a vehicle window control device, a vehicle and a storage medium, wherein the method comprises the following steps: if a vehicle window control instruction is detected, determining a difference parameter according to the current position and the target position of the vehicle window; determining a position control parameter according to a preset compensation parameter and the difference parameter; adjusting the position of the vehicle window according to the position control parameter; determining a target difference value according to the adjusted position of the car window and the target position; and updating the preset compensation parameter according to the target difference value. Through the compensation value who combines actual conditions adjustment door window action to control the door window and move to predetermined relatively accurate position, thereby avoided risks such as in-car property theft when satisfying the user to door window ventilation function demand.

Description

Vehicle window control method and device, vehicle and storage medium
Technical Field
The present disclosure relates to the field of automotive auxiliary device technologies, and in particular, to a vehicle window control method and apparatus, an electronic device, and a storage medium.
Background
At present, with the rapid development of automobile technology, various functions on automobiles are more and more abundant, including window ventilation. When the vehicle activates the window ventilation function, the window can be controlled to move to a target position, so that the safety of property in the vehicle is ensured while the air circulation inside and outside the vehicle is realized.
However, in actual control, the actual stop position of the window deviates from the target position due to various reasons such as aging of the window; the position of the window ventilation opening deviates from the target value, so that the risk of poor window ventilation effect or property theft in the automobile is generated.
Disclosure of Invention
In view of the above problems, the application provides a vehicle window control method, a vehicle window control device, an electronic device and a storage medium, which can solve the problem that the prior art cannot enable a vehicle window to move to an accurate position meeting the needs of a user, and greatly improve the use experience of the user on the vehicle window ventilation function.
In a first aspect, an embodiment of the present application provides a vehicle window control method, including: if a vehicle window control instruction is detected, determining a difference value parameter according to the current position of the vehicle window and the target position; determining a position control parameter according to a preset compensation parameter and a difference value parameter; adjusting the position of the vehicle window according to the position control parameter; determining a target difference value according to the adjusted position of the car window and the target position; and updating the preset compensation parameters according to the target difference. Through the compensation value that combines actual conditions adjustment door window action to control the door window and move to predetermined relative accurate position, thereby avoided risks such as in-car property theft when satisfying the user to the ventilative function demand of door window.
Optionally, the difference parameter includes: distance difference and adjustment direction; the preset compensation parameters comprise a first compensation parameter and a second compensation parameter; determining a position control parameter according to a preset compensation parameter and a difference parameter, wherein the position control parameter comprises the following steps: if the adjusting direction is the first direction, determining a position control parameter according to the difference between the distance difference value and the first compensation parameter; if the adjusting direction is the second direction, determining a position control parameter according to the difference between the distance difference value and the second compensation parameter; wherein the first direction is opposite to the second direction. By obtaining the distance difference and the adjustment direction as well as the first compensation parameter and the second compensation parameter, the position control parameter can be accurately determined.
Optionally, the difference parameter includes: distance difference and adjustment direction; determining a position control parameter according to a preset compensation parameter and the difference parameter, wherein the position control parameter comprises the following steps: and if the distance difference is larger than a first preset threshold, determining the position control parameter according to the distance difference, the adjustment direction and a preset compensation parameter. Through the judgment of the distance difference value, whether the position control parameters are acquired or not can be determined, and the vehicle window is moved.
Optionally, updating the preset compensation parameter according to the target difference includes: if the target difference value is larger than a second preset threshold value, determining a target compensation value according to the value of the preset compensation parameter and the target difference value; and updating the value of the preset compensation parameter to the target compensation value. Whether the preset compensation parameter is updated or not can be determined by judging the size of the target difference value.
Optionally, determining a target compensation value according to the value of the preset compensation parameter and the target difference value includes: determining a middle compensation value according to a preset proportional coefficient and the target difference value; and determining the target compensation value according to the sum of the value of the preset compensation parameter and the intermediate compensation value. And determining a target compensation value by presetting a compensation parameter and the obtained target difference value.
Optionally, updating the preset compensation parameter according to the target difference value, further comprising: and if the target difference is less than or equal to a second preset threshold value, keeping the value of the preset compensation parameter unchanged. Whether the preset compensation parameter is updated or not can be determined by judging the size of the target difference value.
Optionally, after updating the preset compensation parameter according to the target difference, the method further includes: and if the target difference value is larger than a second preset threshold value, triggering to generate a vehicle window control instruction. Through the judgment of the target difference value, whether a vehicle window control instruction is triggered to be generated or not can be determined, and the vehicle window is controlled in the next step.
In a second aspect, an embodiment of the present application further provides a vehicle window control device, where the device includes: the command issuing unit is used for generating a vehicle window control command; the difference parameter unit is used for determining a difference parameter according to the current position of the car window and the target position; the difference parameter unit is also used for determining a target difference according to the adjusted position of the car window and the target position; the position control parameter unit is used for determining a position control parameter according to a preset compensation parameter and the difference parameter; the device comprises a preset compensation parameter unit, a preset compensation parameter unit and a compensation parameter updating unit, wherein the preset compensation parameter unit is used for updating a preset compensation parameter; and the window moving unit is used for adjusting the position of the window.
In a third aspect, an embodiment of the present application further provides a vehicle, including: one or more processors; a memory; one or more application programs stored in the memory and configured to be executed by the one or more processors, the one or more application programs configured to perform the window control method as described in the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, in which program codes are stored, and the program codes can be called by a processor to execute the method described in the first aspect.
According to the technical scheme provided by the invention, if a vehicle window control instruction is detected, a difference value parameter is determined according to the current position and the target position of the vehicle window; determining a position control parameter according to a preset compensation parameter and a difference value parameter; adjusting the position of the vehicle window according to the position control parameter; determining a target difference value according to the adjusted position of the car window and the target position; and updating the preset compensation parameters according to the target difference. Through the compensation value that combines actual conditions adjustment door window action to control the door window and move to predetermined relative accurate position, thereby avoided risks such as in-car property theft when satisfying the user to the ventilative function demand of door window.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating an application environment of a vehicle window control method according to an embodiment of the present application.
Fig. 2 shows a block diagram of a vehicle window according to an embodiment of the present application.
Fig. 3 shows a schematic flowchart of a vehicle window control method according to an embodiment of the present application.
Fig. 4 shows a schematic flowchart of another vehicle window control method proposed in the embodiment of the present application.
Fig. 5 shows a block diagram of a vehicle window control device according to an embodiment of the present application.
Fig. 6 shows a block diagram of a vehicle according to an embodiment of the present application.
Fig. 7 shows a block diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
At present, with the rapid development of automobile technology, various functions on automobiles are more and more abundant, including window ventilation. When the vehicle activates the window ventilation function, the window can be controlled to move to a target position, so that the financial safety in the vehicle is ensured while the air circulation inside and outside the vehicle is realized.
However, in the actual control process, when the motor for controlling the window to move is powered off, the motor cannot stop rotating immediately due to inertia, and can continue to rotate for a short distance, so that the actual stop position of the window is deviated from the target position; the deviation can be influenced by superposition factors such as vehicle environment temperature, storage battery voltage change and aging of a vehicle window mechanism, so that the actual position of the ventilation opening of the vehicle window and the target position have different degrees of deviation, and risks such as poor ventilation effect of the vehicle window or property theft in the vehicle are generated.
However, in actual control, the actual stop position of the window is deviated from the target position due to various reasons such as window aging; the position of the ventilation opening of the vehicle window deviates from the target value, so that the ventilation effect of the vehicle window is poor or property in the vehicle is stolen and the like.
In order to improve the above problems, the inventors propose a window control method, a window control device, a vehicle, and a storage medium according to the present application. If a vehicle window control instruction is detected, determining a difference parameter according to the current position and the target position of the vehicle window; determining a position control parameter according to a preset compensation parameter and a difference value parameter; adjusting the position of the vehicle window according to the position control parameter; determining a target difference value according to the adjusted position of the car window and the target position; and updating the preset compensation parameters according to the target difference. Through the compensation value that combines actual conditions adjustment door window action to control the door window and move to predetermined relative accurate position, thereby avoided risks such as in-car property theft when satisfying the user to the ventilative function demand of door window.
The following is introduced with respect to an application environment of the vehicle window control method provided by the embodiment of the present invention:
referring to fig. 1, fig. 1 is a schematic diagram illustrating an application environment suitable for use in embodiments of the present application. The vehicle 100 provided by the embodiment of the present application may include a controller 110 and at least one window 120.
In an embodiment of the present application, the controller 110 is coupled to at least one vehicle window 120. The controller 110 may be an ECU (Electronic Control Unit), also called a Vehicle On Board Computer (Vehicle On Board Computer) or a Vehicle Computer; the controller 110 may also be an MCU (micro controller Unit), which is also called a Single Chip microcomputer (Single Chip Microcontroller) or a Single Chip microcomputer. The controller 110 may control the operation of at least one vehicle window 120. The controller 110 is configured to receive a window control command and control operation of the window 120 according to the current window position and the target window position.
In some embodiments, as shown in fig. 2, the window 120 includes a position determining unit 121, a window moving unit 122, and a window body 123.
In an embodiment of the present application, the Position determining unit 121 may include a Position Sensor (Position Sensor), such as a Hall Sensor; the position determining unit 121 is connected to the window body 123, and the position determining unit 121 is configured to be connected to the controller 110, and send the position of the window body 123 to the controller 110 after determining the current position of the window body 123 and the moved position of the window body 123.
In some embodiments, the controller 110 may compare the current position of the window body 123 obtained by the position determining unit 121 with a target position, and determine a difference between the current position of the window body 123 and the target position as a difference parameter if the difference is greater than a first preset threshold.
In some embodiments, the controller 110 further compares the moved position of the window body 123 acquired by the position determining unit 121 with a target position, and determines that the difference between the adjusted position of the window body 123 and the target position is a target difference if the difference is greater than a second preset threshold.
In an embodiment of the present application, the window moving unit 122 may be a power Glass Lifter (Electric Glass Lifter), including but not limited to a Rope-driven power Glass Lifter (Rope-driven Electric Glass Lifter); the electric glass lifter comprises a Motor, such as a Brushless direct current Motor (brush Motor); the window moving unit 122 is connected to the window body 123, and the window moving unit 122 is configured to be connected to the controller 110 and control the movement of the window body 123.
In some embodiments, after receiving the window control command, the controller 110 determines a position control parameter according to the difference parameter and a preset compensation parameter pre-stored in the controller, and adjusts the position of the window body 123 through the window moving unit 122 according to the position control parameter.
In some embodiments, if the target difference obtained by the controller 110 is greater than the second preset threshold, the controller 110 updates the preset compensation parameter according to the obtained target difference, and controls the window 120 to move according to the updated preset compensation parameter and the target difference.
The specific process will be explained in detail in the following examples.
Referring to fig. 3, a vehicle window control method provided in an embodiment of the present application may be applied to the vehicle 100, where the embodiment describes a flow of steps of a vehicle side, and the method may include: step 210 to step 250.
And step 210, if the vehicle window control instruction is detected, determining a difference value parameter according to the current position of the vehicle window and the target position.
In some embodiments, the window control instruction may be sent by a user through an on-board computer of the vehicle 100, and the window instruction may also be generated by triggering when the window is not satisfied with the relevant conditions after the vehicle 100 initially controls the window to move, which is not limited in this application.
For example, the current position of the window may be represented as the relative distance between the upper edge of the window and the upper edge of the window frame; it will be appreciated that, with the minimum relative distance, the window is fully closed; when the relative distance is at a maximum, the window is fully open.
It will be appreciated that the current position of the window may also include other representations, for example, the height of the window may be used for representation; for example, when the height of the window is maximum, the window is fully closed; when the height of the car window is minimum, the car window is completely opened; this is not limited by the present application.
In some embodiments, the target position of the window may be represented as a position 2CM to 4CM from the upper edge of the window frame. Preferably, the target position of the window may be selected to be 3CM from the upper edge of the window frame. It can be understood that the farther the target position of the window is from the upper edge of the window frame, the better the ventilation effect of the window is; but too far away increases the risk of property theft; therefore, the target position of the car window can be set according to actual practical requirements, and the application does not limit the target position.
Step 220, determining a position control parameter according to the preset compensation parameter and the difference parameter.
In some embodiments, the difference parameter includes a distance difference and an adjustment direction.
In an embodiment of the present application, the distance difference of the window may be expressed as a relative distance between the current position of the window and the target position of the window; it will be appreciated that the distance difference between the windows may also include other expressions, for example, it may be expressed by the Width of a PWM (Pulse Width Modulation) signal input to a motor controlling the window lift; this is not limited by the present application.
In an embodiment of the present application, the adjustment direction of the window includes a first direction and a second direction; it is understood that the first direction is opposite to the second direction.
Wherein the first direction is a direction when the vehicle 100 controls the window to ascend, and the second direction is a direction when the vehicle 100 controls the window to descend. Illustratively, the window gradually closes as it moves in a first direction; when the window moves in the second direction, the window is gradually opened.
According to different adjustment directions, the determination modes of the distance difference value are different; for example, if the top of the window frame is used as a zero point, and the bottom of the window frame is used as a coordinate axis direction to establish a coordinate system, when the adjustment direction is a first direction, the coordinate of the current position is subtracted by the coordinate of the target position to obtain a distance difference value; and when the adjusting direction is the second direction, subtracting the coordinate of the current position from the coordinate of the target position to obtain a distance difference value. It can be understood that, the coordinate system may be established with different positions as zero points to obtain the coordinates of the current position and the target position, which is not limited in the present application; meanwhile, the current position and the target position may also include other expression forms, such as a PWM signal width input to a motor controlling the window lift, and the like, which is not limited in the present application.
In the embodiment of the present application, the values of the preset compensation parameters used are stored in a storage medium disposed in the vehicle 100, such as an electronic memory like an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Preferably, the storage medium for storing the preset compensation parameter may be a non-volatile computer-readable medium (non-volatile computer-readable storage medium); different storage media can be selected according to actual use requirements, and the application is not limited to this.
In some embodiments, the preset compensation parameters may be different when the window is in different adjustment directions.
In an embodiment of the present application, when the adjustment direction of the vehicle window is a first direction, the preset compensation parameter is a first compensation parameter; when the adjusting direction of the car window is the second direction, the preset compensation parameter is the second compensation parameter.
In some embodiments, the position control parameters determined from different preset compensation parameters and distance differences may also be different when the window is in different adjustment directions.
In the embodiment of the application, when the adjusting direction of the vehicle window is a first direction, the position control parameter is determined according to the difference between the distance difference value of the vehicle window and the first compensation parameter; specifically, the position control parameter is the distance difference of the window minus the first compensation parameter.
It will be appreciated that when the adjustment direction of the window is the first direction, the window is in a raised adjustment state. After the motor for controlling the window to move is powered off, the motor cannot stop rotating immediately but rotates a short distance under the influence of the self-motion inertia of the motor. The adjustment direction of the window is upward, if the motor is not powered off in advance at the moment, the window cannot stop at a preset target position, but a certain offset occurs upwards, so that the power-off position of the motor needs to be lower than the target position by a certain distance at the moment. At this time, the position control parameter needs to be determined according to the difference between the distance difference of the vehicle window and the first compensation parameter, so that the power-off position of the motor is lower than the target position by a certain distance.
In the embodiment of the application, when the adjusting direction of the vehicle window is a second direction, the position control parameter is determined according to the difference between the distance difference value of the vehicle window and the second compensation parameter; specifically, the position control parameter is the distance difference of the window minus the second compensation parameter.
It will be appreciated that when the adjustment direction of the window is the second direction, the window is in a lowered adjustment state. After the motor for controlling the window to move is powered off, the motor cannot stop rotating immediately but rotates a short distance under the influence of the self-motion inertia of the motor. The window is adjusted downwards, if the motor is not powered off in advance at the moment, the window cannot stop at a preset target position, but is deviated downwards to a certain extent, so that the power-off position of the motor needs to be higher than the target position by a certain distance at the moment. At this time, the position control parameter needs to be determined according to the difference between the distance difference of the vehicle window and the first compensation parameter, so that the power-off position of the motor is higher than the target position by a certain distance.
In some embodiments, if the distance difference of the vehicle window is greater than a first preset threshold, the position control parameter is determined according to the distance difference, the adjustment direction and a preset compensation parameter.
It will be appreciated that when the distance difference between the windows is less than or equal to the first predetermined threshold, the windows have been adjusted to the appropriate position to meet the user's needs and the windows are no longer repositioned.
In an embodiment of the present application, the first preset threshold may range from 4MM to 6MM. Preferably, the first preset threshold may be selected to be 5MM. It can be understood that the smaller the first preset threshold is, the higher the precision of the window position adjustment is; the first preset threshold value can be set according to actual use precision requirements and specific conditions of the car window, and the method is not limited by the application.
And step 230, adjusting the position of the vehicle window according to the position control parameter.
In some embodiments, after determining the position control parameter, the vehicle 100 may convert the position control parameter into a corresponding PWM signal and send the PWM signal to a motor for controlling the window position, thereby adjusting the window position. It is understood that the vehicle 100 may also adopt other ways of adjusting the position of the window, and the adjustment way is different according to the type number of the vehicle or the window, etc., and the present application does not limit this.
And 240, determining a target difference value according to the adjusted position of the car window and the target position.
In some embodiments, the adjusted position of the window may be the relative distance between the upper edge of the window and the upper edge of the window frame after the position is adjusted in step 230; it is to be understood that the adjusted position of the window may also include other expressions to indicate a relative distance between the upper edge of the window and the upper edge of the window frame, which is not limited in the present application.
In some embodiments, the target difference may be expressed as a relative distance of the adjusted position of the window from a target position of the window; it will be appreciated that the target difference also includes other types of representations, such as may be represented by the width of a PWM signal input to a motor controlling window lift; this is not limited by the present application.
According to different adjusting directions, the determining mode of the target difference value is different; for example, if the top of the window frame is taken as a zero point, the bottom of the window frame is taken as a coordinate axis direction to establish a coordinate system, and when the adjusting direction is a first direction, the coordinate of the adjusted position is subtracted by the coordinate of the target position to obtain a target difference value; and when the adjusting direction is the second direction, subtracting the coordinate of the current position from the coordinate of the adjusted position to obtain a target difference value. It can be understood that, the coordinate system may be established with different positions as zero points to obtain coordinates of the adjusted position and the target position, which is not limited in the present application; meanwhile, the adjusted position and the target position may also include other expression forms, such as a PWM signal width input to a motor controlling the lifting of the window, and the like, which is not limited in the present application.
And step 250, updating the preset compensation parameter according to the target difference value.
It can be understood that, through the updating of the compensation parameters, the vehicle can obtain the preset compensation parameters suitable for the current condition when the vehicle is under different environmental conditions such as temperature, humidity and the like and the self mechanism components are not in ideal conditions (such as low battery voltage and aging of the window control device), so that the window is accurately controlled to move to the target position.
In some embodiments, if the target difference is greater than a second preset threshold, determining a target compensation value according to the value of the preset compensation parameter and the target difference; and updating the value of the preset compensation parameter to the target compensation value.
It will be appreciated that when the target difference value of the window is less than or equal to the second preset threshold value, the window has been adjusted to a suitable position to meet the user's needs, and the value of the preset compensation parameter is not updated.
In an embodiment of the present application, the second preset threshold may range from 4MM to 6MM. Preferably, the second preset threshold may be selected to be 5MM. It can be understood that the smaller the second preset threshold is, the higher the precision of the window position adjustment is; the second preset threshold value can be set according to actual use precision requirements and specific conditions of the car window, and the method is not limited by the application.
In some embodiments, the step 250 of updating the preset compensation parameter according to the target difference comprises the following steps.
(1) And determining a middle compensation value according to the preset proportional coefficient and the target difference value.
In an embodiment of the present application, the preset scaling factor may range from 0.35 to 0.65. Preferably, the predetermined scaling factor may be selected to be 0.5. It is understood that the preset proportionality coefficient may be set according to specific conditions of the vehicle window, and the application is not limited thereto.
In the embodiment of the present application, the intermediate compensation value is the target difference multiplied by the preset scaling factor.
(2) And determining a target compensation value according to the sum of the value of the preset compensation parameter and the intermediate compensation value.
(3) And updating the value of the preset compensation parameter to be the target compensation value.
In an embodiment of the present application, the updated value of the preset compensation parameter may be stored in a storage medium disposed in the vehicle 100, such as an electronic memory like an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Preferably, the storage medium for storing and updating the preset compensation parameter may be a non-volatile computer-readable storage medium; different storage media can be selected according to actual use requirements, and the application is not limited to this.
In some embodiments, as shown in fig. 4, after the step 250, updating the preset compensation parameter according to the target difference, the vehicle window control method provided by the embodiment of the present application further includes the following steps.
And step 260, if the target difference value is larger than a second preset threshold value, triggering to generate a vehicle window control instruction.
It can be understood that by judging the numerical relationship between the target difference value and the second preset threshold value, whether the current window is adjusted to the target position or not can be determined, so that whether the window position needs to be continuously adjusted or not can be determined; for example, if the target difference is greater than a second preset threshold value, and the vehicle window is not adjusted to the target position at this time, triggering to generate a vehicle window control instruction, and continuing to adjust the vehicle window position; if the target difference is smaller than a second preset threshold value, the vehicle window is adjusted to the target position at the moment, and the vehicle window position is not adjusted continuously.
In some embodiments, if the target difference is greater than a second preset threshold, generating a window control command is triggered.
It is understood that after triggering generation of the window control command, the vehicle 100 restarts the window control movement operation from step 210.
It can be understood that when the target difference value of the window is less than or equal to the second preset threshold value, the window has been adjusted to a suitable position meeting the user's needs, and no longer triggers the generation of the window control command.
In an embodiment of the present application, the second preset threshold may range from 4MM to 6MM. Preferably, the second preset threshold may be selected to be 5MM. It can be understood that the smaller the second preset threshold value is, the higher the precision of the window position adjustment is; the second preset threshold value can be set according to actual use precision requirements and specific conditions of the car window, and the method is not limited by the application.
Referring to fig. 5, based on the foregoing window control method, an embodiment of the present application provides a window control apparatus 300, where the window control apparatus 300 includes: a command issuing module 310, a difference parameter module 320, a position control parameter module 330, a compensation parameter update module 340, and a window movement module 350.
In some embodiments, the control instruction module 310 may be configured to generate a window control instruction according to the user instruction and the window operating condition, and send the window control instruction to other modules.
In some embodiments, the difference parameter module 320 may be configured to determine a difference parameter according to the current position of the window and the target position; the difference parameter module 320 may be further configured to determine a target difference according to the adjusted position of the vehicle window and the target position; it is understood that the difference parameter module 320 may also be used to obtain data representing other expressions of the difference parameter and the target parameter, which is not limited in this application.
In an embodiment of the present application, the difference parameter may include a distance difference and an adjustment direction.
In some embodiments, the difference parameter module 320 may include a position location unit, a direction determination unit, a first difference unit, and a second difference unit.
In an embodiment of the present application, the position locating unit may be configured to obtain a specific position of the upper edge of the vehicle window; it will be appreciated that the position locating unit may also be used to obtain other data indicative of a specific position of an edge on a vehicle window, and that this is not a limitation of the present application.
In an embodiment of the application, the direction determining unit may be configured to obtain an adjustment direction of the window, where the adjustment direction of the window includes a first direction and a second direction; it is understood that the first direction is opposite to the second direction. The first direction is a direction in which the vehicle control device 300 controls the window to be raised, and the second direction is a direction in which the vehicle control device 300 controls the window to be lowered.
In an embodiment of the application, the first difference unit may be configured to determine a distance difference of the window according to the current position of the window and the target position acquired by the position locating unit; the distance difference value of the vehicle window can be expressed as the relative distance between the current position of the vehicle window and the target position of the vehicle window; it is understood that the distance difference of the window may also include other expressions to indicate the relative distance between the current position of the window and the target position of the window, which is not limited in the present application.
According to different adjustment directions, the determination modes of the distance difference value are different; for example, if the top of the window frame is taken as a zero point, the bottom of the window frame is taken as a coordinate axis direction to establish a coordinate system, and when the adjustment direction is a first direction, the coordinate of the target position is subtracted from the coordinate of the current position to obtain a target difference value; and when the adjusting direction is the second direction, subtracting the coordinate of the current position from the coordinate of the target position to obtain a distance difference value. It can be understood that, the coordinate system may be established with different positions as zero points to obtain the coordinates of the current position and the target position, which is not limited in the present application; meanwhile, the current position and the target position may also include other expression forms, such as a PWM signal width input to a motor controlling the window lift, and the like, which is not limited in the present application.
In an embodiment of the application, the second difference unit may be configured to determine a target difference of the window according to the adjusted position of the window and the target position obtained by the position locating unit; the target difference value of the vehicle window can be expressed as the relative distance between the adjusted position of the vehicle window and the target position of the vehicle window; it is understood that the target difference value of the window may also include other expressions to indicate a relative distance between the adjusted position of the window and the target position of the window, which is not limited in the present application.
According to different adjusting directions, the determining mode of the target difference value is different; for example, if the top of the window frame is taken as a zero point, the bottom of the window frame is taken as a coordinate axis direction to establish a coordinate system, and when the adjusting direction is a first direction, the coordinate of the adjusted position is subtracted by the coordinate of the target position to obtain a target difference value; and when the adjusting direction is the second direction, subtracting the coordinate of the current position from the coordinate of the adjusted position to obtain a target difference value. It can be understood that, the coordinate system may be established with different positions as zero points to obtain coordinates of the adjusted position and the target position, which is not limited in the present application; meanwhile, the adjusted position and the target position may also include other expression forms, such as a PWM signal width input to a motor controlling the lifting of the window, and the like, which is not limited in the present application.
In some embodiments, the position control parameter module 330 may be configured to determine the position control parameter according to a preset compensation parameter and a difference parameter.
In some embodiments, the position control parameter module 330 may include a compensation parameter storage unit, a distance difference comparison unit, and a parameter determination unit.
In an embodiment of the present application, the compensation parameter storage unit may be configured to store a preset compensation parameter; the compensation storage unit may be a storage medium such as an electronic memory like an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Preferably, the compensation storage unit may be a non-volatile computer-readable storage medium (non-volatile computer-readable medium). The compensation storage unit may select different storage media according to actual use requirements, and the present application is not limited thereto.
When the car window is in different adjusting directions, the preset compensation parameters are different; when the adjusting direction of the car window is a first direction, the preset compensation parameter is a first compensation parameter; when the adjusting direction of the car window is the second direction, the preset compensation parameter is the second compensation parameter.
In an embodiment of the application, the distance difference comparison unit may be configured to compare the distance difference of the vehicle window with a first preset threshold; wherein, the range of the first preset threshold value may be 4MM-6MM. Preferably, the first preset threshold may be selected to be 5MM. It can be understood that the smaller the first preset threshold value is, the higher the precision of the window position adjustment is; the first preset threshold value can be set according to the actual use precision requirement and the specific condition of the car window, and the application does not limit the first preset threshold value.
It can be understood that if the distance difference of the vehicle window is less than or equal to the first preset threshold, the vehicle window is adjusted to a proper position meeting the user's needs, and the position of the vehicle window is not adjusted; and if the distance difference value of the vehicle window is greater than a first preset threshold value, determining a position control parameter according to the distance difference value, the adjustment direction and a preset compensation parameter.
In an embodiment of the application, the parameter determination unit is configured to determine the window position control parameter according to different window adjustment directions.
When the adjusting direction of the car window is a first direction, determining a position control parameter according to the difference between the distance difference value of the car window and the first compensation parameter; specifically, the position control parameter is the distance difference value of the vehicle window minus a first compensation parameter; when the adjusting direction of the car window is a second direction, determining a position control parameter according to the difference between the distance difference value of the car window and the second compensation parameter; specifically, the position control parameter is the distance difference of the window minus the second compensation parameter.
In some embodiments, the compensation parameter updating module 340 is configured to update the preset compensation parameter stored in the compensation parameter storage unit.
In some embodiments, the compensation parameter update module 340 includes a target difference comparison unit, an intermediate compensation determination unit, a target compensation determination unit, and a compensation parameter update unit.
In an embodiment of the present application, the target difference comparing unit is configured to compare the target difference with a second preset threshold; when the target difference value of the vehicle window is smaller than or equal to a second preset threshold value, the vehicle window is adjusted to a proper position meeting the requirements of a user, and the value of the preset compensation parameter is not updated; and if the target difference value is larger than a second preset threshold value, determining a target compensation value according to the value of the preset compensation parameter and the target difference value.
In an embodiment of the application, the intermediate compensation determining unit is configured to determine an intermediate compensation value according to a preset scaling factor and a target difference value. Wherein, the range of the preset proportionality coefficient can be 0.35-0.65. Preferably, the preset scaling factor may be selected to be 0.5; it is understood that the preset proportionality coefficient may be set according to specific conditions of the vehicle window, and the application is not limited thereto.
In an embodiment of the application, the target compensation determining unit is configured to determine the target compensation value according to a sum of a value of a preset compensation parameter and the intermediate compensation value.
In an embodiment of the application, the compensation parameter updating unit is configured to update the preset compensation parameter in the preset compensation storage unit to the target compensation value.
In some embodiments, the window movement module 350 is used to adjust the position of the window.
Referring to fig. 6, based on the foregoing window control method, the embodiment of the present application provides a vehicle 400 including a processor 410 that can execute the foregoing window control method, where the vehicle 400 further includes one or more processors 410, a memory 420, and one or more application programs. The memory 420 stores therein a program that can execute the contents of the foregoing embodiments, and the processor 410 can execute the program stored in the memory 420. Processor 410 may include, among other things, one or more cores for processing data and a message matrix unit. The processor 410 interfaces with various components throughout the vehicle 400 using various interfaces and lines to perform various functions of the vehicle 400 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 420 and invoking data stored in the memory 420. Alternatively, the processor 410 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable logic Array (pla). The processor 410 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 410, but may be implemented by a communication chip. The Memory 420 may include a Random Access Memory (RAM) 420 or a Read-Only Memory (Read-Only Memory) 420. The memory 420 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 420 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a preset compensation parameter update function, a difference distance determination function, a window movement function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal during use (such as preset compensation parameters, difference distances, etc.).
Referring to fig. 7, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 500 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 500 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 510 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 510 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A vehicle window control method, characterized by comprising:
if a vehicle window control instruction is detected, determining a difference parameter according to the current position and the target position of the vehicle window;
determining a position control parameter according to a preset compensation parameter and the difference parameter;
adjusting the position of the vehicle window according to the position control parameter;
determining a target difference value according to the adjusted position of the car window and the target position;
and updating the preset compensation parameter according to the target difference value.
2. The method of claim 1, wherein the difference parameter comprises: distance difference and adjustment direction; the preset compensation parameters comprise a first compensation parameter and a second compensation parameter;
the determining the position control parameter according to the preset compensation parameter and the difference parameter includes:
if the adjusting direction is a first direction, determining the position control parameter according to the difference between the distance difference value and the first compensation parameter;
if the adjusting direction is a second direction, determining the position control parameter according to the difference between the distance difference value and the second compensation parameter;
wherein the first direction is opposite to the second direction.
3. The method of claim 1, wherein the difference parameter comprises: distance difference and adjustment direction; the determining the position control parameter according to the preset compensation parameter and the difference parameter includes:
and if the distance difference is greater than a first preset threshold, determining a position control parameter according to the distance difference, the adjustment direction and the preset compensation parameter.
4. The method of claim 1, wherein the updating the preset compensation parameter according to the target difference value comprises:
if the target difference value is larger than a second preset threshold value, determining a target compensation value according to the value of the preset compensation parameter and the target difference value; and updating the value of the preset compensation parameter to the target compensation value.
5. The method of claim 4, wherein determining a target compensation value according to the value of the preset compensation parameter and the target difference comprises:
determining a middle compensation value according to a preset proportional coefficient and the target difference value;
and determining the target compensation value according to the sum of the value of the preset compensation parameter and the intermediate compensation value.
6. The method of claim 4, wherein the updating the preset compensation parameter according to the target difference value further comprises:
and if the target difference value is less than or equal to the second preset threshold value, keeping the value of the preset compensation parameter unchanged.
7. The method according to any one of claims 1 to 6, wherein after said updating said preset compensation parameter according to said target difference value, said method further comprises:
and if the target difference value is larger than a second preset threshold value, triggering to generate a vehicle window control instruction.
8. A window control apparatus, comprising:
the control instruction module is used for generating a vehicle window control instruction;
the vehicle window distance acquisition module is used for determining a difference parameter according to the current position of the vehicle window and the target position; the difference parameter module is also used for determining a target difference according to the adjusted position of the car window and the target position;
the position control parameter module is used for determining a position control parameter according to the preset compensation parameter and the difference parameter;
the compensation parameter updating module is used for updating the preset compensation parameters;
a window moving module; the window moving module is used for adjusting the position of the window.
9. A vehicle, characterized in that the vehicle comprises:
one or more processors;
a memory;
one or more application programs stored in the memory and configured to be executed by the one or more processors, the one or more application programs configured to perform the window control method of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 7.
CN202210981194.2A 2022-08-16 2022-08-16 Vehicle window control method and device, vehicle and storage medium Active CN115434600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210981194.2A CN115434600B (en) 2022-08-16 2022-08-16 Vehicle window control method and device, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210981194.2A CN115434600B (en) 2022-08-16 2022-08-16 Vehicle window control method and device, vehicle and storage medium

Publications (2)

Publication Number Publication Date
CN115434600A true CN115434600A (en) 2022-12-06
CN115434600B CN115434600B (en) 2024-01-26

Family

ID=84242559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210981194.2A Active CN115434600B (en) 2022-08-16 2022-08-16 Vehicle window control method and device, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN115434600B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003035066A (en) * 2001-07-25 2003-02-07 Asmo Co Ltd Opening/closing member control device, and method for setting original location of opening/closing member for opening/closing member control device
KR20040064790A (en) * 2003-01-10 2004-07-21 계양전기 주식회사 Door control method for the car
US20060254148A1 (en) * 2005-05-13 2006-11-16 Honda Motor Co., Ltd. Power window system and method for controlling power-operated window
KR20130044767A (en) * 2011-10-24 2013-05-03 주식회사 현대케피코 Apparatus and method for controlling sunroof
CN105909115A (en) * 2016-06-30 2016-08-31 北京经纬恒润科技有限公司 Position compensation method and position compensation system
KR101744421B1 (en) * 2015-12-15 2017-06-07 주식회사 현대케피코 Method and system for correcting a margin of error in control point of sunroof
CN109296284A (en) * 2018-09-25 2019-02-01 深圳市元征科技股份有限公司 A kind of vehicle window control method, system, device and computer readable storage medium
JP2019210784A (en) * 2018-06-08 2019-12-12 株式会社デンソー Window open/close position detection device and window open/close position detection method
KR20200004074A (en) * 2018-07-03 2020-01-13 현대자동차주식회사 System and method for controlling of safety power window
CN110836067A (en) * 2019-11-27 2020-02-25 安徽江淮汽车集团股份有限公司 Automobile window control method, automobile window control equipment, storage medium and device
CN111691785A (en) * 2019-03-12 2020-09-22 尼得科智动株式会社 Open/close body control device, vehicle, open/close body control method, and recording medium
CN112761455A (en) * 2020-12-17 2021-05-07 苏州琪埔维半导体有限公司 Position compensation system and method for anti-pinch vehicle window based on ripples
CN114083964A (en) * 2021-11-18 2022-02-25 广州市窗神电子科技有限公司 Self-adaptive lifting method, system, equipment and medium for automobile window

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003035066A (en) * 2001-07-25 2003-02-07 Asmo Co Ltd Opening/closing member control device, and method for setting original location of opening/closing member for opening/closing member control device
KR20040064790A (en) * 2003-01-10 2004-07-21 계양전기 주식회사 Door control method for the car
US20060254148A1 (en) * 2005-05-13 2006-11-16 Honda Motor Co., Ltd. Power window system and method for controlling power-operated window
KR20130044767A (en) * 2011-10-24 2013-05-03 주식회사 현대케피코 Apparatus and method for controlling sunroof
KR101744421B1 (en) * 2015-12-15 2017-06-07 주식회사 현대케피코 Method and system for correcting a margin of error in control point of sunroof
CN105909115A (en) * 2016-06-30 2016-08-31 北京经纬恒润科技有限公司 Position compensation method and position compensation system
JP2019210784A (en) * 2018-06-08 2019-12-12 株式会社デンソー Window open/close position detection device and window open/close position detection method
KR20200004074A (en) * 2018-07-03 2020-01-13 현대자동차주식회사 System and method for controlling of safety power window
CN109296284A (en) * 2018-09-25 2019-02-01 深圳市元征科技股份有限公司 A kind of vehicle window control method, system, device and computer readable storage medium
CN111691785A (en) * 2019-03-12 2020-09-22 尼得科智动株式会社 Open/close body control device, vehicle, open/close body control method, and recording medium
CN110836067A (en) * 2019-11-27 2020-02-25 安徽江淮汽车集团股份有限公司 Automobile window control method, automobile window control equipment, storage medium and device
CN112761455A (en) * 2020-12-17 2021-05-07 苏州琪埔维半导体有限公司 Position compensation system and method for anti-pinch vehicle window based on ripples
CN114083964A (en) * 2021-11-18 2022-02-25 广州市窗神电子科技有限公司 Self-adaptive lifting method, system, equipment and medium for automobile window

Also Published As

Publication number Publication date
CN115434600B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN109138691B (en) Automated housing system with active distance control
US9879464B2 (en) Automated window closure system
JPH11324481A (en) Power window device having jamming prevention function
JP2006316517A (en) Power window device
EP1498566B1 (en) Operating mechanism of open/close body
KR20160099519A (en) Method for controlling a motor-powered hatch arrangement of a motor vehicle
EP3202605B1 (en) Car roof window control method and system
US20060229781A1 (en) Power window device
CN115434600A (en) Vehicle window control method and device, vehicle and storage medium
US20200308894A1 (en) Vehicle door window position control system
CN114103849B (en) Vehicle control method, device, vehicle and computer readable storage medium
CN116146077A (en) Smart window system control method, smart window system and computer equipment
JP7141969B2 (en) Opening/Closing Body Control Device, Vehicle, Opening/Closing Body Control Method, and Opening/Closing Body Control Program
US6362584B1 (en) Virtual sensor for window position
CN111267593B (en) Control method and device for vehicle body closing system
KR20170032597A (en) Auxiliary step for rotating in association with door and control method thereof
CN111780235A (en) Air conditioner control method and device and air conditioner
CN113047725A (en) Electric vehicle window intelligent control system and method based on environment perception
JP6870165B2 (en) Door switchgear and vehicle door
JP2020186626A (en) Power window device initialization method
CN218986457U (en) Self-adaptive roof lifting device for caravan
US20040145331A1 (en) Method for electronic regulation of an electric motor
CN110212822B (en) Stepping motor control method and device
CN113395195B (en) Signal intensity detection device and control method
CN113183875A (en) Vehicle window state identification method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant