A control method of a vehicle sunroof and a vehicle
By comparing the actual opening degree of the sunshade with the maximum driven opening degree, a targeted motion strategy was developed, which solved the problem of sunshade damage when the sunroof is opened, and achieved dynamic adaptation between the sunroof and the sunshade to ensure driving safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG GEELY HLDG GRP CO LTD
- Filing Date
- 2025-12-30
- Publication Date
- 2026-06-19
AI Technical Summary
When the sunroof is open, if the opening degree of the sunroof is greater than that of the sunshade, the airflow impact during vehicle movement can cause relative friction or collision between the two, resulting in damage to the sunshade.
By responding to the sunroof opening operation, comparing the actual opening degree of the sunshade with the maximum driven opening degree, a targeted motion strategy is formulated to ensure that the sunroof movement does not exceed the adaptation range of the sunshade. This includes detecting the initial position, adjusting the spacing and environmental data to control the linkage movement of the sunroof and the sunshade.
This effectively avoids damage to the sunshade caused by the sunroof opening too far ahead, ensuring the service life of components and driving safety, and achieving dynamic adaptation between sunroof opening and sunshade opening.
Smart Images

Figure CN121403960B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control, and specifically to a method for controlling a vehicle sunroof and a vehicle thereof. Background Technology
[0002] With the upgrading of automotive intelligence and comfort features, sunroofs and sunshades have become standard components in mainstream vehicles. They typically employ independent mechanical structures and control logic to meet users' personalized needs for lighting, ventilation, and sun shading. In actual use, users can independently trigger the sunroof opening or sunshade adjustment. However, because their mechanical structures are independent and their movement paths overlap, when the sunroof opening and sunshade adjustment are not synchronized, it is very easy for the sunroof opening to exceed the sunshade opening.
[0003] When the sunroof opening is larger than the sunshade opening, the airflow during vehicle movement can cause relative friction or collision between the two, leading to damage to the sunshade. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method for controlling a vehicle sunroof and a vehicle, in order to solve the problem that when the sunroof is opened, the opening degree of the sunroof is often greater than the opening degree of the sunshade, which leads to the risk of damage to the sunshade while the vehicle is in motion.
[0005] In a first aspect, embodiments of the present invention provide a method for controlling a vehicle sunroof, the method comprising:
[0006] In response to the sunroof opening operation, the actual opening degree of the sunshade in the current position is compared with whether it is greater than or equal to the passive maximum opening degree, and the comparison result is obtained. The passive maximum opening degree is the maximum opening degree that the sunshade can reach when the sunroof drives the sunshade to open passively.
[0007] Based on the motion strategy corresponding to the comparison results, the sunroof is controlled to move to the corresponding fully open position.
[0008] Furthermore, before comparing whether the actual opening degree of the sunshade in the current position is greater than or equal to the driven maximum opening degree to obtain the comparison result, the method further includes:
[0009] If both the skylight and the sunshade are located between the corresponding upturned position and the corresponding fully closed position, then the sunshade and the skylight are sequentially controlled to move to the corresponding upturned position.
[0010] After both the sunshade and the skylight have moved to their respective upturned positions, the upturned position of the sunshade is taken as the current position of the sunshade.
[0011] Furthermore, before comparing whether the actual opening degree of the sunshade in the current position is greater than or equal to the driven maximum opening degree to obtain the comparison result, the method further includes:
[0012] If the skylight is not located between the corresponding raised position and the corresponding fully closed position, and / or the sunshade is not located between the corresponding raised position and the corresponding fully closed position, then the current position of the sunshade is detected.
[0013] Furthermore, controlling the sunroof to the corresponding fully open position according to the motion strategy corresponding to the comparison result includes:
[0014] If the comparison result shows that the actual opening degree is greater than or equal to the maximum driven opening degree, the sunroof is controlled to move in the opening direction until the sunroof moves to the corresponding fully open position.
[0015] Furthermore, controlling the sunroof to the corresponding fully open position according to the motion strategy corresponding to the comparison result includes:
[0016] The step of controlling the sunroof to the corresponding fully open position according to the motion strategy corresponding to the comparison result includes:
[0017] If the comparison result is that the actual opening is less than the maximum driven opening, then the distance between the skylight and the sunshade is compared to see if it is greater than or equal to the first distance to obtain the first distance comparison result; wherein, the first distance is the minimum distance that the head end face of the skylight and the head end face of the sunshade must satisfy in the extension direction of their opening and closing movements when the skylight and the sunshade are started.
[0018] Based on the first control strategy corresponding to the first spacing comparison result, the sunroof is controlled to move to the corresponding fully open position.
[0019] Furthermore, controlling the sunroof to the corresponding fully open position according to the first control strategy corresponding to the first spacing comparison result includes:
[0020] If the first spacing comparison result is that the spacing is greater than or equal to the first spacing, then control the sunroof to move in the opening direction, and continuously detect whether the spacing between the sunroof and the sunshade is greater than or equal to the second spacing to obtain the second spacing comparison result;
[0021] According to the second control strategy corresponding to the second spacing comparison result, the sunroof is controlled to move to the corresponding fully open position. The second spacing is the minimum distance that the head end face of the sunroof and the head end face of the sunshade must satisfy in the extension direction of their opening and closing movements when the sunroof and the sunshade are moving.
[0022] Furthermore, controlling the sunroof to the corresponding fully open position according to the first control strategy corresponding to the first spacing comparison result includes:
[0023] If the first spacing comparison result is that the spacing is less than the first spacing, then control the sunshade to move in the opening direction, and continuously detect whether the spacing between the skylight and the sunshade is greater than the first spacing;
[0024] When the distance between the sunroof and the sunshade is detected to be greater than or equal to the first distance, the step of controlling the sunroof to move in the opening direction is executed until the sunroof moves to the corresponding fully open position.
[0025] Furthermore, controlling the sunroof to the corresponding fully open position according to the second control strategy corresponding to the second spacing comparison result includes:
[0026] If the second spacing comparison result is that the spacing is greater than or equal to the second spacing, then continue to control the sunroof to move to the corresponding fully open position;
[0027] Alternatively, if the second spacing comparison result is that the spacing is less than the second spacing, then the sunshade curtain is controlled to continue moving in the opening direction, and the skylight is controlled to stop moving until the spacing between the skylight and the sunshade curtain is greater than the first spacing, then the skylight is controlled to move to the corresponding fully open position.
[0028] Furthermore, after the sunroof has moved to the corresponding fully open position, the method further includes:
[0029] Obtain environmental data of the environment in which the vehicle is located;
[0030] The environmental data is used to determine the passive opening degree of the sunshade curtain, and the sunshade curtain is controlled to move to the position corresponding to the passive opening degree.
[0031] Secondly, embodiments of the present invention provide a control device for a vehicle sunroof, the device comprising:
[0032] The comparison module is used to respond to the sunroof opening operation, compare whether the actual opening degree of the sunshade in the current position is greater than or equal to the driven maximum opening degree, and obtain the comparison result. The driven maximum opening degree is the maximum opening degree that the sunshade can reach when the sunroof drives the sunshade to open.
[0033] The control module is used to control the sunroof to move to the corresponding fully open position according to the motion strategy corresponding to the comparison result.
[0034] Thirdly, embodiments of the present invention provide a computer device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the method described in the first aspect or any corresponding embodiment thereof.
[0035] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions that cause a computer to perform the method described in the first aspect or any of its corresponding embodiments.
[0036] Fifthly, embodiments of the present invention provide a vehicle, the vehicle including: a controller, a sunroof, and a sunshade, the controller including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor controlling the sunroof and the sunshade to perform the method described in the first aspect or any corresponding embodiment by executing the computer instructions.
[0037] This application addresses the risk of sunroof opening too early by comparing the actual opening degree of the sunshade with the maximum driven opening degree when responding to sunroof opening operations. Secondly, based on the comparison results, a targeted movement strategy is developed. If the actual opening degree of the sunshade already meets the maximum driven opening degree, the sunroof can be directly controlled to open normally. If not, the strategy is adjusted to ensure that the sunroof movement does not exceed the sunshade's adaptation range, avoiding an imbalance in the two opening degrees. Finally, this control logic does not require modification of the existing independent mechanical structure. Through linked judgment and strategy adjustment, it achieves dynamic adaptation between sunroof opening and sunshade opening degree, completely solving the problem of sunshade damage caused by airflow impact and friction during driving due to mismatched opening degrees, ensuring component lifespan and driving safety. Attached Figure Description
[0038] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0039] Figure 1 This is a flowchart illustrating a method for controlling a vehicle sunroof according to some embodiments of the present invention;
[0040] Figure 2 This is a flowchart illustrating another method for controlling a vehicle sunroof according to some embodiments of the present invention;
[0041] Figure 3This is a flowchart illustrating another method for controlling a vehicle sunroof according to some embodiments of the present invention;
[0042] Figure 4 This is a structural block diagram of a vehicle sunroof control device according to an embodiment of the present invention;
[0043] Figure 5 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0045] According to an embodiment of the present invention, a method for controlling a vehicle sunroof and a vehicle are provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0046] This embodiment provides a method for controlling a vehicle sunroof. Figure 1 This is a flowchart of a vehicle sunroof control method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:
[0047] Step S101: Respond to the sunroof opening operation, compare whether the actual opening degree of the sunshade in the current position is greater than or equal to the driven maximum opening degree, and obtain the comparison result. The driven maximum opening degree is the maximum opening degree that the sunshade can reach when the sunroof drives the sunshade to open.
[0048] In this embodiment of the application, when the user triggers the sunroof opening operation (such as pressing the open button or using a voice command), the controller first determines the current position of the sunroof and the sunshade. If the sunroof is not located between the corresponding raised position and the corresponding fully closed position, and / or the sunshade is not located between the corresponding raised position and the corresponding fully closed position, then the current position of the sunshade is detected.
[0049] Understandably, after responding to the sunroof opening operation, the controller will determine the current positions of the sunroof and the sunshade: first, it checks whether the sunroof is within the preset range from the tilted-up position to the fully closed position; second, it simultaneously checks whether the sunshade is within the same range. When any of the following three situations occur—"the sunroof is not within the range," "the sunshade is not within the range," or "neither is within the range"—the controller will trigger a position detection mechanism, using a compatible position sensor to collect and accurately obtain the current position of the sunshade in real time.
[0050] Simultaneously, the preset maximum driven opening degree is invoked (this parameter is the maximum safe opening threshold determined during the calibration phase when the sunroof drives the sunshade to open automatically). Finally, the controller compares the detected actual opening degree of the sunshade with the maximum driven opening degree to obtain the comparison result.
[0051] It should be noted that the tilting position is when the sunroof or sunshade is in its opening stroke, and its head end face is removed from the fully closed and sealed state, tilting upward or in the opening direction to the critical position of the preset angle / stroke. This position retains a small ventilation gap and will not interfere with the other structure.
[0052] The maximum driven opening is the safe upper limit when the sunroof drives the sunshade to open automatically. When the actual opening of the sunshade is greater than or equal to the maximum driven opening, it means that its current position meets the safety adaptation requirements for opening the sunroof, and the sunroof can be opened normally without any problem of opening too far ahead. If the actual opening is less than the maximum driven opening, it means that the sunshade has not reached the safe adaptation state. At this time, it is necessary to adjust the control strategy (such as opening the sunshade first and then starting the sunroof) to ensure that the sunroof opening does not exceed the safe coverage range of the sunshade, thereby avoiding the risk of friction, collision and sunshade damage caused by airflow impact during vehicle operation.
[0053] Step S102: Control the sunroof to the corresponding fully open position according to the motion strategy corresponding to the comparison result.
[0054] In this embodiment, the controller executes the corresponding motion strategy based on the comparison result: if the comparison result is that the actual opening degree of the sunshade is greater than or equal to the maximum opening degree of the driven sunshade, it means that the current opening degree of the sunshade can be adapted to the opening of the sunroof. The controller directly controls the sunroof drive motor to move towards the fully open position at a preset speed until it reaches the fully open limit and triggers a stop.
[0055] If the comparison result shows that the actual opening of the sunshade is less than the maximum opening of the driven sunshade, it means that the current opening of the sunshade does not meet the adaptation requirements. First, control the sunroof to pause opening or move slowly at a low speed, while simultaneously controlling the sunshade to open to the maximum opening of the driven sunshade. After confirming that the sunshade has reached the designated position, control the sunroof to continue moving to the fully open position.
[0056] This application addresses the risk of sunroof opening too early by comparing the actual opening degree of the sunshade with the maximum driven opening degree when responding to sunroof opening operations. Secondly, based on the comparison results, a targeted movement strategy is developed. If the actual opening degree of the sunshade already meets the maximum driven opening degree, the sunroof can be directly controlled to open normally. If not, the strategy is adjusted to ensure that the sunroof movement does not exceed the sunshade's adaptation range, avoiding an imbalance in the opening degrees. Finally, this control logic does not require modification of the existing independent mechanical structure. Through linked judgment and strategy adjustment, it achieves dynamic adaptation between sunroof opening and sunshade opening degree, completely solving the problem of sunshade damage caused by airflow impact and friction during driving due to mismatched opening degrees, ensuring component lifespan and driving safety.
[0057] Figure 2 This is a flowchart of a vehicle sunroof control method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:
[0058] Step S201: In response to the sunroof opening operation, if both the sunroof and the sunshade are located between the corresponding raised position and the corresponding fully closed position, then control the sunshade and the sunroof to move to the corresponding raised position in sequence.
[0059] In this embodiment, when a user triggers the sunroof opening operation, the controller first responds to the operation and initiates a position detection process. Using position sensors, the current position data of the sunroof and sunshade are collected respectively, thereby determining whether both are within the preset range from the tilted-up position to the fully closed position.
[0060] If the detection results show that both are within the range, it means that the current position meets the linkage initialization conditions. The controller will generate a linkage control command, first driving the sunshade drive motor to run, controlling the sunshade to move towards the raised position. After the sunshade reaches the raised position and triggers the limit signal, the sunroof drive motor will be driven to control the sunroof to move synchronously to the raised position, completing the initial position alignment of the two.
[0061] Step S202: After both the sunshade and the skylight have moved to their respective upturned positions, the corresponding upturned position of the sunshade is taken as the current position of the sunshade.
[0062] In this embodiment, after both the sunshade and the skylight move to the raised position, their respective position detection components will send a position signal (such as a level change, pulse signal, etc.) to the controller. After receiving and confirming the position signal, the controller updates the opening parameter corresponding to the current raised position of the sunshade to the current position of the sunshade.
[0063] It should be noted that moving both the sunshade and sunroof to the tilted-up position is to avoid the risk of the sunroof opening being greater than the sunshade opening by using a unified initial benchmark. The tilted-up position is a safety benchmark point for the coordinated control of the two, ensuring that the opening calculations of the two have a unified reference and avoiding inaccurate opening comparisons due to dispersed initial positions (such as the sunroof being half-open and the sunshade being half-closed). At the same time, this position allows the two to be out of the fully closed and sealed state and maintain a safe distance, eliminating the potential opening imbalance that may exist in the initial position, and ensuring that the sunroof never exceeds the safe coverage area of the sunshade during the opening process through subsequent opening comparisons and strategy adjustments based on the tilted-up position. This avoids friction and collision between the two caused by airflow impact during vehicle movement from the source, thereby preventing damage to the sunshade.
[0064] Step S203: Compare whether the actual opening of the sunshade curtain at the corresponding upturned position is greater than or equal to the driven maximum opening, and obtain the comparison result. The driven maximum opening is the maximum opening that the sunshade curtain can reach when the sunshade curtain is driven to open by the skylight.
[0065] In this embodiment, the controller first retrieves the maximum passive opening threshold from a preset parameter database. This threshold is the maximum safe opening degree when the sunroof drives the sunshade to open passively, determined through multiple tests during the calibration phase (ensuring that the sunroof will not be damaged due to the opening degree exceeding the coverage area of the sunshade during opening). Subsequently, the controller extracts the actual opening degree corresponding to the sunshade's upturned position and compares this actual opening degree value with the maximum passive opening threshold in real time.
[0066] Step S204: Control the sunroof to the corresponding fully open position according to the motion strategy corresponding to the comparison result.
[0067] In this embodiment of the application, the sunroof is controlled to move to the corresponding fully open position according to the motion strategy corresponding to the comparison result, including: if the comparison result is that the actual opening degree is greater than or equal to the driven maximum opening degree, the sunroof is controlled to move in the opening direction until the sunroof moves to the corresponding fully open position.
[0068] The comparison results show that when the actual opening degree of the sunshade at the tilted-up position is greater than or equal to the maximum driven opening degree, it indicates that the current opening degree of the sunshade has reached the maximum safe threshold for the sunroof to drive its driven opening, meeting the adaptation conditions for sunroof opening and preventing the sunroof opening degree from exceeding the coverage range of the sunshade. The controller generates a sunroof opening control command, driving the sunroof drive motor to run in the opening direction at a preset normal speed, while simultaneously monitoring the movement position and opening degree changes of the sunroof in real time through a position sensor. During the sunroof movement, its opening degree is continuously verified to ensure it does not exceed the actual opening degree adaptation range of the sunshade, until the sunroof moves to the preset fully open position and triggers the fully open limit switch. After receiving the limit signal, the controller cuts off the motor drive power, the sunroof stops moving, and the fully open action is completed.
[0069] In another embodiment of this application, controlling the sunroof to the corresponding fully open position according to the motion strategy corresponding to the comparison result includes:
[0070] Step A1: If the comparison result is that the actual opening is less than the maximum driven opening, then compare whether the distance between the skylight and the sunshade is greater than or equal to the first distance to obtain the first distance comparison result; wherein, the first distance is the minimum distance that the head end face of the skylight and the head end face of the sunshade must satisfy in the extension direction of their opening and closing movements when the skylight and the sunshade are started.
[0071] Specifically, if the comparison result shows that the actual opening is less than the maximum driven opening, it indicates that the current opening does not meet the safety requirements for sunroof opening. In this case, the spacing detection process is initiated:
[0072] The distance sensor collects the actual distance between the sunroof head end face and the sunshade head end face in real time (the distance direction is the extension direction of their opening and closing movements, that is, the forward and backward extension direction along the vehicle's X-axis, which is in the same direction as the X-axis pointing to the front of the vehicle in the vehicle coordinate system, corresponding to their backward movement trajectory when opening and forward movement trajectory when closing). At the same time, the preset first distance is called (this parameter is the minimum safe distance that the two must meet when starting, which is determined by calibration), and the actual distance data is compared with the first distance to determine whether the actual distance is greater than or equal to the first distance, thus obtaining the first distance comparison result.
[0073] It should be noted that the first spacing is the minimum distance that the leading edge of the sunroof and the leading edge of the sunshade must satisfy between them in the extended direction of their opening and closing movements when the sunroof and sunshade are activated. This extended direction of their opening and closing movements refers to the direction of their movement along the vehicle's X-axis (i.e., the front-to-back extension direction) when the sunroof and sunshade respectively perform their opening or closing actions. This direction is the same as the X-axis pointing forward in the vehicle's coordinate system; specifically, when the sunroof and sunshade open, they slide backwards towards the rear of the vehicle, and when they close, they slide forwards towards the front.
[0074] Step A2: Control the sunroof to the corresponding fully open position according to the first control strategy corresponding to the first spacing comparison result.
[0075] Specifically, based on the first control strategy corresponding to the first spacing comparison result, the sunroof is controlled to move to the corresponding fully open position, including the following steps B1-B2:
[0076] Step B1: If the first spacing comparison result is that the spacing is greater than or equal to the first spacing, then control the sunroof to move in the opening direction, and continuously detect whether the spacing between the sunroof and the sunshade is greater than or equal to the second spacing to obtain the second spacing comparison result.
[0077] If the first comparison result shows that the distance between the sunroof and the sunshade is greater than or equal to the first distance (the minimum safe distance that must be met when the two are started and extended along the opening and closing movement direction), it indicates that the safety adaptation requirements of the sunroof start-up phase are met. The controller then generates a sunroof opening command to drive the sunroof drive motor to run in the opening direction. At the same time, the real-time distance monitoring mechanism is activated, which continuously collects the dynamic distance data of the two head end faces in the opening and closing movement extension direction (along the front and rear extension direction of the vehicle's X-axis) through the distance sensor, and compares it with the preset second distance to determine whether the actual distance is greater than or equal to the second distance, thus obtaining the second distance comparison result.
[0078] Step B2: Control the sunroof to the corresponding fully open position according to the second control strategy corresponding to the second spacing comparison result. The second spacing is the minimum distance that the head end face of the sunroof and the head end face of the sunroof must satisfy in the extension direction of their opening and closing movements when the sunroof and sunshade are moving.
[0079] The second control strategy, based on the second spacing comparison result, controls the sunroof to move to the corresponding fully open position, including:
[0080] ①If the second spacing comparison result is that the spacing is greater than or equal to the second spacing, then continue to control the sunroof movement to the corresponding fully open position.
[0081] If the second distance comparison result is that the distance between the sunroof and the sunshade is greater than or equal to the second distance (the minimum safe distance that the two must meet in the direction of opening and closing movement, which is the forward and backward extension direction along the X-axis of the vehicle, corresponding to the sliding trajectory of opening backward and closing forward, and the second distance value is less than the first distance), it means that the two always maintain a safe distance during the movement. The controller will maintain the current movement state of the sunroof and drive the sunroof drive motor to continue to run in the opening direction until the sunroof reaches the preset fully open position and triggers the limit signal, controlling the motor to stop working.
[0082] ② If the second spacing comparison result is that the spacing is less than the second spacing, then control the sunshade to continue moving in the opening direction and control the sunroof to stop moving until the spacing between the sunroof and the sunshade is greater than the first spacing, then continue to control the sunroof to move to the corresponding fully open position.
[0083] If the second distance comparison result shows that the distance between the two is less than the second distance, it indicates that there is a risk of motion interference. The controller generates an adjustment command, which on the one hand controls the sunroof drive motor to stop running to avoid the distance from shrinking further, and on the other hand drives the sunshade drive motor to move in the opening direction to increase the distance between the two. At the same time, the distance sensor continuously monitors the distance change. When it detects that the distance is greater than the first distance again (the minimum safe distance that the two must meet when starting), the sunroof drive motor is restarted to control the sunroof to continue moving towards the fully open position until the fully open action is completed.
[0084] As an example, after a user triggers the sunroof opening operation, a comparison reveals that the actual opening degree q of the sunshade is less than the maximum driven opening degree p. The controller uses a distance sensor to collect the actual distance m between the sunroof and the sunshade, calls a preset first distance n1, and determines that the distance m is greater than the first distance n1. Subsequently, the controller drives the sunroof to move in the opening direction while continuously monitoring the dynamic distance between the two and calling a preset second distance n2 for real-time comparison. During the movement, if the dynamic distance is consistently greater than or equal to the second distance n2, the sunroof movement is maintained until it reaches the fully open position and triggers a limit signal; if the dynamic distance is less than the second distance n2, the controller stops the sunroof movement and simultaneously drives the sunshade to move in the opening direction to increase the distance. Once the distance is detected to be greater than the first distance n again, the sunroof movement resumes, ultimately completing the fully open action.
[0085] It should be noted that when the actual opening of the sunshade is less than the maximum driven opening (not meeting the safety adaptation requirements), the starting conditions are first checked with the first spacing to ensure that there is no initial interference between the two before the sunroof is opened; during movement, the second spacing is used for dynamic monitoring, which allows for reasonable movement spacing while preventing the spacing from being too small; if the spacing is insufficient, a closed-loop adjustment of "sunroof stop - sunshade open - spacing meets standard and then the sunroof is reopened" is used to always ensure that the opening of the sunroof does not exceed the coverage area of the sunshade, avoiding friction or collision caused by the relative movement of the two. Finally, through graded spacing control and linkage adjustment, the problem of sunshade damage caused by opening imbalance is solved.
[0086] In this embodiment of the application, the sunroof is controlled to move to the corresponding fully open position according to the first control strategy corresponding to the first spacing comparison result, including the following steps C1-C2:
[0087] Step C1: If the first spacing comparison result is that the spacing is less than the first spacing, then control the sunshade to move in the opening direction, and continuously detect whether the spacing between the skylight and the sunshade is greater than the first spacing.
[0088] Specifically, the actual distance between the sunroof and the sunshade is less than the first distance, indicating that the minimum safe distance requirement for the start-up phase is not currently met. Directly opening the sunroof could easily lead to structural interference or friction risks. The controller then generates a sunshade opening control command, driving the sunshade drive motor to rotate in the opening direction. At the same time, it continuously collects the distance data between the head end face of the sunroof and the head end face of the sunshade through a distance sensor and dynamically compares it with the preset first distance.
[0089] Step C2: When the distance between the sunroof and the sunshade is detected to be greater than or equal to the first distance, the step of controlling the sunroof to move in the opening direction is executed until the sunroof moves to the corresponding fully open position.
[0090] Specifically, when the distance between the two increases to a level greater than or equal to the first distance, it indicates that the safety conditions for sunroof activation have been met. The controller switches the control logic, drives the sunroof drive motor to move in the opening direction, and continuously monitors the distance between the two during the movement (ensuring that it is not lower than the second distance) until the sunroof moves to the preset fully open position and triggers the limit signal, controlling the motor to stop working and completing the sunroof fully opening action.
[0091] As an example, the actual distance *m* between the sunroof and the sunshade is less than a preset first distance *n1*. At this time, the controller generates a sunshade opening command, driving the sunshade drive motor in the opening direction. Simultaneously, a distance sensor continuously collects distance data between the two and dynamically compares it with the first distance *n1*. When the distance is detected to increase to be greater than or equal to the first distance *n1*, the controller switches control logic, driving the sunroof drive motor in the opening direction. During this movement, the distance between the two is continuously monitored to ensure it is never lower than a second distance *n2*, until the sunroof reaches the preset fully open position and triggers a limit signal. The motor then stops, completing the fully open sunroof action.
[0092] It should be noted that when the distance between the sunroof and the sunshade is less than the first spacing (the minimum safe distance during startup), directly opening the sunroof can easily cause interference due to insufficient initial spacing. Controlling the sunshade to move in the opening direction first actively increases the distance until the first safe spacing standard is reached. Only then will the sunroof not open ahead of the sunshade. This solution, through the coordinated control of "first completing the safe spacing before starting the sunroof," ensures that the sunroof remains within the safe coverage area of the sunshade throughout the entire opening process, avoiding relative friction or collision caused by insufficient spacing.
[0093] In this embodiment, the first distance is calibrated as follows: First, the minimum safe distance between the sunroof and the sunshade when they are in the tilted-up position is measured through bench testing—that is, the critical interval at which the sunroof does not physically contact the sunshade when it begins to move towards full opening (e.g., measured to be 20mm). Second, considering the sensor detection error (±2mm) and the motor starting inertia deviation (±3mm), a safety redundancy (e.g., 5-8mm) is added to the critical interval, and the first distance is finally calibrated to be 30mm. For example, when the actual opening of the sunshade in the tilted-up position is small, it is necessary to ensure that the distance between the two is not less than 30mm before the sunroof starts to avoid collision caused by the superposition of movements at the moment of starting.
[0094] The calibration method for the second spacing is as follows: The calibration of the second spacing focuses on "dynamic safety buffering during movement," with real-time responsiveness and mechanical protection as the core objectives. First, dynamic simulation tests are used to capture the minimum interference interval when the sunroof and sunshade move synchronously—that is, the dynamic critical value (e.g., 10mm measured) at which the sunshade does not experience friction during the follow-up process when the sunroof opens at its rated speed (e.g., 50mm / s). Then, the response period of the spacing detection (e.g., 20ms) and the motor speed adjustment delay (±1mm) are combined, and a dynamic redundancy (3-5mm) is added, ultimately calibrating the second spacing to 15mm. For example, during sunroof opening, if the real-time spacing drops below 15mm, the sunroof movement is paused, triggering the sunshade to open automatically. The 15mm dynamic buffer space balances the smoothness of movement with mechanical safety.
[0095] In this embodiment of the application, after the sunroof moves to the corresponding fully open position, the method further includes: acquiring environmental data of the vehicle's environment; using the environmental data to determine the passive opening degree of the sunshade, and controlling the sunshade to move to the position corresponding to the passive opening degree.
[0096] Specifically, the controller collects environmental data in real time through multi-dimensional environmental sensors (wind speed sensor, rain sensor, light sensor, and vehicle speed sensor) on the vehicle, including wind speed v, rainfall level r (0-5, 0 for no rain, 5 for heavy rain), light intensity l (0-10000 lux), and vehicle speed s. Then, a weighted calculation method is used to determine the voluntary opening degree θ of the sunshade. The specific calculation process is as follows: First, the environmental parameters are normalized to obtain standardized values: wind speed standardized value v'=v / 20 (maximum safe wind speed set at 20 m / s), rainfall standardized value r'=r / 5, light intensity standardized value l'=1-(l / 10000) (the stronger the light, the lower the sunshade requirement, and the smaller the standardized value), and vehicle speed standardized value s'=s / 120 (maximum safe vehicle speed set at 120 km / h); Second, the values are substituted into the weighted formula θ=θ The calculation is calculated as follows: 0 × (1 - k1v' - k2r' - k3s' + k4l'), where θ0 is the basic driven opening (default 80%), k1 (wind speed weight) = 0.3, k2 (rainfall weight) = 0.2, k3 (vehicle speed weight) = 0.2, and k4 (sunlight weight) = 0.1 (the sum of all weights ≤ 1). The third step involves limiting the calculated result θ to ensure it falls within a safe range of 10%-80% (10% if below 10%, 80% if above 80%), ultimately obtaining the driven opening of the sunshade under the current environment. Finally, the controller generates control commands to drive the sunshade's drive motor, using closed-loop feedback from the position sensor to precisely move the sunshade to the position corresponding to the driven opening and maintain it.
[0097] As an example, such as Figure 3As shown, when a user triggers the operation of the sunshade in the opening direction, it first determines whether the sunshade and the sunroof are currently in the fully closed position. If both the sunshade and the sunroof are in the fully closed position, the sunshade is controlled to move in the opening direction. Then, it is determined whether the actual opening degree of the sunshade is greater than the maximum opening degree threshold. If the actual opening degree is greater than or equal to the threshold, the sunroof is controlled to move in the opening direction until it reaches the fully open position. If the actual opening degree is less than the threshold, it is determined whether the distance between the sunroof and the sunshade is greater than the first distance (distance 1). If the distance is greater than the first distance (distance 1), the sunroof is controlled to move in the opening direction, and the distance between the two is continuously monitored. If the distance is greater than the second spacing (spacing 2), continue to control the sunroof to the fully open position; if the distance is less than or equal to the second spacing (spacing 2), control the sunshade to continue moving in the opening direction, while controlling the sunroof to stop moving, until the distance is greater than the second spacing (spacing 2), then continue to control the sunroof to the fully open position; if the initial judgment is that the distance is less than the first spacing (spacing 1), control the sunshade to move in the opening direction, and continuously check whether the distance is greater than or equal to the first spacing (spacing 1). When the distance is found to be satisfied, execute the step of controlling the sunroof to move in the opening direction until the sunroof moves to the fully open position.
[0098] This application provides a vehicle, which includes a controller, a sunroof, and a sunshade. The controller includes a memory and a processor, which are communicatively connected. The memory stores computer instructions, and the processor executes the computer instructions to control the sunroof and sunshade to perform the methods of any of the above embodiments.
[0099] This embodiment also provides a vehicle sunroof control device, which is used to implement the above embodiments and preferred embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0100] This embodiment provides a control device for a vehicle sunroof, such as... Figure 4 As shown, it includes:
[0101] The comparison module 401 is used to respond to the sunroof opening operation, compare whether the actual opening degree of the sunshade in the current position is greater than or equal to the driven maximum opening degree, and obtain the comparison result. The driven maximum opening degree is the maximum opening degree that the sunshade can reach when the sunroof drives the sunshade to open.
[0102] The control module 402 is used to control the sunroof to move to the corresponding fully open position according to the motion strategy corresponding to the comparison result.
[0103] In this embodiment of the application, the device further includes: a first execution module, configured to, if the sunroof and the sunshade are both located between the corresponding raised position and the corresponding fully closed position, sequentially control the sunshade and the sunroof to move to the corresponding raised position; after the sunshade and the sunroof have both moved to the corresponding raised position, take the corresponding raised position of the sunshade as the current position of the sunshade.
[0104] In this embodiment of the application, the device further includes: a second execution module, used to detect the current position of the sunshade if the sunroof is not located between the corresponding raised position and the corresponding fully closed position, and / or the sunshade is not located between the corresponding raised position and the corresponding fully closed position.
[0105] In this embodiment of the application, the control module 402 is used to control the sunroof to move in the opening direction if the comparison result is that the actual opening degree is greater than or equal to the driven maximum opening degree, until the sunroof moves to the corresponding fully open position.
[0106] In this embodiment of the application, the control module 402 is specifically used to compare whether the distance between the sunroof and the sunshade is greater than or equal to a first distance if the comparison result is that the actual opening is less than the maximum driven opening, and obtain a first distance comparison result; wherein, the first distance is the minimum distance that the head end face of the sunroof and the head end face of the sunshade must satisfy in the extension direction of their opening and closing movements when the sunroof and the sunshade are started; and control the sunroof to move to the corresponding fully open position according to the first control strategy corresponding to the first distance comparison result.
[0107] In this embodiment of the application, the control module 402 is specifically used to control the sunroof to move in the opening direction if the first spacing comparison result is that the spacing is greater than or equal to the first spacing, and continuously detect whether the spacing between the sunroof and the sunshade is greater than or equal to the second spacing to obtain the second spacing comparison result; and control the sunroof to move to the corresponding fully open position according to the second control strategy corresponding to the second spacing comparison result, wherein the second spacing is the minimum distance that the head end face of the sunroof and the head end face of the sunshade must satisfy in the extension direction of their opening and closing movements when the sunroof and the sunshade are moving.
[0108] In this embodiment of the application, the control module 402 is specifically used to control the sunshade to move in the opening direction if the first spacing comparison result is that the spacing is less than the first spacing, and continuously detect whether the spacing between the sunroof and the sunshade is greater than the first spacing; when the spacing between the sunroof and the sunshade is detected to be greater than or equal to the first spacing, the step of controlling the sunroof to move in the opening direction is executed until the sunroof moves to the corresponding fully open position.
[0109] In this embodiment of the application, the control module 402 is specifically used to control the sunroof to move to the corresponding fully open position if the second spacing comparison result is that the spacing is greater than or equal to the second spacing; or, if the second spacing comparison result is that the spacing is less than the second spacing, control the sunshade to continue moving in the opening direction and control the sunroof to stop moving until the spacing between the sunroof and the sunshade is greater than the first spacing, and then control the sunroof to move to the corresponding fully open position.
[0110] In this embodiment of the application, the device further includes: an adjustment module, used to acquire environmental data of the vehicle's environment; use the environmental data to determine the passive opening degree of the sunshade, and control the sunshade to move to the position corresponding to the passive opening degree.
[0111] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 5 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system).
[0112] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0113] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.
[0114] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device as shown by a landing page for an app. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, which can be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0115] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0116] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0117] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0118] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for controlling a vehicle sunroof, characterized in that, The method includes: In response to the sunroof opening operation, the actual opening degree of the sunshade in the current position is compared with whether it is greater than or equal to the passive maximum opening degree, and the comparison result is obtained. The passive maximum opening degree is the maximum opening degree that the sunshade can reach when the sunroof drives the sunshade to open passively. The current position is determined based on whether the sunroof and the sunshade are located between the corresponding raised position and the corresponding fully closed position. According to the motion strategy corresponding to the comparison result, the sunroof is controlled to move to the corresponding fully open position. In the motion strategy of controlling the sunroof to move to the corresponding fully open position, if the actual opening degree is less than the driven maximum opening degree, a first gap and a second gap are set. The first gap is the minimum safe distance that the head end faces of the sunroof and the sunshade must meet in the opening and closing extension direction when they are started. The second gap is the minimum safe distance that the head end faces of the sunroof and the sunshade must meet in the opening and closing extension direction when they are moving.
2. The method of claim 1, wherein, Before comparing whether the actual opening degree of the sunshade in the current position is greater than or equal to the driven maximum opening degree to obtain the comparison result, the method further includes: If both the skylight and the sunshade are located between the corresponding upturned position and the corresponding fully closed position, then the sunshade and the skylight are sequentially controlled to move to the corresponding upturned position. After both the sunshade and the skylight have moved to their respective upturned positions, the upturned position of the sunshade is taken as the current position of the sunshade.
3. The method of claim 1, wherein, Before comparing whether the actual opening degree of the sunshade in the current position is greater than or equal to the driven maximum opening degree to obtain the comparison result, the method further includes: If the skylight is not located between the corresponding raised position and the corresponding fully closed position, and / or the sunshade is not located between the corresponding raised position and the corresponding fully closed position, then the current position of the sunshade is detected.
4. The method of claim 1, wherein, The step of controlling the sunroof to the corresponding fully open position according to the motion strategy corresponding to the comparison result includes: If the comparison result shows that the actual opening degree is greater than or equal to the maximum driven opening degree, the sunroof is controlled to move in the opening direction until the sunroof moves to the corresponding fully open position.
5. The method of claim 1, wherein, The step of controlling the sunroof to the corresponding fully open position according to the motion strategy corresponding to the comparison result includes: If the comparison result is that the actual opening is less than the maximum driven opening, then the distance between the skylight and the sunshade is compared to see if it is greater than or equal to the first distance to obtain the first distance comparison result; wherein, the first distance is the minimum distance that the head end face of the skylight and the head end face of the sunshade must satisfy in the extension direction of their opening and closing movements when the skylight and the sunshade are started. Based on the first control strategy corresponding to the first spacing comparison result, the sunroof is controlled to move to the corresponding fully open position.
6. The method of claim 5, wherein, The step of controlling the sunroof to the corresponding fully open position according to the first control strategy corresponding to the first spacing comparison result includes: If the first spacing comparison result is that the spacing is greater than or equal to the first spacing, then control the sunroof to move in the opening direction, and continuously detect whether the spacing between the sunroof and the sunshade is greater than or equal to the second spacing to obtain the second spacing comparison result; According to the second control strategy corresponding to the second spacing comparison result, the sunroof is controlled to move to the corresponding fully open position. The second spacing is the minimum distance that the head end face of the sunroof and the head end face of the sunshade must satisfy in the extension direction of their opening and closing movements when the sunroof and the sunshade are moving.
7. The method of claim 5, wherein, The step of controlling the sunroof to the corresponding fully open position according to the first control strategy corresponding to the first spacing comparison result includes: If the first spacing comparison result is that the spacing is less than the first spacing, then control the sunshade to move in the opening direction, and continuously detect whether the spacing between the skylight and the sunshade is greater than the first spacing; When the distance between the sunroof and the sunshade is detected to be greater than or equal to the first distance, the step of controlling the sunroof to move in the opening direction is executed until the sunroof moves to the corresponding fully open position.
8. The method of claim 6, wherein, The step of controlling the sunroof to the corresponding fully open position according to the second control strategy corresponding to the second spacing comparison result includes: If the second spacing comparison result is that the spacing is greater than or equal to the second spacing, then continue to control the sunroof to move to the corresponding fully open position; Alternatively, if the second spacing comparison result is that the spacing is less than the second spacing, then the sunshade curtain is controlled to continue moving in the opening direction, and the skylight is controlled to stop moving until the spacing between the skylight and the sunshade curtain is greater than the first spacing, then the skylight is controlled to move to the corresponding fully open position.
9. The method of claim 1, wherein, After the sunroof has moved to the corresponding fully open position, the method further includes: Obtain environmental data of the environment in which the vehicle is located; The environmental data is used to determine the passive opening degree of the sunshade curtain, and the sunshade curtain is controlled to move to the position corresponding to the passive opening degree.
10. A vehicle characterized by comprising: The vehicle includes a controller, a sunroof, and a sunshade. The controller includes a memory and a processor, which are communicatively connected. The memory stores computer instructions, and the processor executes the computer instructions to control the sunroof and the sunshade to perform the method of any one of claims 1 to 9.
Citation Information
Patent Citations
Controller and automotive skylight control system as well as control method using controller
CN104656496A
Skylight system
CN111660778A
Opening / closing body control system and opening / closing body device control method
JP2018188003A