Skylight adjusting method and device, vehicle and storage medium
By obtaining environmental and vehicle information, and automatically adjusting the car sunroof using wind resistance and wind noise prediction models, the problem that the existing system cannot be adjusted according to external environmental conditions is solved, and passenger comfort and safety are improved.
Patent Information
- Application Number
- CN202411221241.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-10
AI Technical Summary
The existing car sunroof adjustment system cannot be automatically adjusted according to external environmental conditions, which will affect the comfort and safety of drivers and passengers in bad weather or unsuitable environments.
By obtaining environmental information and vehicle information, the current wind resistance and wind noise prediction model is used to calculate the current wind resistance and wind noise, and the sunroof is adjusted according to the comfort indicator parameters. If the parameters are not within the preset range, the sunroof opening angle is automatically adjusted to optimize passenger comfort.
Automatic adjustment of the sunroof is realized, improving passenger comfort and safety, reducing the driver's operating burden, and preventing problems caused by excessive wind noise or airflow discomfort.
Smart Images

Figure CN119099306A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent vehicle control technology, and specifically to a sunroof adjustment method, device, vehicle and storage medium. Background Art
[0002] With the rapid development of the automobile industry, the interior configuration of vehicles is becoming increasingly rich, aiming to improve the comfort and driving safety of drivers and passengers. Among them, the vehicle sunroof, as an important configuration to improve the lighting, ventilation and viewing angle in the car, occupies an indispensable position in the design of improving user experience. However, most of the widely used automotive sunroof adjustment systems in the current market still remain in the traditional manual operation mode.
[0003] In the related art, although there are technologies for automatically adjusting the sunroof, most of them are adjusted based on the user's voice or the temperature inside the car. The existing sunroof adjustment system cannot automatically adjust according to external environmental conditions, resulting in the comfort and safety of the driver and passengers being affected in bad weather or unsuitable environments. Summary of the invention
[0004] In view of the shortcomings of the related technologies mentioned above, the present application provides a sunroof adjustment method, device, vehicle and storage medium to solve the technical problem that the sunroof cannot be automatically adjusted based on external environmental conditions.
[0005] The present application provides a sunroof adjustment method, the sunroof method comprising: acquiring environmental information and vehicle information, the environmental information comprising a current wind speed, the vehicle information comprising a current vehicle speed and a current sunroof opening angle; inputting the current vehicle speed, the current wind speed and the current sunroof opening angle into a preset wind resistance prediction model to obtain the current wind resistance, and inputting the current wind speed and the current sunroof opening angle into a preset wind noise prediction model to obtain the current wind noise; assigning index weights to the current wind noise and the current wind resistance respectively, and obtaining a comfort index parameter based on the assigned index weights and the current wind resistance and the current wind noise, if the comfort index parameter is not within the preset comfort index range, obtaining a first sunroof adjustment value based on the current vehicle speed and the current wind noise; and controlling the sunroof to adjust the sunroof based on the first sunroof adjustment value.
[0006] In one embodiment of the present application, after obtaining environmental information and vehicle information, it also includes: comparing the current rainfall with a preset rainfall threshold, the environmental information includes the current rainfall; if the current rainfall is less than the preset first rainfall threshold, controlling the sunroof for sunroof adjustment based on the first sunroof adjustment value; if the current rainfall is greater than or equal to the preset first rainfall threshold, and the current rainfall is less than the preset second rainfall threshold, controlling the sunroof for sunroof adjustment based on the preset second sunroof adjustment value; if the current rainfall is greater than or equal to the preset second rainfall threshold, closing the sunroof.
[0007] In one embodiment of the present application, after obtaining the comfort index parameter, it also includes: if the comfort index parameter is within a preset comfort index range, then obtaining the temperature difference between inside and outside the car based on the temperature inside the car and the temperature outside the car, and the environmental information also includes the temperature inside the car and the temperature outside the car; if the temperature difference between inside and outside the car is within the preset temperature difference range, then obtaining a temperature difference adjustment coefficient based on the temperature difference between inside and outside the car and the preset temperature difference range; obtaining a third sunroof adjustment value based on the temperature difference adjustment coefficient and the maximum sunroof opening angle of the sunroof, and controlling the sunroof for sunroof adjustment according to the third sunroof adjustment value.
[0008] In one embodiment of the present application, the current vehicle speed, the current wind speed and the current sunroof opening angle are input into a preset wind resistance prediction model to obtain the current wind resistance, which includes:
[0009] WindResistanceFactor
[0010] =0.5×ρ×CarSpeed×WindSpeed×WindowArea
[0011] ×WindowCoefficient(WindowAngle)
[0012] Among them, WindResistanceFactor is the current wind resistance, ρ is the preset air density, CarSpeed is the current vehicle speed, WindSpeed is the current wind speed, WindowArea is the skylight area of the skylight, WindowCoefficient is a preset function, and WindowAngle is the current skylight opening angle.
[0013] In one embodiment of the present application, the current wind speed and the current sunroof opening angle are input into a preset wind noise prediction model, and the current wind noise is obtained including:
[0014] WindNoise=α×WindSpeed×WindowArea×(WindowCoefficient(WindowAngle))β
[0015] Among them, WindNoise is the current wind noise, α is the preset first wind noise coefficient, WindSpeed is the current wind speed, WindowArea is the skylight area of the skylight, WindowCoefficient is a preset function, WindowAngle is the current skylight opening angle, and β is the preset second wind noise coefficient.
[0016] In one embodiment of the present application, obtaining the first sunroof adjustment value based on the current vehicle speed and the current wind noise includes: calculating the wind noise level based on the current wind noise; calculating the first sunroof adjustment value by weighted summing the current vehicle speed and the preset vehicle speed adjustment weight, the wind noise level and the preset wind noise adjustment weight; calculating a scaling factor based on the maximum sunroof opening angle of the sunroof, the minimum sunroof opening angle of the sunroof, a preset vehicle speed range and a preset wind noise level range; scaling the first sunroof adjustment value based on the scaling factor, and controlling the sunroof to perform sunroof adjustment based on the scaled first sunroof adjustment value.
[0017] In one embodiment of the present application, calculating the scaling factor based on the maximum sunroof opening angle of the sunroof, the minimum sunroof opening angle of the sunroof, a preset vehicle speed range and a preset wind noise level range includes: performing weighted sum calculation on the preset vehicle speed adjustment weight and the preset vehicle speed maximum value, the preset wind noise adjustment weight and the preset wind noise maximum value to obtain the maximum weighted sum; performing weighted sum calculation on the preset vehicle speed adjustment weight and the preset vehicle speed minimum value, the preset wind noise adjustment weight and the preset wind noise minimum value to obtain the minimum weighted sum; and obtaining the scaling factor based on the difference between the maximum sunroof opening angle and the minimum sunroof opening angle, and the ratio of the difference between the maximum weighted sum and the minimum weighted sum.
[0018] The embodiment of the present application further provides a sunroof adjustment device, comprising an information input module, used to obtain environmental information and vehicle information, wherein the environmental information includes a current wind speed, and the vehicle information includes a current vehicle speed and a current sunroof opening angle; a model prediction module, used to input the current vehicle speed, the current wind speed, and the current sunroof opening angle into a preset wind resistance prediction model to obtain current wind resistance, and input the current wind speed and the current sunroof opening angle into a preset wind noise prediction model to obtain current wind noise;
[0019] an adjustment value calculation module, used to assign index weights to the current wind noise and the current wind resistance respectively, and obtain a comfort index parameter according to the assigned index weights and the current wind resistance and the current wind noise; if the comfort index parameter is not within a preset comfort index range, a first sunroof adjustment value is obtained based on the current vehicle speed and the current wind noise; and a sunroof adjustment module, used to control the sunroof for sunroof adjustment based on the first sunroof adjustment value.
[0020] An embodiment of the present application also provides an electronic device, which includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the sunroof adjustment method as described in any of the above embodiments.
[0021] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer is enabled to execute a sunroof adjustment method as described in any of the above embodiments.
[0022] Beneficial effects of the present application: The embodiments of the present application provide a sunroof adjustment method, device, vehicle and storage medium, the method comprising obtaining environmental information and vehicle information, the environmental information comprising the current wind speed, the vehicle information comprising the current vehicle speed and the current sunroof opening angle, inputting the current vehicle speed, the current wind speed and the current sunroof opening angle into a preset wind resistance prediction model to obtain the current wind resistance, inputting the current wind speed and the current sunroof opening angle into a preset wind noise prediction model to obtain the current wind noise, obtaining a comfort index parameter according to the current wind noise and the current wind resistance, if the comfort index parameter is not within the preset comfort index range, obtaining a first sunroof adjustment value based on the current vehicle speed and the current wind noise, controlling the sunroof to adjust the sunroof based on the first sunroof adjustment value, predicting the wind noise and wind resistance and controlling the adjustment of the sunroof based on the prediction results to prevent problems of excessive wind noise or uncomfortable airflow caused by sunroof adjustment, realizing automatic adjustment of the sunroof through environmental information and vehicle information, thereby improving passenger comfort and safety, and also reducing the operating burden of the driver.
[0023] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a schematic diagram of an implementation environment of a sunroof adjustment method shown in an exemplary embodiment of the present application;
[0025] Figure 2 is a flow chart of a sunroof adjustment method shown in an exemplary embodiment of the present application;
[0026] Figure 3 is a block diagram of a sunroof adjustment device shown in an exemplary embodiment of the present application;
[0027] Figure 4 It is a structural schematic diagram of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0028] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0029] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0030] It should be noted that in this application, "first", "second", etc. are only used to distinguish similar objects, and are not used to limit the order or precedence of similar objects. The variations of "including", "having", etc. described above indicate that the scope covered by the subject of the word is not exclusive except for the examples shown by the word.
[0031] It is understood that the various numbers, step numbers, and other reference numerals recorded in this application are distinguished for the convenience of description and are not intended to limit the scope of this application. The size of the reference numerals in this application does not mean the order of execution. The execution order of each process should be determined by its function and internal logic.
[0032] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0033] The embodiments of the present application respectively provide a sunroof adjustment method, a sunroof adjustment device, an electronic device, a computer-readable storage medium, and a computer program product, which will be described in detail below.
[0034] See also Figure 1 , Figure 1 It is a schematic diagram of an implementation environment of a sunroof adjustment method shown in an exemplary embodiment of the present application.
[0035] like Figure 1 As shown, the implementation environment may include a vehicle sensor 101, a vehicle control system 102, and a vehicle sunroof 103. In this implementation environment, the vehicle sensor 101 includes a vehicle speed sensor, a wind speed sensor, an outside temperature sensor, an inside temperature sensor, a rain and humidity sensor, a sunroof angle monitoring sensor, and other sensors for obtaining environmental information and vehicle information inside and outside the vehicle. The vehicle control system 102 is used to carry a wind resistance prediction model and a wind noise prediction model, as well as to receive user control instructions and send a sunroof control instruction based on the first sunroof adjustment value, the second sunroof adjustment value, or the third sunroof adjustment value. The vehicle sunroof 103 is used to adjust the opening angle of the sunroof based on the received sunroof control instruction.
[0036] See also Figure 2 , Figure 2 is a flow chart of a sunroof adjustment method shown in an exemplary embodiment of the present application. The method can be applied to Figure 1 The implementation environment shown is as follows. The method may also be applicable to other exemplary implementation environments and be specifically executed by devices in other implementation environments. This embodiment does not limit the implementation environment to which the method is applicable.
[0037] like Figure 2 As shown, in an exemplary embodiment, the sunroof adjustment method includes at least steps S210 to S240, which are described in detail as follows:
[0038] Step S210, obtaining environmental information and vehicle information, the environmental information includes the current wind speed, and the vehicle information includes the current vehicle speed and the current sunroof opening angle.
[0039] In one embodiment of the present application, adjusting the sunroof based on environmental information and vehicle information includes: adjusting the sunroof based on rainfall detection, adjusting the sunroof based on temperature sensing, and adjusting the sunroof based on vehicle speed and wind speed. Adjusting the sunroof based on rainfall detection includes real-time monitoring of the current rainfall through a sunlight, rainfall, and humidity sensor, automatically closing the sunroof or preventing the sunroof from opening when the rainfall exceeds a preset threshold, and grading the processing according to the rainfall size, keeping the sunroof slightly open in light rainfall and completely closed in heavy rain. Adjusting the sunroof based on temperature sensing includes obtaining the real-time temperature inside the vehicle and the temperature outside the vehicle through temperature sensors inside and outside the vehicle, thereby obtaining the temperature difference between the inside and outside of the vehicle, and determining the adjustment value of the sunroof based on a preset temperature difference range. Adjusting the sunroof based on vehicle speed and wind speed includes obtaining the current vehicle speed and the current wind speed based on a vehicle speed sensor and a wind speed sensor, calculating the current wind noise and the current wind resistance based on the current vehicle speed and the current wind speed, and calculating the adjustment value of the sunroof based on the current wind noise to prevent excessive wind noise or uncomfortable airflow.
[0040] In one embodiment of the present application, the sunroof is adjusted based on rain detection, based on temperature sensing, and based on vehicle speed and wind speed according to the set priority, wherein the sunroof adjustment based on rain detection is the highest priority, the sunroof adjustment based on vehicle speed and wind speed is the middle priority, and the sunroof adjustment based on temperature sensing is the lowest priority. In this embodiment, if the sunroof responds to the highest priority sunroof adjustment based on rain detection, such as controlling the sunroof to be closed, the sunroof will no longer respond to the middle priority sunroof adjustment based on vehicle speed and wind speed and the lowest priority sunroof adjustment based on temperature sensing. If the sunroof responds to the middle priority sunroof adjustment based on vehicle speed and wind speed, it will no longer respond to the lowest priority sunroof adjustment based on temperature sensing.
[0041] In one embodiment of the present application, the vehicle first adjusts the sunroof based on rain detection, including: detecting the current rain and obtaining the current rain status based on the comparison result between the current rain and the preset rain threshold; if the current rain is heavy, the sunroof is closed and no longer responds to subsequent low-priority sunroof adjustments (i.e., sunroof adjustments based on vehicle speed and wind speed and sunroof adjustments based on temperature sensing); if the current rain is within an acceptable range, the sunroof is half opened (the second sunroof adjustment value in this embodiment is half of the maximum sunroof opening angle), and no longer responds to subsequent low-priority sunroof adjustments; if the current rain is light or there is no rain, the current sunroof opening angle is maintained and waits for subsequent low-priority sunroof adjustments.
[0042] In one embodiment of the present application, the vehicle secondly adjusts the sunroof based on the vehicle speed and wind speed, including: if the current wind speed is small or there is no rain, then after maintaining the current sunroof opening angle, a comfort index parameter is obtained based on the current wind noise and the current wind resistance; if the comfort index parameter is not within the preset comfort index range, it means that the wind noise has a large impact at this time, and the sunroof needs to be adjusted based on the first sunroof adjustment value, and no longer responds to subsequent low-priority sunroof adjustments (i.e., sunroof adjustments based on temperature sensing); if the comfort index parameter is within the preset comfort index range, it means that the wind noise has a small impact at this time, and the current sunroof opening angle is maintained, waiting for subsequent low-priority sunroof adjustments.
[0043] In one embodiment of the present application, the vehicle finally adjusts the sunroof based on temperature sensing, including: if the comfort index parameter is within a preset comfort index range, after maintaining the current sunroof opening angle, detecting the temperature inside and outside the vehicle, and obtaining a third sunroof adjustment value based on the temperature inside and outside the vehicle, and controlling the sunroof based on the third sunroof adjustment value.
[0044] In one embodiment of the present application, the priority of various sunroof adjustments for the vehicle can be customized and modified according to user needs. For example, if the user believes that wind resistance and wind noise have a greater impact, the priority of sunroof adjustment based on vehicle speed and wind speed can be set to the highest. If the user believes that the temperature difference in the vehicle has a greater impact on the sunroof adjustment, the priority of sunroof adjustment based on temperature sensing can also be set to the highest. The order in which the vehicle adjusts the sunroof changes based on the priority set by the user.
[0045] In one embodiment of the present application, after obtaining environmental information and vehicle information, it also includes: comparing the current rainfall with a preset rainfall threshold, the environmental information includes the current rainfall; if the current rainfall is less than the preset first rainfall threshold, controlling the sunroof to adjust the sunroof based on the first sunroof adjustment value; if the current rainfall is greater than or equal to the preset first rainfall threshold, and the current rainfall is less than the preset second rainfall threshold, controlling the sunroof to adjust the sunroof based on the preset second sunroof adjustment value; if the current rainfall is greater than or equal to the preset second rainfall threshold, the sunroof is closed.
[0046] In one embodiment of the present application, the first rainfall threshold is preset to be 3mm, and the second rainfall threshold is preset to be 10mm. When the current rainfall is greater than or equal to 10mm, the rainfall is large at this time, the sunroof of the vehicle is closed, and the sunroof is prevented from opening, and the sunroof adjustment based on the vehicle speed and wind speed is no longer responded, that is, the sunroof adjustment value of the first sunroof is not responded to. When the current rainfall is less than 10mm and greater than or equal to 3mm, the rainfall is within the acceptable range, and the sunroof is controlled to be adjusted based on the preset second sunroof adjustment value. In this embodiment, the preset second sunroof adjustment value can be set to half of the maximum sunroof angle of the sunroof, that is, when the current rainfall is less than 10mm and greater than or equal to 3mm, the sunroof is controlled to open half of the window, and the sunroof adjustment based on the vehicle speed and wind speed is no longer responded, that is, the sunroof adjustment value of the first sunroof is not responded to. When the current rainfall is less than 3mm, it means that there is basically no rain or the rainfall is small at this time. At this time, the sunroof adjustment will not be performed based on rainfall detection, and the sunroof adjustment can be performed based on the vehicle speed and wind speed or based on temperature sensing.
[0047] Step S220, input the current vehicle speed, current wind speed and current sunroof opening angle into a preset wind resistance prediction model to obtain the current wind resistance, and input the current wind speed and current sunroof opening angle into a preset wind noise prediction model to obtain the current wind noise.
[0048] In one embodiment of the present application, the current vehicle speed, the current wind speed and the current sunroof opening angle are input into a preset wind resistance prediction model to obtain the current wind resistance including:
[0049] WindResistanceFactor=
[0050] 0.5×ρ×CarSpeed×WindSpeed×WindowArea×
[0051] WindowCoefficient(WindowAngle) formula (1)
[0052] In formula (1), WindResistanceFactor is the current wind resistance, ρ is the preset air density, CarSpeed is the current vehicle speed, WindSpeed is the current wind speed, WindowArea is the sunroof area, WindowCoefficient is the preset function, and WindowAngle is the current sunroof opening angle.
[0053] In one embodiment of the present application, the current wind speed is obtained from environmental information, the current vehicle speed and the current sunroof opening angle are obtained from vehicle information, the sunroof area is obtained based on the sunroof hardware parameters of the vehicle itself, and the preset air density is a preset value based on the actual air density.
[0054] In one embodiment of the present application, the preset function WindowCoefficient (WindowAngle) is a function that calculates the resistance and noise coefficients according to the sunroof opening angle, which can be specifically expressed as: WindowCoefficient (WindowAngle) = a·sin (b·WindowAngle + c), where a is a preset proportional coefficient, which represents the intensity amplification effect of the sinusoidal function relationship between wind resistance or wind noise and the sunroof opening angle. In this embodiment, a reflects the overall influence of the shape, material and surrounding environment of the sunroof on the contribution of wind resistance or wind noise. b is a preset slope coefficient, which represents the sensitivity of the sunroof angle change to wind resistance or wind noise. When the sunroof opening angle is relatively small, the b value affects the speed of change of wind resistance or wind noise. c is a preset phase shift coefficient, which represents the starting point of the relationship between the sunroof angle and wind resistance or wind noise. In some cases, even if the sunroof is completely closed, there will be a certain amount of basic wind noise or wind resistance, and the c value reflects this initial condition. WindowAngle is the current sunroof opening angle, which is obtained from the vehicle information.
[0055] In one embodiment of the present application, the current wind speed and the current sunroof opening angle are input into a preset wind noise prediction model, and the current wind noise is obtained including:
[0056] WindNoise=
[0057] α×WindSpeed×WindowArea×(WindowCoefficient(WindowAngle)) β
[0058] Formula (2)
[0059] In formula (2), WindNoise is the current wind noise, α is the preset first wind noise coefficient, WindSpeed is the current wind speed, WindowArea is the skylight area of the skylight, WindowCoefficient is a preset function, WindowAngle is the current skylight opening angle, and β is the preset second wind noise coefficient.
[0060] In one embodiment of the present application, the current sunroof opening angle is obtained from vehicle information, the sunroof area is obtained according to the sunroof hardware parameters of the vehicle itself, and the first wind noise coefficient α is preset as the basic wind noise coefficient. This coefficient is related to the aerodynamic characteristics of the vehicle. For different models, α can vary in the range of 1 to 10, and this value is usually preset to be smaller. The second wind noise coefficient β is preset as the window coefficient index. This window coefficient index reflects the sensitivity of the window opening angle to the wind noise. The value of β can be between 1 and 3, where β=1 means that the wind noise is proportional to the window coefficient, and β>1 means that the wind noise is more sensitive to the window coefficient, that is, a slight change in the window angle may lead to a significant increase in wind noise.
[0061] Step S230, assign index weights to the current wind noise and the current wind resistance respectively, and obtain comfort index parameters based on the assigned index weights and the current wind resistance and the current wind noise. If the comfort index parameters are not within the preset comfort index range, the first skylight adjustment value is obtained based on the current vehicle speed and the current wind noise.
[0062] In one embodiment of the present application, the calculation formula of the comfort index parameter is as follows:
[0063] ComfortMetric =(a' * WindResistanceFactor)+(b' * WindNoise) Formula (3)
[0064] In formula (3), ComfortMetric represents the comfort index parameter, a' is the preset wind resistance index weight, a' represents the weight of the influence of wind resistance on the comfort index, WindResistanceFactor is the current wind resistance, b' is the preset wind noise index weight, b' represents the weight of the influence of wind noise on the comfort index, and WindNoise is the current wind noise. Wherein a' and b' and the preset value range are obtained according to the user's personal preference or survey to improve the user experience.
[0065] In one embodiment of the present application, the comfort index parameter is in the range of 0-100, 0-30 is the comfort zone, 31-70 is the acceptable zone, and 71-100 is the discomfort zone. When the comfort index parameter exceeds the acceptable zone, that is, the comfort index parameter is outside the range of 0-70, the first sunroof adjustment value is obtained based on the current vehicle speed and the current wind noise to realize automatic conditional sunroof to prevent excessive wind noise or uncomfortable airflow.
[0066] In one embodiment of the present application, a smaller tolerance interval (for example, ±10% of the comfort index parameter) is set based on the preset comfort index range. Only when the comfort index exceeds the tolerance interval, the skylight is adjusted based on the first skylight adjustment value, thereby reducing unnecessary adjustments caused by slight changes in the environment.
[0067] In one embodiment of the present application, when it is detected that the comfort index parameter exceeds the preset comfort index range or exceeds the tolerance interval, the sunroof adjustment is not immediately performed based on the first sunroof adjustment value. After waiting for a preset waiting time (such as 10 seconds), the comfort index parameter is detected again to see whether it exceeds the preset comfort index range or exceeds the tolerance interval. If it is still greater than or exceeds, the sunroof adjustment is performed based on the first sunroof value, thereby preventing excessive adjustment caused by short-term fluctuations in the comfort index parameter.
[0068] In one embodiment of the present application, obtaining the first skylight adjustment value based on the current vehicle speed and the current wind noise includes: obtaining the wind noise level based on the current wind noise conversion; calculating the first skylight adjustment value by weighted summing the current vehicle speed and a preset vehicle speed adjustment weight, the wind noise level and the preset wind noise adjustment weight; calculating a scaling factor based on the maximum skylight opening angle of the skylight, the minimum skylight opening angle of the skylight, a preset vehicle speed range and a preset wind noise level range; scaling the first skylight adjustment value based on the scaling factor, and controlling the sunroof to perform skylight adjustment based on the scaled first skylight adjustment value.
[0069] In one embodiment of the present application, the calculation formula of the first daylight adjustment value is as follows:
[0070] AdjustmentValue=(w V ·V+w N ·N)·ScalingFactor Formula (4)
[0071] In formula (4), AdjustmentValue is the first daylight adjustment value, w V is the preset speed adjustment weight, V is the current speed, w N is the preset wind noise adjustment weight, N is the wind noise level, and ScalingFactor is the scaling factor.
[0072] In one embodiment of the present application, the wind noise level is calculated based on the current wind noise and includes: N = N_{norm}-N_{min} / N_{max}-N_{min}, where N is the wind noise level, N_{norm} is the current wind noise, N_{min} is the preset minimum wind noise value, and N_{max} is the preset maximum wind noise value.
[0073] In one embodiment of the present application, the range of wind noise is (N_{min}) to (N_{max}), and the range of vehicle speed is (V_{min}) to (V_{max}), where N_{min} is the preset minimum wind noise value, N_{max} is the preset maximum wind noise value, V_{min} is the preset minimum vehicle speed value, and V_{max} is the preset maximum vehicle speed value. In this embodiment, the wind noise range and vehicle speed range can be preset according to different vehicle configurations and different vehicle model designs.
[0074] In one embodiment of the present application, calculating the scaling factor based on the maximum sunroof opening angle of the sunroof, the minimum sunroof opening angle of the sunroof, the preset vehicle speed range and the preset wind noise level range includes: performing weighted sum calculation on the preset vehicle speed adjustment weight and the preset vehicle speed maximum value, the preset wind noise adjustment weight and the preset wind noise maximum value to obtain the maximum weighted sum; performing weighted sum calculation on the preset vehicle speed adjustment weight and the preset vehicle speed minimum value, the preset wind noise adjustment weight and the preset wind noise minimum value to obtain the minimum weighted sum; and obtaining the scaling factor based on the difference between the maximum sunroof opening angle and the minimum sunroof opening angle, and the ratio of the difference between the maximum weighted sum and the minimum weighted sum.
[0075] In one embodiment of the present application, the maximum weighted sum is w V ·V max +w N ·N max , the minimum weighted sum is w V ·V min +w N ·N min , where w V is the preset vehicle speed adjustment weight, V max is the preset maximum vehicle speed, w N is the preset wind noise adjustment weight, N max is the preset maximum wind noise value. The minimum weighted sum is w V ·V min +w N ·N min , where w V is the preset vehicle speed adjustment weight, V min is the preset minimum vehicle speed, w N is the preset wind noise adjustment weight, N min The preset minimum wind noise value.
[0076] In one embodiment of the present application, the calculation formula of the scaling factor is as follows:
[0077]
[0078] In formula (5), ScalingFactor is the scaling factor, T max is the maximum sunroof opening angle, T min is the minimum sunroof opening angle, w V is the preset vehicle speed adjustment weight, V max is the preset maximum vehicle speed, w N is the preset wind noise adjustment weight, N max is the preset maximum wind noise value, V min is the preset minimum speed, N min It is the preset minimum value of wind noise, where the maximum sunroof opening angle and the minimum sunroof opening angle are obtained based on the sunroof hardware parameters of different models.
[0079] In one embodiment of the present application, after obtaining the comfort index parameter, it also includes: if the comfort index parameter is within a preset comfort index range, then obtaining the temperature difference between inside and outside the car based on the temperature inside the car and the temperature outside the car, and the environmental information also includes the temperature inside the car and the temperature outside the car; if the temperature difference between inside and outside the car is within the preset temperature difference range, then obtaining a temperature difference adjustment coefficient based on the temperature difference between inside and outside the car and the preset temperature difference range; obtaining a third sunroof adjustment value based on the temperature difference adjustment coefficient and the maximum sunroof opening angle of the sunroof, and controlling the sunroof for sunroof adjustment according to the third sunroof adjustment value.
[0080] In one embodiment of the present application, the temperature inside and outside the car is obtained by temperature sensors inside and outside the car, and the temperature difference between the inside and outside of the car is calculated based on the temperature inside and outside of the car. In this embodiment, the temperature difference between the inside and outside of the car is the absolute value of the difference between the inside and outside temperature. The temperature difference between the inside and outside of the car is compared with a preset temperature difference range (which can be set to 0 to 5°C). If the temperature difference between the inside and outside of the car is outside the preset temperature difference range, the sunroof is adjusted based on user instructions. If the temperature difference between the inside and outside of the car is within the preset temperature difference range, the sunroof is controlled to be adjusted based on the third sunroof adjustment value.
[0081] In one embodiment of the present application, obtaining a third sunroof adjustment value based on the temperature difference adjustment coefficient and the maximum sunroof opening angle of the sunroof includes proportionally calculating a value between 0 and 1 as the temperature adjustment coefficient based on the position of the temperature difference between inside and outside the vehicle relative to a preset temperature difference range, and then multiplying the temperature adjustment coefficient by the maximum sunroof opening angle to determine the third sunroof adjustment value to obtain the specific angle at which the sunroof opens.
[0082] In one embodiment of the present application, when the temperature difference between inside and outside the vehicle is exactly equal to the upper limit of the preset temperature difference range, the sunroof will open to the maximum angle; as the temperature difference between inside and outside the vehicle gradually approaches the center point of the preset temperature difference range, the opening angle of the sunroof will gradually decrease; when the temperature difference between inside and outside the vehicle is 0, the opening angle of the sunroof is also 0 (completely closed).
[0083] In one embodiment of the present application, the third sunroof adjustment value is calculated as follows:
[0084] A=min(max((T_d+T_c) / (2*T_c),0),1)*A_max Formula (6)
[0085] In formula (6), A is the third sunroof adjustment value, T_d is the temperature difference between the inside and outside of the vehicle, T_c is the upper limit of the preset temperature difference range, and A_max is the maximum sunroof opening angle. In formula (6), the value of (T_d+T_c) / (2*T_c) is first calculated and limited to the range of [0,1] to obtain the temperature adjustment coefficient, and then the temperature adjustment coefficient is multiplied by A_max to obtain the third sunroof adjustment value. The third sunroof adjustment value is the angle that the sunroof should be adjusted.
[0086] Step S240: controlling the sunroof to adjust the sunroof based on the first sunroof adjustment value.
[0087] In one embodiment of the present application, the angle to which the sunroof should be adjusted is calculated according to the first adjustment value, and a linear interpolation method may be used, and the calculation is as follows:
[0088]
[0089] In formula (7), SkylightAngle is the angle to which the skylight should be adjusted, T min is the minimum sunroof opening angle, AdjustmentValue is the first adjustment value, MaxAdjustmentValue is the preset maximum adjustment value, and the preset maximum adjustment value is the maximum value that the first adjustment value may reach, which is used to ensure that the calculated sunroof angle is within the valid range, T max The maximum sunroof opening angle.
[0090] In one embodiment of the present application, the angle of the skylight is adjusted to SkylightAngle, thereby achieving skylight adjustment by controlling the skylight based on the first adjustment value.
[0091] In one embodiment of the present application, if T max is 90°, T min is 0°, w V 0.01 (for every 1km / h increase in vehicle speed, the first skylight adjustment value increases by 0.01), w Nis 0.1 (the first skylight adjustment value increases by 0.1 for every unit increase in wind noise level), ScalingFacto is 10, and the current vehicle speed is 80 km / h, the calculated wind noise level is 5, then the first skylight adjustment value is calculated as: AdjustmentValue = (0.01·80+0.1·5)·10 = (0.8+0.5)·10 = 1.3·10 = 13; then the sunroof angle adjusted based on the first skylight adjustment value is: SkylightAngle = 0+13 / MaxAdjustmentValue·(90-0), wherein MaxAdjustmentValue needs to be determined according to specific parameters and vehicle conditions. Assuming that MaxAdjustmentValue is 100 (this is just an example value, the actual value needs to be determined through experiments), the sunroof angle adjusted based on the first sunroof adjustment value is: SkylightAngle=0+13 / 100·(90-0)=11.7, that is, when the vehicle speed is 80km / h and the wind noise level is 5, the sunroof should be adjusted to an angle of approximately 11.7 degrees.
[0092] See also Figure 3 , Figure 3 is a block diagram of a sunroof adjustment device shown in an exemplary embodiment of the present application. The device can be applied to Figure 1 The implementation environment shown is as follows. The device may also be applicable to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applicable.
[0093] like Figure 3 As shown, the exemplary sunroof adjustment device includes: an information input module 301 , a model prediction module 302 , an adjustment value calculation module 303 and a sunroof adjustment module 304 .
[0094] The information input module 301 is used to obtain environmental information and vehicle information, the environmental information includes the current wind speed, and the vehicle information includes the current vehicle speed and the current sunroof opening angle;
[0095] A model prediction module is used to input the current vehicle speed, the current wind speed and the current sunroof opening angle into a preset wind resistance prediction model to obtain the current wind resistance, and input the current wind speed and the current sunroof opening angle into a preset wind noise prediction model to obtain the current wind noise;
[0096] An adjustment value calculation module, used to assign index weights to the current wind noise and the current wind resistance respectively, and obtain a comfort index parameter according to the assigned index weights and the current wind resistance and the current wind noise; if the comfort index parameter exceeds a preset comfort index range, a first skylight adjustment value is obtained based on the current vehicle speed and the current wind noise;
[0097] The sunroof adjustment module is used to control the sunroof to adjust the sunroof based on the first sunroof adjustment value.
[0098] Figure 4 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 4 The computer system 400 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0099] like Figure 4 As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403, such as executing the method described in the above embodiment. In the RAM 403, various programs and data required for system operation are also stored. The CPU 401, ROM 402 and RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0100] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.
[0101] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 409, and / or installed from a removable medium 411. When the computer program is executed by a central processing unit (CPU) 401, various functions defined in the system of the present application are executed.
[0102] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0103] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0104] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0105] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the sunroof adjustment method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0106] Another aspect of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the sunroof adjustment method provided in each of the above embodiments.
[0107] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A method for adjusting a skylight, It is characterized in that The skylight adjustment method comprises: Acquiring environmental information and vehicle information, wherein the environmental information includes the current wind speed, and the vehicle information includes the current vehicle speed and the current sunroof opening angle; Inputting the current vehicle speed, the current wind speed and the current sunroof opening angle into a preset wind resistance prediction model to obtain current wind resistance, and inputting the current wind speed and the current sunroof opening angle into a preset wind noise prediction model to obtain current wind noise; Assigning index weights to the current wind noise and the current wind resistance respectively, and obtaining a comfort index parameter according to the assigned index weights, the current wind resistance and the current wind noise, and if the comfort index parameter is not within a preset comfort index range, obtaining a first skylight adjustment value based on the current vehicle speed and the current wind noise; The sunroof is controlled to perform sunroof adjustment based on the first sunroof adjustment value.
2. The sunroof adjustment method according to claim 1, It is characterized in that After obtaining environmental information and vehicle information, it also includes: Comparing the current rainfall with a preset rainfall threshold, the environmental information including the current rainfall; If the current rainfall is less than a preset first rainfall threshold, controlling the sunroof to perform sunroof adjustment based on the first sunroof adjustment value; If the current rainfall is greater than or equal to a preset first rainfall threshold, and the current rainfall is less than a preset second rainfall threshold, controlling the sunroof to perform sunroof adjustment based on a preset second sunroof adjustment value; If the current rainfall is greater than or equal to the preset second rainfall threshold, the skylight is closed.
3. The sunroof adjustment method according to any one of claims 1 or 2, It is characterized in that After obtaining the comfort index parameters, it also includes: If the comfort index parameter is within the preset comfort index range, the temperature difference between inside and outside the vehicle is obtained based on the temperature inside the vehicle and the temperature outside the vehicle, and the environmental information also includes the temperature inside the vehicle and the temperature outside the vehicle; If the temperature difference between the inside and outside of the vehicle is within a preset temperature difference range, a temperature difference adjustment coefficient is obtained based on the temperature difference between the inside and outside of the vehicle and the preset temperature difference range; A third skylight adjustment value is obtained based on the temperature difference adjustment coefficient and the maximum skylight opening angle of the skylight, and the skylight is controlled to perform skylight adjustment according to the third skylight adjustment value.
4. The sunroof adjustment method according to any one of claims 1 or 2, It is characterized in that Inputting the current vehicle speed, the current wind speed and the current sunroof opening angle into a preset wind resistance prediction model to obtain the current wind resistance includes: WindResistanceFactor =0.5×ρ×CarSpeed×WindSpeed×WindowArea ×WindowCoefficient(WindowAngle) Among them, WindResistanceFactor is the current wind resistance, ρ is the preset air density, CarSpeed is the current vehicle speed, WindSpeed is the current wind speed, WindowArea is the skylight area of the skylight, WindowCoefficient is a preset function, and WindowAngle is the current skylight opening angle.
5. The sunroof adjustment method according to any one of claims 1 or 2, It is characterized in that The current wind speed and the current sunroof opening angle are input into a preset wind noise prediction model to obtain the current wind noise including: WindNoise=α×WindSpeed×WindowArea×(WindowCoefficient(WindowAngle)) β Among them, WindNoise is the current wind noise, α is the preset first wind noise coefficient, WindSpeed is the current wind speed, WindowArea is the skylight area of the skylight, WindowCoefficient is a preset function, WindowAngle is the current skylight opening angle, and β is the preset second wind noise coefficient.
6. The sunroof adjustment method according to any one of claims 1 or 2, It is characterized in that Obtaining the first skylight adjustment value based on the current vehicle speed and the current wind noise includes: Calculating a wind noise level based on the current wind noise; Calculate the first sunroof adjustment value by weighted summing the current vehicle speed and the preset vehicle speed adjustment weight, the wind noise level and the preset wind noise adjustment weight; calculating a scaling factor according to a maximum sunroof opening angle of the sunroof, a minimum sunroof opening angle of the sunroof, a preset vehicle speed range, and a preset wind noise level range; After scaling the first sunroof adjustment value based on the scaling factor, the sunroof is controlled to perform sunroof adjustment based on the scaled first sunroof adjustment value.
7. The sunroof adjustment method according to claim 6, It is characterized in that Calculating the scaling factor according to the maximum sunroof opening angle of the sunroof, the minimum sunroof opening angle of the sunroof, a preset vehicle speed range, and a preset wind noise level range includes: The preset vehicle speed adjustment weight and the preset vehicle speed maximum value, the preset wind noise adjustment weight and the preset wind noise maximum value are weighted and calculated to obtain a maximum weighted sum; The preset vehicle speed adjustment weight and the preset vehicle speed minimum value, the preset wind noise adjustment weight and the preset wind noise minimum value are weighted and calculated to obtain a minimum weighted sum; The scaling factor is obtained based on a ratio of a difference between the maximum sunroof opening angle and the minimum sunroof opening angle, and a difference between the maximum weighted sum and the minimum weighted sum.
8. A sunroof adjustment device, It is characterized in that The sunroof adjusting device comprises: An information input module, used to obtain environmental information and vehicle information, wherein the environmental information includes the current wind speed, and the vehicle information includes the current vehicle speed and the current sunroof opening angle; a model prediction module, configured to input the current vehicle speed, the current wind speed and the current sunroof opening angle into a preset wind resistance prediction model to obtain current wind resistance, and input the current wind speed and the current sunroof opening angle into a preset wind noise prediction model to obtain current wind noise; an adjustment value calculation module, for assigning index weights to the current wind noise and the current wind resistance, respectively, and obtaining a comfort index parameter according to the assigned index weights, the current wind resistance, and the current wind noise, and if the comfort index parameter is not within a preset comfort index range, obtaining a first skylight adjustment value based on the current vehicle speed and the current wind noise; The sunroof adjustment module is configured to control the sunroof to perform sunroof adjustment based on the first sunroof adjustment value.
9. A vehicle, It is characterized in that The vehicle is applied to the sunroof adjustment method according to any one of claims 1 to 7, and the vehicle comprises a sunroof adjustment device; The sunroof adjustment device includes an information input module, a model prediction module, an adjustment value calculation module and a sunroof adjustment module; The information input module is used to obtain environmental information and vehicle information, wherein the environmental information includes the current wind speed, and the vehicle information includes the current vehicle speed and the current sunroof opening angle; The model prediction module is used to input the current vehicle speed, the current wind speed and the current sunroof opening angle into a preset wind resistance prediction model to obtain current wind resistance, and input the current wind speed and the current sunroof opening angle into a preset wind noise prediction model to obtain current wind noise; The adjustment value calculation module is used to assign index weights to the current wind noise and the current wind resistance respectively, and obtain a comfort index parameter according to the assigned index weights and the current wind resistance and the current wind noise, and if the comfort index parameter is not within a preset comfort index range, obtain a first skylight adjustment value based on the current vehicle speed and the current wind noise; The sunroof adjustment module is used to control the sunroof to adjust the sunroof based on the first sunroof adjustment value.
10. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the sunroof adjustment method according to any one of claims 1 to 7.
Citation Information
Cited By
Intelligent temperature monitoring and processing system of openable daylighting skylight
CN119719805A
Automobile skylight sealing strip self-adaptive adjusting method and device based on intelligent materials
CN120972591A
