Vehicle window control method, vehicle and storage medium
The vehicle window control method automatically adjusts windows based on wind speed, direction, and air pollution to enhance ventilation efficiency and comfort, addressing the inefficiencies and safety issues of manual adjustments.
Patent Information
- Application Number
- CN202411221000.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-13
AI Technical Summary
Existing vehicle ventilation systems rely on manual adjustment of windows, which can lead to low ventilation efficiency, passenger discomfort, and safety risks due to frequent adjustments and the impact of external environmental factors like wind speed and direction.
A vehicle window control method that automatically adjusts window openings based on wind speed and direction, indoor and outdoor temperature differences, and air pollution levels, using a vehicle body controller and ultrasonic transceivers to determine optimal window positions and openings.
Enables rapid and efficient ventilation without user intervention, enhancing passenger comfort and safety by optimizing window adjustments according to environmental conditions and air quality.
Smart Images

Figure CN119122391A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile technology, and in particular to a vehicle window control method, a vehicle and a storage medium. Background Art
[0002] At present, the active ventilation function inside the vehicle is mainly achieved by the internal and external circulation function of the air conditioner, and the ventilation efficiency is slow. Users usually need to open the windows to achieve faster ventilation in the car.
[0003] However, due to external environmental factors (such as wind speed or relative wind speed generated during driving), after the user opens the window for ventilation, if the window is opened too wide, it may cause discomfort to the passengers, and if the window is opened too narrowly, it may affect the ventilation efficiency. Therefore, rapid ventilation usually requires the user to adjust the window back and forth many times. This method not only affects the driver's attention while driving, leading to driving safety risks, but frequent window adjustments may still fail to achieve a good ventilation effect, affecting the comfort of the passengers, and the ventilation efficiency cannot be guaranteed. Summary of the invention
[0004] In view of the above-mentioned defects or deficiencies in the prior art, the present application aims to provide a vehicle window control method, device and storage medium to solve the problems of low ventilation efficiency, impact on passenger comfort and safety risks caused by manual adjustment of vehicle windows in the prior art.
[0005] The embodiment of the present application provides a vehicle window control method, which is executed by a vehicle body controller, and the method includes:
[0006] Receiving wind speed and direction information sent by a wind speed and direction controller of a vehicle, wherein the wind speed and direction information includes an external wind speed and an external wind direction of the vehicle;
[0007] In response to detecting a vehicle ventilation instruction, obtaining a temperature difference between inside and outside of the vehicle and air pollution information inside the vehicle;
[0008] Based on the wind speed and direction information, the temperature difference between inside and outside the vehicle, and the air pollution information inside the vehicle, the target windows of the vehicle and the target openings corresponding to the target windows are determined, and each of the target windows is controlled to open to the corresponding target openings.
[0009] Optionally, determining a target window of the vehicle and a target opening corresponding to the target window based on the wind speed and direction information, the temperature difference between the inside and outside of the vehicle, and the air pollution information inside the vehicle includes:
[0010] Determining a target opening corresponding to a target window based on the temperature difference between inside and outside the vehicle;
[0011] Determining the number of open windows of the vehicle and a window opening mode corresponding to the number of open windows based on the wind speed outside the vehicle and the air pollution information inside the vehicle;
[0012] A target window of the vehicle is determined based on the wind direction outside the vehicle, the number of open windows, and the window opening mode.
[0013] Optionally, determining the number of open windows of the vehicle and a window opening mode corresponding to the number of open windows based on the wind speed outside the vehicle and the air pollution information inside the vehicle includes:
[0014] Determining a corresponding wind speed level based on the wind speed outside the vehicle;
[0015] In a pre-built window opening mode mapping table, query the number of windows and the window opening mode corresponding to the wind speed level and the in-vehicle air pollution information;
[0016] The window opening mode mapping table is used to describe the corresponding relationship between each preset wind speed level, each preset in-vehicle air pollution information, each preset window opening number and each preset window opening mode.
[0017] Optionally, determining the target window of the vehicle based on the wind direction outside the vehicle, the number of open windows, and the window opening mode includes:
[0018] In a pre-constructed window opening position mapping table, querying the window opening position corresponding to the wind direction outside the vehicle, the number of windows opened, and the window opening mode, and taking the window corresponding to the window opening position as the target window of the vehicle;
[0019] The window position mapping table is used to describe the corresponding relationship between each preset vehicle exterior wind direction, each preset window opening quantity and each preset window opening position.
[0020] Optionally, the method further includes:
[0021] In response to detecting that a user triggers a preset ventilation switch, determining air pollution information in the vehicle, wherein the air pollution information in the vehicle includes a pollution level of each gas in the vehicle;
[0022] It is determined whether the pollution level of each gas in the in-vehicle air pollution information is less than the corresponding first preset level. If not, a vehicle ventilation instruction is generated.
[0023] Optionally, after controlling each of the target windows to open to a corresponding target opening, the method further includes:
[0024] re-determining the in-vehicle air pollution information of the vehicle;
[0025] In response to detecting that the pollution level of each gas in the in-vehicle air pollution information is lower than the corresponding second preset level, controlling each of the target vehicle windows to close;
[0026] The second preset level is lower than the first preset level.
[0027] The embodiment of the present application also provides a vehicle window control method, which is executed by a wind speed and wind direction controller, and the method includes:
[0028] Obtaining ultrasonic propagation times of two pairs of ultrasonic transceivers preset on the vehicle, wherein each pair of ultrasonic transceivers is composed of two ultrasonic transceivers with probes facing each other, a propagation direction of each pair of ultrasonic transceivers is perpendicular to a horizontal plane of the vehicle, and the propagation directions of the two pairs of ultrasonic transceivers are perpendicular to each other;
[0029] Based on the propagation time of each ultrasonic wave and the spacing distance between each pair of ultrasonic transceivers, determining the wind speed and direction information of the vehicle, wherein the wind speed and direction information includes the wind speed and wind direction outside the vehicle;
[0030] The wind speed and direction information is sent to a body controller of the vehicle.
[0031] Optionally, determining the wind speed and direction information of the vehicle based on the propagation time of each ultrasonic wave and the spacing distance between each pair of ultrasonic transceivers includes:
[0032] Based on each of the ultrasonic wave propagation times and the spacing between each pair of ultrasonic transceivers, determining the wind speed in the propagation direction formed by each pair of ultrasonic transceivers;
[0033] Determining the wind speed outside the vehicle based on the wind speed in the propagation direction formed by each pair of ultrasonic transceivers;
[0034] The wind direction outside the vehicle is determined based on the wind speed outside the vehicle and the wind speed in the propagation direction formed by each pair of ultrasonic transceivers.
[0035] The embodiment of the present application further provides a vehicle, the vehicle comprising a vehicle body controller and a wind speed and direction controller, wherein;
[0036] The wind speed and direction controller is used to obtain the ultrasonic propagation time of two pairs of ultrasonic transceivers preset on the vehicle, determine the wind speed and direction information of the vehicle based on each of the ultrasonic propagation time and the interval distance between each pair of ultrasonic transceivers, and send the wind speed and direction information to the body controller of the vehicle, wherein each pair of ultrasonic transceivers is composed of two ultrasonic transceivers with probes facing each other, the propagation direction of each pair of ultrasonic transceivers is perpendicular to the horizontal plane of the vehicle, and the propagation directions of the two pairs of ultrasonic transceivers are perpendicular to each other, and the wind speed and direction information includes the wind speed and wind direction outside the vehicle;
[0037] The body controller is used to receive wind speed and direction information sent by the vehicle's wind speed and direction controller, and in response to detecting a vehicle ventilation command, obtain the temperature difference between the inside and outside of the vehicle and the air pollution information inside the vehicle, determine the target window of the vehicle and the target opening corresponding to the target window based on the wind speed and direction information, the temperature difference between the inside and outside of the vehicle and the air pollution information inside the vehicle, and control each of the target windows to open to the corresponding target opening.
[0038] The present application also provides an electronic device, the electronic device comprising:
[0039] Processor and memory;
[0040] The processor is used to execute the steps of the vehicle window control method provided in any embodiment of the present application by calling the program or instruction stored in the memory.
[0041] An embodiment of the present application also provides a computer-readable storage medium, which stores a program or instruction, and the program or instruction enables a computer to execute the steps of the vehicle window control method provided by any embodiment of the present application.
[0042] In summary, the present application proposes a window control method, which receives wind speed and direction information sent by a wind speed and direction controller of a vehicle, and in response to detecting a vehicle ventilation command, obtains the vehicle's indoor and outdoor temperature difference and the vehicle's indoor air pollution information, and then determines the vehicle's target window and the target opening corresponding to the target window according to the wind speed and direction information, the indoor and outdoor temperature difference and the indoor air pollution information, and finally controls each target window to open to the corresponding target opening, thereby realizing automatic adjustment of the window opening. The method takes into account the influence of wind speed and direction on vehicle ventilation, and the influence of the indoor and outdoor temperature difference on the indoor temperature during ventilation, as well as the different ventilation efficiencies required under different degrees of indoor air pollution. The target window and the corresponding target opening are determined by combining the wind speed and direction information, the indoor and outdoor temperature difference and the indoor air pollution information, thereby realizing rapid replacement and comfortable updating of the indoor air without manual adjustment by the user, thereby solving the problems of low ventilation efficiency caused by manual adjustment, affecting the riding comfort of passengers and safety risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 A flow chart of a vehicle window control method provided in an embodiment of the present application;
[0045] Figure 2 A vehicle window control flow chart provided in an embodiment of the present application;
[0046] Figure 3 A flowchart of another vehicle window control method provided in an embodiment of the present application;
[0047] Figure 4 A propagation diagram of a pair of ultrasonic transceiver sensors provided in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of the placement of an ultrasonic transceiver sensor provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of wind speed and direction measurement provided in an embodiment of the present application;
[0050] Figure 7 A schematic diagram of the structure of a wind speed and direction controller provided in an embodiment of the present application;
[0051] Figure 8It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0053] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0054] As mentioned in the background technology, in order to solve the problems in the prior art, the present application proposes a vehicle window control method, which can be executed by a vehicle body controller. Figure 1 This is a flow chart of a vehicle window control method provided by an embodiment of the present application. Figure 1 , the vehicle window control method specifically includes:
[0055] S110. Receive wind speed and direction information sent by a wind speed and direction controller of the vehicle, wherein the wind speed and direction information includes the wind speed and wind direction outside the vehicle.
[0056] The wind speed and direction controller can be used to detect the wind speed and direction of the wind outside the vehicle during the vehicle's driving process. Specifically, the wind outside the vehicle can refer to the wind generated by the vehicle's movement on the vehicle surface during the vehicle's driving process, or the ambient wind when the vehicle is stationary; the wind speed and direction information can be composed of wind speed and wind direction.
[0057] For example, the wind speed and direction controller can send the vehicle's location information to the cloud, obtain the wind speed and direction of the ambient wind corresponding to the location information fed back by the cloud, and then determine the wind speed and direction outside the vehicle by combining the wind speed and direction of the ambient wind, the vehicle's driving direction and speed. Alternatively, the wind speed and direction controller can measure the wind speed and direction generated on the vehicle body surface using an ultrasonic transceiver.
[0058] In an embodiment of the present application, the wind speed and direction controller can send the real-time detected wind speed and direction information to the vehicle network according to a preset period, so that the body controller can obtain the wind speed and direction information from the vehicle network.
[0059] S120 , in response to detecting a vehicle ventilation instruction, obtaining a temperature difference between the inside and outside of the vehicle and information on air pollution inside the vehicle.
[0060] The vehicle ventilation instruction may be an instruction for instructing the vehicle to perform rapid ventilation. The vehicle ventilation instruction may be triggered based on user operation, or based on the air quality in the vehicle, or based on both the user operation and the air quality in the vehicle.
[0061] In one example, the method provided in the embodiment of the present application further includes:
[0062] In response to detecting that a user has triggered a preset ventilation switch, the vehicle's in-vehicle air pollution information is determined, wherein the in-vehicle air pollution information includes the pollution level of each gas in the vehicle; it is determined whether the pollution level of each gas in the in-vehicle air pollution information is less than the corresponding first preset level, and if not, a vehicle ventilation command is generated.
[0063] The preset ventilation switch may be a preset switch for triggering rapid ventilation. For example, the preset ventilation switch may be set in the human-machine interface of the vehicle in the form of a software icon, or the preset ventilation switch may be set in the function display module of the vehicle in the form of a hardware button.
[0064] Specifically, if it is detected that the user triggers the preset ventilation switch, that is, the user turns on the preset ventilation switch, the pollution level of each gas in the car can be determined at this time to obtain the air pollution information in the car.
[0065] Furthermore, for each type of gas, the pollution level of the gas may be compared with its corresponding first preset level, wherein the first preset level may be a pre-calibrated critical pollution level requiring ventilation.
[0066] Specifically, if the pollution level of any gas is greater than or equal to the corresponding first preset level, it means that the air quality in the vehicle is low and ventilation is required. The user has triggered the preset ventilation switch at this time. Therefore, a vehicle ventilation instruction can be generated to facilitate rapid ventilation of the vehicle by opening the windows.
[0067] In the above example, when the user triggers the preset ventilation switch and detects that the pollution level of at least one gas in the vehicle is not less than the corresponding first preset level, a vehicle ventilation command is generated. When the user has a need for rapid ventilation and the air quality in the vehicle is low, rapid ventilation can be performed to ensure the user's riding comfort.
[0068] In an embodiment of the present application, in response to detecting a vehicle ventilation command, the body controller can obtain the temperature difference between inside and outside the vehicle and the air pollution information inside the vehicle. The temperature difference between inside and outside the vehicle can be the difference between the temperature inside the vehicle and the temperature outside the vehicle.
[0069] Among them, the temperature inside the car can be collected by the inside temperature sensor and sent to the body controller, the temperature outside the car can be collected by the outside temperature sensor and sent to the body controller, and the air pollution information inside the car can be measured by the air quality sensor in real time to measure the density of different gases in the car and obtain the pollution level of various gases, construct the air pollution information inside the car and send it to the body controller.
[0070] S130, based on wind speed and direction information, temperature difference between inside and outside the vehicle, and air pollution information inside the vehicle, determine target windows of the vehicle and target openings corresponding to the target windows, and control each target window to open to the corresponding target opening.
[0071] Specifically, after obtaining the temperature difference between the inside and outside of the vehicle and the air pollution information inside the vehicle, the vehicle body controller can determine the target window to be opened and the target opening degree to be maintained for the target window in combination with the wind speed and direction information, the temperature difference between the inside and outside of the vehicle and the air pollution information inside the vehicle. It should be noted that the number of target windows can be one or more, and the target opening degree corresponding to each target window can be the same or different.
[0072] Exemplarily, sample data can be constructed in advance and a window opening prediction model can be trained using the sample data. The window opening prediction model can output a predicted target window and a target opening corresponding to the target window based on input wind speed and direction information, temperature difference between inside and outside the vehicle, and air pollution information inside the vehicle.
[0073] For another example, taking into account that the greater the wind speed, the higher the ventilation efficiency, and that opening the windows facing the wind direction can increase the ventilation efficiency, and that the lower the air quality inside the car, the more windows need to be opened, the goal can be to prioritize increasing the vehicle's air intake and then increasing the air outlet, and determine the target windows based on the wind speed and direction information as well as the air pollution information inside the car; further, taking into account that the greater the temperature difference between inside and outside the car, the greater the change in the temperature inside the car caused by ventilation, and the goal is to minimize changing the temperature inside the car, and determine the target opening of each target window based on the temperature difference between inside and outside the car.
[0074] In a specific implementation, based on wind speed and direction information, the temperature difference between inside and outside the vehicle, and air pollution information inside the vehicle, determining a target window of the vehicle and a target opening corresponding to the target window includes the following steps:
[0075] Step 1: determining a target opening corresponding to a target window based on a temperature difference between inside and outside the vehicle;
[0076] Step 2: based on the wind speed outside the vehicle and the air pollution information inside the vehicle, determine the number of windows to be opened and the window opening mode corresponding to the number of windows to be opened;
[0077] Step 3: Determine the target window of the vehicle based on the wind direction outside the vehicle, the number of open windows, and the window opening mode.
[0078] Among them, in step 1, the target opening can be first determined by the temperature difference between the inside and outside of the vehicle. For example, the greater the temperature difference between the inside and outside of the vehicle, the smaller the target opening, so as to avoid the situation where the temperature difference between the inside and outside of the vehicle is too large, the window opening is too large, causing the vehicle ventilation to cause a sudden change in the temperature inside the vehicle, affecting the riding comfort of the passengers.
[0079] Exemplarily, an expression describing the linear relationship between the temperature difference and the opening degree can be fitted in advance according to a sample set, the temperature difference between inside and outside the vehicle can be input into the linear expression, and the target opening degree can be calculated; alternatively, the corresponding opening degrees can be calibrated in advance for different inside and outside temperature differences, such as, when the temperature difference between inside and outside the vehicle is greater than 5°C, the target opening degree is the first opening degree, and when the temperature difference between inside and outside the vehicle is less than 5°C, the target opening degree is the second opening degree, and the first opening degree is less than the second opening degree.
[0080] Furthermore, in step 2, the number of open windows of the vehicle and the window opening mode corresponding to the number of open windows can be determined according to the wind speed outside the vehicle and the air pollution information inside the vehicle.
[0081] Among them, the window opening mode may refer to the window opening position that satisfies the number of windows to be opened, such as when the number of windows to be opened is 2, the corresponding window opening mode may be opening on the same side, opening in the same row, opening diagonally, etc. It should be noted that the purpose of determining the number of windows to be opened and the corresponding window opening mode is to take into account the difference in ventilation efficiency under different window opening modes, such as the ventilation efficiency of opening in the same row is higher than that of opening on the same side, and the ventilation efficiency of opening diagonally is higher than that of opening in the same row. Therefore, in the embodiment of the present application, by determining the number of windows to be opened and the window opening mode together, the accuracy of window adjustment can be improved, and the ventilation efficiency of the vehicle can be further improved.
[0082] Exemplarily, the number of windows to be opened can be determined based on the air pollution information inside the vehicle. For example, the higher the maximum pollution level in the air pollution information inside the vehicle, the more windows to be opened. The window opening mode can then be determined based on the wind speed outside the vehicle. For example, the lower the wind speed outside the vehicle, the more ventilation efficiency should be selected.
[0083] With respect to the above step 2, optionally, based on the wind speed outside the vehicle and the air pollution information inside the vehicle, determining the number of windows to be opened and the window opening mode corresponding to the number of windows to be opened includes:
[0084] The corresponding wind speed level is determined based on the wind speed outside the vehicle; the number of windows and the window opening mode corresponding to the wind speed level and the air pollution information inside the vehicle are queried in a pre-constructed window opening mode mapping table.
[0085] Among them, the window opening mode mapping table is used to describe the corresponding relationship between each preset wind speed level, each preset in-vehicle air pollution information, each preset window opening number and each preset window opening mode.
[0086] Specifically, the corresponding wind speed level can be determined according to the wind speed outside the vehicle. The higher the wind speed outside the vehicle, the greater the wind speed level. Furthermore, the maximum pollution level can be determined from the air pollution information inside the vehicle. The pollution level can be very low, relatively low, low, high, relatively high or very high. Then, in the pre-built window opening mode mapping table, the number of windows and the window opening mode corresponding to the wind speed level and the maximum pollution level in the air pollution information inside the vehicle are queried.
[0087] Exemplarily, the wind speed outside the vehicle is divided into levels 0 to 12, and Tables 1 and 2 show pre-built window opening mode mapping tables, wherein Table 1 shows the correspondence between each preset wind speed level between levels 0 to 5, each preset in-vehicle air pollution information, each preset number of windows opening, and each window opening mode, and Table 2 shows the correspondence between each preset wind speed level between levels 6 to 12, each preset in-vehicle air pollution information, each preset number of windows opening, and each window opening mode.
[0088] In Table 1 and Table 2, the first row represents each preset wind speed level, the first column represents each preset number of windows and preset window opening mode, and the brackets represent each preset in-vehicle air pollution information (i.e., each pollution level). Among them, the ventilation efficiency of each preset number of windows and preset window opening mode is ranked as follows: 4 fully open > 3 open > 2 diagonally open > 2 open in the same row > 2 open on the same side > 1 open.
[0089] It can be seen from Tables 1 and 2 that when the number of open windows, the window opening mode and the air pollution information in the car are certain, the greater the wind speed outside the car, the higher the ventilation efficiency. Therefore, when the wind speed outside the car is high, the number of open windows and the window opening mode with lower ventilation efficiency can also be used to complete the air renewal in the car.
[0090] Table 1 Pre-built windowing mode mapping table
[0091]
[0092] Table 2 Pre-built windowing mode mapping table
[0093]
[0094]
[0095] It should be noted that when the wind speed outside the vehicle reaches level 9 to 12, opening the windows may cause difficulty in driving the vehicle and bring certain dangers to the vehicle's driving. Therefore, the number of windows opened at levels 9 to 12 can be defined as 0, that is, the vehicle closes all windows and ventilation is completely completed by the internal and external circulation channels.
[0096] In the above optional implementation, the number and mode of opening windows are determined by the wind speed level and the air pollution information in the vehicle, which can take into account the impact of wind speed on ventilation efficiency and the different ventilation efficiencies required for different air pollution levels. While ensuring the ventilation effect of the vehicle, it can also ensure passenger comfort and avoid directly opening all windows to affect the user's driving.
[0097] Furthermore, in step 3, the target window of the vehicle can be determined by the wind direction outside the vehicle, the number of windows opened, and the window opening mode. For example, the windward window and the leeward window of the vehicle can be determined by the wind direction outside the vehicle, and then the windward window can be preferentially selected as the target window in combination with the number of windows opened and the window opening mode, and then the leeward window can be selected as the target window.
[0098] With respect to the above step 3, optionally, based on the wind direction outside the vehicle, the number of open windows, and the window opening mode, determining the target window of the vehicle includes:
[0099] In the pre-built window position mapping table, the window position corresponding to the wind direction outside the vehicle, the number of windows opened, and the window opening mode is queried, and the window corresponding to the window position is used as the target window of the vehicle.
[0100] The window position mapping table is used to describe the correspondence between each preset external wind direction, each preset number of windows, and each preset window position. For example, the positions of the windward window and the leeward window corresponding to each preset external wind direction can be analyzed in advance, so as to calibrate the window position mapping table in combination with each preset number of windows and each preset window position.
[0101] Specifically, the window position corresponding to the wind direction outside the vehicle, the number of windows, and the window opening mode can be queried from the pre-built window position mapping table. The wind direction outside the vehicle can be described in the form of an angle, for example, the direction from the main driver's seat to the co-driver's seat is the X-axis, and the direction from the front of the vehicle to the front of the vehicle is the Y-axis. The wind direction outside the vehicle can be specifically the angle between the wind direction and the X-axis.
[0102] Exemplarily, the wind direction outside the vehicle is divided into the following situations: 0°, 0°~45°, 45°~90°, 90°, 90°~135°, 135°~180°, 180°, 180°~225°, 225°~270°, 270°~315°, 315°~360°. For each situation, the different preset window numbers and the preset window positions under the preset window positions are analyzed to construct a window position mapping table.
[0103] As shown in Tables 3 and 4, pre-built window position mapping tables are shown. Table 3 shows the corresponding relationship between 0° and 180°, and Table 4 shows the corresponding relationship between 180° and 360°. In Tables 3 and 4, the first row represents the preset wind direction outside the vehicle, and the first column represents the preset number of windows and the preset window opening mode.
[0104] Table 3 Pre-built window position mapping table
[0105]
[0106] Table 4 Pre-built window position mapping table
[0107]
[0108]
[0109] It can be seen from Tables 3 and 4 that in selecting the window position, the window position should be determined based on the principle of giving priority to increasing the air intake and secondly increasing the air outlet.
[0110] For example, if the number of open windows is 3, when the wind direction outside the vehicle is 0°~90°, 90°~180°, 180°~270°, or 270°~360°, first select 2 windward windows and then select 1 leeward window; when the wind direction outside the vehicle is 90° or 270°, first select 2 windward windows and then select 1 windward window.
[0111] If there are 2 windows and the window opening mode is diagonal opening, when the wind direction outside the vehicle is 0° or 180° (that is, the wind direction outside the vehicle is parallel to the vehicle's travel direction), selecting the left front and right rear windows is the same as selecting the right front and left rear windows, so choose one of the two; when the wind direction is 90° or 270° (that is, the wind direction outside the vehicle is perpendicular to the vehicle's travel direction), first select 1 windward window, and then select the diagonal window of the windward window; when the wind direction is 0°~90°, 90°~180°, 180°~270°, or 270°~360°, to ensure that no eddy currents are generated in the vehicle, first select 1 windward window to open, and then select the diagonal window of the windward window.
[0112] If there are 2 windows and the window opening mode is same row opening, when the wind direction outside the vehicle is 0° or 180°, selecting the front or rear windows will have the same effect, so choose one of the two; if the wind direction outside the vehicle is at other angles, you can first select a windward window and then select the windows in the same row of the windward window.
[0113] If there are 2 windows and the window opening mode is same-side opening, when the wind direction outside the vehicle is 0° or 180°, choosing the left or right window has the same effect, so choose one of the two; if the wind direction outside the vehicle is at other angles, you can first select a windward window and then select the window on the same side of the windward window.
[0114] If the number of open windows is 1, then when the wind direction outside the vehicle is 0° or 180°, select the windward window. At this time, selecting the front or rear window has the same effect, so select one of the two. When the wind direction outside the vehicle is 90° or 270°, select the windward window. The effects of the left and right windows in the same row are the same, so select one of the two. If the wind direction outside the vehicle is at other angles, you can select the windward window.
[0115] Specifically, after obtaining the window opening position by querying the window opening position mapping table, the vehicle window corresponding to the window opening position may be used as the target vehicle window of the vehicle.
[0116] Through the above optional implementation, the target window is determined according to the wind direction outside the vehicle, the number of open windows and the window opening mode, and the influence of wind direction on ventilation efficiency can be considered, thereby greatly improving the vehicle ventilation efficiency.
[0117] Specifically, after determining the target window and the target opening, each target window can be controlled to open to the corresponding target opening, thereby achieving rapid ventilation of the vehicle by maintaining the target window with the corresponding target opening. For example, the vehicle body controller can first obtain the current opening of each target window, and if the current opening does not match the target opening, the current opening of the target window can be adjusted to the target opening.
[0118] Considering that the vehicle ventilation can be completed quickly within a certain period of time after controlling each target window to open to the corresponding target opening, in order to avoid the windows remaining open after the ventilation is completed and affecting the user's driving, the target windows can also be controlled to close after detecting that the ventilation is completed.
[0119] In one example, after controlling each target window to open to a corresponding target opening degree, the method further includes:
[0120] Re-determine the vehicle's in-vehicle air pollution information; in response to detecting that the pollution level of each gas in the in-vehicle air pollution information is less than the corresponding second preset level, control each target window to close; wherein the second preset level is lower than the first preset level.
[0121] Specifically, the vehicle body controller can reacquire the in-vehicle air pollution information detected by the air quality sensor, and determine whether the pollution level of each gas therein is less than the corresponding second preset level. The second preset level can be a pre-calibrated critical value of the pollution level for stopping ventilation, and the second preset level is lower than the first preset level.
[0122] Furthermore, if the body controller detects that the pollution level of each gas in the in-vehicle air pollution information is less than the corresponding second preset level, it means that the air quality in the vehicle is good at this time and ventilation can be stopped. Specifically, all target windows can be controlled to be closed.
[0123] Through the above example, it is possible to detect when ventilation is completed, and close the windows in time after ventilation is completed, so as to avoid the windows being continuously opened to affect the user's driving and riding comfort.
[0124] Figure 2 A window control flow chart provided in an embodiment of the present application is as follows: Figure 2 As shown, first, when the user turns on the rapid ventilation, it can be determined whether a certain gas pollution level is greater than the corresponding first preset level. If so, it is determined whether the vehicle's air conditioning system is external circulation. If not, the air conditioning system is adjusted to external circulation. If so, it is further determined whether the temperature difference between the inside and outside of the vehicle is greater than 5°C. Specifically, if the temperature difference between the inside and outside of the vehicle is less than 5°C, the target opening is determined to be D%, otherwise, the target opening is determined to be d%.
[0125] Taking the target opening as D% as an example, further, the number of windows opened and the window opening mode can be determined to determine whether the actual number of windows opened reaches the number of windows opened. If not, the target windows can be further determined, and for each target window, it is determined whether the current opening of the target window reaches D%. If the current opening of the target window reaches D%, no control action is required. If the current opening of the target window does not reach D%, the target window can be controlled to open to D%. Similarly, the execution process when the target opening is d% is similar and will not be repeated here.
[0126] Furthermore, it can be determined whether all gas pollution levels are less than the corresponding second preset level. If so, all target windows can be controlled to be closed.
[0127] The window control method provided in the embodiment of the present application receives wind speed and direction information sent by the wind speed and direction controller of the vehicle, and in response to detecting the vehicle ventilation command, obtains the temperature difference between the inside and outside of the vehicle and the air pollution information in the vehicle, and then determines the target window of the vehicle and the target opening corresponding to the target window according to the wind speed and direction information, the temperature difference between the inside and outside of the vehicle and the air pollution information in the vehicle, and finally controls each target window to open to the corresponding target opening, thereby realizing automatic adjustment of the window opening. The method takes into account the influence of wind speed and direction on vehicle ventilation, and the influence of the temperature difference between the inside and outside of the vehicle on the temperature in the vehicle during ventilation, as well as the different ventilation efficiencies required under different degrees of air pollution in the vehicle. The target window and the corresponding target opening are determined in combination with the wind speed and direction information, the temperature difference between the inside and outside of the vehicle and the air pollution information in the vehicle, thereby realizing rapid replacement and comfortable updating of the air in the vehicle without manual adjustment by the user, thereby solving the problems of low ventilation efficiency caused by manual adjustment, affecting the comfort of passengers and safety risks.
[0128] Figure 3 This is a flow chart of another vehicle window control method provided by an embodiment of the present application, which can be executed by a wind speed and direction controller. Figure 3, the vehicle window control method specifically includes:
[0129] S210. Obtain ultrasonic propagation times of two pairs of ultrasonic transceivers preset on the vehicle, wherein each pair of ultrasonic transceivers is composed of two ultrasonic transceivers with probes facing each other, a propagation direction of each pair of ultrasonic transceivers is perpendicular to a horizontal plane of the vehicle, and the propagation directions of the two pairs of ultrasonic transceivers are perpendicular to each other.
[0130] For each pair of ultrasonic transceivers, both ultrasonic transceivers may transmit ultrasonic waves at a fixed frequency, and measure propagation time according to the received ultrasonic waves.
[0131] Taking a pair of ultrasonic transceivers as an example, the detection principle of wind speed and direction is explained. Figure 4 As shown, Figure 4 A propagation diagram of a pair of ultrasonic transceiver sensors provided in an embodiment of the present application, wherein it is assumed that the distance d between the two ultrasonic transceiver sensors is constant and the downwind propagation time of the ultrasonic wave is T 12 , the upwind propagation time is T 21 , wind speed is V W , the ultrasonic wave propagation speed is V s , we can get:
[0132] d / T 12 =V s +V W , d / T 21 =V s -V W ;
[0133] Simplifying, we can get: V W =d / 2×(1 / T 12 -1 / T 21 );
[0134] Considering that the wind will not only go in one direction, in the embodiment of the present application, two pairs of ultrasonic transceivers are placed vertically to each other to ensure that the distance between the probes remains unchanged, to transmit ultrasonic waves at a fixed frequency and to measure the propagation time of the two pairs of forward and reverse propagation ultrasonic waves. Figure 5 As shown, Figure 5 A schematic diagram of the placement of an ultrasonic transceiver sensor provided in an embodiment of the present application, wherein ultrasonic transceiver sensors 1 and 2 form a pair, and 3 and 4 form a pair. Wind direction and wind speed can be measured through ultrasonic transmission between the two pairs of ultrasonic transceiver sensors.
[0135] For example, a pair of ultrasonic transceivers can be placed in the east-west direction, and a pair of ultrasonic transceivers can be placed in the north-south direction; or, a pair of ultrasonic transceivers can be placed in a direction parallel to the X-axis (i.e., the direction from the main driver's seat to the co-driver's seat), and a pair of ultrasonic transceivers can be placed in a direction parallel to the Y-axis (i.e., the front of the vehicle points to the front of the vehicle).
[0136] Specifically, for each pair of ultrasonic transceivers, the ultrasonic propagation time of the forward-propagating ultrasonic wave and the ultrasonic propagation time of the reverse-propagating ultrasonic wave between the two ultrasonic transceivers can be measured.
[0137] For example, the ultrasonic propagation time of the first pair of ultrasonic transceivers along the propagation of ultrasonic waves is T 12 , the ultrasonic propagation time of the counter-propagating ultrasonic wave is T 21 ; The ultrasonic propagation time of the second pair of ultrasonic transceivers along the propagation of ultrasonic waves is T 34 , the ultrasonic propagation time of the counter-propagating ultrasonic wave is T 43 .
[0138] S220. Determine wind speed and direction information of the vehicle based on each ultrasonic wave propagation time and the spacing distance between each pair of ultrasonic wave transceivers, wherein the wind speed and direction information includes the wind speed and wind direction outside the vehicle.
[0139] The spacing distance between each pair of ultrasonic transceivers may refer to the distance between the probes of the two ultrasonic transceivers in a pair of ultrasonic transceivers, such as Figure 4 The distance d in.
[0140] Specifically, the wind speed and wind direction outside the vehicle can be calculated based on the propagation time and interval distance of the four ultrasonic waves.
[0141] In a specific implementation, determining the wind speed and direction information of the vehicle based on each ultrasonic wave propagation time and the spacing distance between each pair of ultrasonic transceivers includes the following steps:
[0142] Step 4: based on each ultrasonic wave propagation time and the spacing distance between each pair of ultrasonic transceivers, determine the wind speed in the propagation direction formed by each pair of ultrasonic transceivers;
[0143] Step 5: determining the wind speed outside the vehicle based on the wind speed in the propagation direction formed by each pair of ultrasonic transceivers;
[0144] Step 6: Determine the wind direction outside the vehicle based on the wind speed outside the vehicle and the wind speed in the propagation direction formed by each pair of ultrasonic transceivers.
[0145] Among them, it can be assumed that the wind speed outside the vehicle is V W , the wind speed in the propagation direction formed by the first pair of ultrasonic transceivers is VWX , the wind speed in the propagation direction formed by the second pair of ultrasonic transceivers is V WY , the ultrasonic wave propagation speed is V S In step 4, V WX and V WY It can be calculated by the following formula:
[0146] V WX =d / 2×(1 / T 12 -1 / T 21 );V WY =d / 2×(1 / T 34 -1 / T 43 );
[0147] Furthermore, in step 5, the relationship between the wind speed outside the vehicle and the wind speed in the propagation direction formed by each pair of ultrasonic transceivers can be combined, such as Figure 6 As shown, Figure 6 A wind speed and direction measurement schematic diagram provided in an embodiment of the present application, assuming that two pairs of ultrasonic transceivers are placed in the north-south direction and the east-west direction respectively, then the following relationship is satisfied: V W 2 =V WX 2 +V WY 2 Based on this relationship, the wind speed outside the vehicle can be calculated:
[0148]
[0149] Further, in step 6, assuming that the wind direction outside the vehicle is θ, the vehicle head direction is 0°, and the angle increases in the counterclockwise direction, combining θ and V W 、V WX The relationship between Calculate the wind direction outside the vehicle:
[0150]
[0151] Simplify and find the inverse function to get the wind direction θ outside the vehicle:
[0152]
[0153] Through the above steps 4 to 5, the determination of the wind speed and wind direction outside the vehicle based on ultrasonic detection is realized. This can be achieved through two pairs of ultrasonic transceivers, which is low in cost and can also ensure the accuracy of wind speed and direction detection.
[0154] S230: Send wind speed and direction information to a body controller of the vehicle.
[0155] Specifically, after obtaining the wind speed and direction information, the wind speed and direction controller can send it to the vehicle network, so as to transmit it to the body controller through the vehicle network, so that the body controller can control the windows based on the method provided in the above embodiment.
[0156] The window control method provided in the embodiment of the present application measures the ultrasonic wave propagation time through two pairs of ultrasonic transceivers pre-installed on the vehicle, and then determines the vehicle's wind speed and direction information based on each ultrasonic wave propagation time and the spacing between each pair of ultrasonic transceivers, thereby realizing rapid detection of wind speed and wind direction. This method only requires an ultrasonic transceiver to detect wind speed and wind direction, has low cost, and can ensure the detection efficiency and accuracy of wind speed and wind direction.
[0157] In an embodiment of the present application, the wind speed and direction controller may include an ultrasonic sensor module, an ultrasonic transceiver processing chip, a power management chip, a microcontroller unit (MCU) and a network communication transceiver. Figure 7 A schematic structural diagram of a wind speed and direction controller provided in an embodiment of the present application, wherein the wind speed and direction controller is a wind speed and direction sensor (electronic control unit) ECU.
[0158] like Figure 7 As shown, the ultrasonic sensor module: can be composed of ultrasonic transmission and receiving circuits, which are used to send the pulse signal of the ultrasonic transceiver processing chip to the ultrasonic probe, and filter and amplify the received ultrasonic signal, and input it to the ultrasonic transceiver processing chip through the IO pin of the ECU. Ultrasonic transceiver processing chip: can be used to send and receive pulses, store the time difference of ultrasonic transmission and reception, and calculate the wind speed in each direction according to the propagation time, and transmit the calculation results to the MCU. Power management chip: responsible for receiving the power input of the whole vehicle, the internal voltage conversion of the controller, and supplying the MCU, ultrasonic transceiver processing chip, and network communication transceiver (usually LIN or CAN). MCU: responsible for the jump of the working state machine of the wind speed and wind direction sensor ECU, realizing the network wake-up, local work, diagnosis, application logic processing, etc. of the wind speed and wind direction sensor ECU. Network communication transceiver: The current automotive network bus is mainly LIN or CAN, and the MCU can send application logic control instructions to the network bus through the network communication transceiver.
[0159] In the embodiment of the present application, the working modes of the wind speed and direction sensor ECU can be divided into two types: vehicle network wake-up conditions and local wake-up conditions. Among them, the vehicle network wake-up condition: after the vehicle power mode is low voltage ON, high voltage ON, and OFF and before the vehicle bus goes into sleep mode, all ECUs involved in network management of the vehicle will wake up and work, and the wind speed and direction sensor ECU will send signals such as working status and monitoring results according to a fixed period. If it is greater than the threshold, it will send a command signal to close the window. Local wake-up condition: after the vehicle power mode is OFF and the vehicle bus goes into sleep mode. The wind speed and direction sensor ECU only monitors locally and does not send signals such as working status and monitoring results. Only when it detects that the wind speed is greater than the threshold will it actively wake up the network and send a command signal to close the window.
[0160] The prerequisites for the wind speed and direction sensor ECU to control the windows may include: the power input meets the normal working range, all ultrasonic transceivers are fault-free, and the ECU is fault-free.
[0161] Based on the same purpose, an embodiment of the present application further provides a vehicle, the vehicle comprising a body controller and a wind speed and direction controller, wherein;
[0162] The wind speed and direction controller is used to obtain the ultrasonic propagation time of two pairs of ultrasonic transceivers preset on the vehicle, determine the wind speed and direction information of the vehicle based on each of the ultrasonic propagation time and the interval distance between each pair of ultrasonic transceivers, and send the wind speed and direction information to the body controller of the vehicle, wherein each pair of ultrasonic transceivers is composed of two ultrasonic transceivers with probes facing each other, the propagation direction of each pair of ultrasonic transceivers is perpendicular to the horizontal plane of the vehicle, and the propagation directions of the two pairs of ultrasonic transceivers are perpendicular to each other, and the wind speed and direction information includes the wind speed and wind direction outside the vehicle;
[0163] The body controller is used to receive wind speed and direction information sent by the vehicle's wind speed and direction controller, and in response to detecting a vehicle ventilation command, obtain the temperature difference between the inside and outside of the vehicle and the air pollution information inside the vehicle, determine the target window of the vehicle and the target opening corresponding to the target window based on the wind speed and direction information, the temperature difference between the inside and outside of the vehicle and the air pollution information inside the vehicle, and control each of the target windows to open to the corresponding target opening.
[0164] Based on the above embodiments, optionally, the body controller is also used to determine the target opening corresponding to the target window based on the temperature difference between the inside and outside of the vehicle; determine the number of open windows of the vehicle and the window opening mode corresponding to the number of open windows based on the wind speed outside the vehicle and the air pollution information inside the vehicle; determine the target window of the vehicle based on the wind direction outside the vehicle, the number of open windows and the window opening mode.
[0165] On the basis of the above-mentioned implementation modes, optionally, the body controller is also used to determine the corresponding wind speed level based on the wind speed outside the vehicle; in a pre-constructed window opening mode mapping table, query the number of windows and the window opening mode corresponding to the wind speed level and the air pollution information inside the vehicle; wherein the window opening mode mapping table is used to describe the correspondence between each preset wind speed level, each preset air pollution information inside the vehicle, each preset number of windows and each preset window opening mode.
[0166] On the basis of the above-mentioned implementation modes, optionally, the body controller is also used to query the window position corresponding to the wind direction outside the vehicle, the number of windows opened, and the window opening mode in a pre-constructed window position mapping table, and use the window corresponding to the window position as the target window of the vehicle; wherein the window position mapping table is used to describe the correspondence between each preset wind direction outside the vehicle, each preset number of windows opened, and each preset window position.
[0167] Based on the above embodiments, optionally, the body controller is also used to determine the vehicle's in-car air pollution information in response to detecting that the user triggers a preset ventilation switch, wherein the in-car air pollution information includes the pollution level of each gas in the vehicle; and determine whether the pollution level of each gas in the in-car air pollution information is less than the corresponding first preset level, and if not, generate a vehicle ventilation command.
[0168] Based on the above embodiments, optionally, the body controller is also used to re-determine the in-car air pollution information of the vehicle; in response to detecting that the pollution level of each gas in the in-car air pollution information is less than the corresponding second preset level, controlling each of the target windows to close; wherein the second preset level is lower than the first preset level.
[0169] On the basis of the above-mentioned embodiments, optionally, the wind speed and wind direction controller is also used to determine the wind speed in the propagation direction formed by each pair of ultrasonic transceivers based on the ultrasonic propagation time and the spacing distance between each pair of ultrasonic transceivers; determine the wind speed outside the vehicle based on the wind speed in the propagation direction formed by each pair of ultrasonic transceivers; and determine the wind direction outside the vehicle based on the wind speed outside the vehicle and the wind speed in the propagation direction formed by each pair of ultrasonic transceivers.
[0170] The vehicle provided in the embodiment of the present application can execute the steps in the window control method provided in the method embodiment of the present application, and the execution steps and beneficial effects are no longer repeated here.
[0171] Figure 8 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8As shown, the electronic device 400 includes one or more processors 401 and a memory 402 .
[0172] The processor 401 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 400 to perform desired functions.
[0173] The memory 402 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 401 may run the program instructions to implement the vehicle window control method of any embodiment of the present application described above and / or other desired functions. Various contents such as initial external parameters, thresholds, etc. may also be stored in the computer-readable storage medium.
[0174] In one example, the electronic device 400 may further include: an input device 403 and an output device 404, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown). The input device 403 may include, for example, a keyboard, a mouse, etc. The output device 404 may output various information to the outside, including early warning information, braking force, etc. The output device 404 may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.
[0175] Of course, to simplify, Figure 8 Only some of the components related to the present application in the electronic device 400 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device 400 may also include any other appropriate components.
[0176] In addition to the above methods and devices, the embodiments of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the vehicle window control method provided by any embodiment of the present application.
[0177] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0178] In addition, the embodiments of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the vehicle window control method provided by any embodiment of the present application.
[0179] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0180] It should be noted that the terms used in this application are only for describing specific embodiments, rather than limiting the scope of this application. As shown in the specification and claims of this application, unless the context clearly indicates an exception, the words "one", "a", "a kind of" and / or "the" do not specifically refer to the singular, but may also include the plural. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements.
[0181] It should also be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0182] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and its core ideas of this application. The above is only the preferred implementation method of this application. It should be pointed out that due to the limitations of textual expression and the objective existence of infinite specific structures, ordinary technicians in this technical field can make several improvements, modifications or changes without departing from the principles of this application, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the concept and technical solution of the invention to other occasions without improvement, should be regarded as the scope of protection of this application.
Claims
1. A vehicle window control method, characterized in that: Executed by a vehicle body controller, the method includes: Receiving wind speed and direction information sent by a wind speed and direction controller of a vehicle, wherein the wind speed and direction information includes an external wind speed and an external wind direction of the vehicle; In response to detecting a vehicle ventilation instruction, obtaining a temperature difference between inside and outside of the vehicle and air pollution information inside the vehicle; Based on the wind speed and direction information, the temperature difference between inside and outside the vehicle, and the air pollution information inside the vehicle, the target windows of the vehicle and the target openings corresponding to the target windows are determined, and each of the target windows is controlled to open to the corresponding target openings.
2. The method according to claim 1, characterized in that Determining a target window of the vehicle and a target opening corresponding to the target window based on the wind speed and direction information, the temperature difference between the inside and outside of the vehicle, and the air pollution information inside the vehicle, includes: Determining a target opening corresponding to a target window based on the temperature difference between inside and outside the vehicle; Determining the number of open windows of the vehicle and a window opening mode corresponding to the number of open windows based on the wind speed outside the vehicle and the air pollution information inside the vehicle; A target window of the vehicle is determined based on the wind direction outside the vehicle, the number of open windows, and the window opening mode.
3. The method according to claim 2, characterized in that Determining the number of windows to be opened and a window opening mode corresponding to the number of windows to be opened based on the wind speed outside the vehicle and the air pollution information inside the vehicle includes: Determining a corresponding wind speed level based on the wind speed outside the vehicle; In a pre-built window opening mode mapping table, query the number of windows and the window opening mode corresponding to the wind speed level and the in-vehicle air pollution information; The window opening mode mapping table is used to describe the corresponding relationship between each preset wind speed level, each preset in-vehicle air pollution information, each preset window opening number and each preset window opening mode.
4. The method according to claim 2, characterized in that: Determining a target window of the vehicle based on the wind direction outside the vehicle, the number of windows to be opened, and the window opening mode includes: In a pre-constructed window opening position mapping table, querying the window opening position corresponding to the wind direction outside the vehicle, the number of windows opened, and the window opening mode, and taking the window corresponding to the window opening position as the target window of the vehicle; The window position mapping table is used to describe the corresponding relationship between each preset vehicle exterior wind direction, each preset window opening quantity and each preset window opening position.
5. The method according to claim 1, characterized in that The method further comprises: In response to detecting that a user triggers a preset ventilation switch, determining air pollution information in the vehicle, wherein the air pollution information in the vehicle includes a pollution level of each gas in the vehicle; It is determined whether the pollution level of each gas in the in-vehicle air pollution information is less than the corresponding first preset level. If not, a vehicle ventilation instruction is generated.
6. The method according to claim 5, characterized in that After controlling each of the target windows to open to a corresponding target opening, the method further includes: re-determining the in-vehicle air pollution information of the vehicle; In response to detecting that the pollution level of each gas in the in-vehicle air pollution information is lower than the corresponding second preset level, controlling each of the target vehicle windows to close; The second preset level is lower than the first preset level.
7. A vehicle window control method, characterized in that: Executed by a wind speed and wind direction controller, the method comprises: Obtaining ultrasonic propagation times of two pairs of ultrasonic transceivers preset on the vehicle, wherein each pair of ultrasonic transceivers is composed of two ultrasonic transceivers with probes facing each other, a propagation direction of each pair of ultrasonic transceivers is perpendicular to a horizontal plane of the vehicle, and the propagation directions of the two pairs of ultrasonic transceivers are perpendicular to each other; Based on the propagation time of each ultrasonic wave and the spacing distance between each pair of ultrasonic transceivers, determining the wind speed and direction information of the vehicle, wherein the wind speed and direction information includes the wind speed and wind direction outside the vehicle; The wind speed and direction information is sent to a body controller of the vehicle.
8. The method according to claim 7, characterized in that Determining wind speed and direction information of the vehicle based on each ultrasonic wave propagation time and the spacing distance between each pair of ultrasonic transceivers includes: Based on each of the ultrasonic wave propagation times and the spacing between each pair of ultrasonic transceivers, determining the wind speed in the propagation direction formed by each pair of ultrasonic transceivers; Determining the wind speed outside the vehicle based on the wind speed in the propagation direction formed by each pair of ultrasonic transceivers; The wind direction outside the vehicle is determined based on the wind speed outside the vehicle and the wind speed in the propagation direction formed by each pair of ultrasonic transceivers.
9. A vehicle, characterized in that: The vehicle comprises a body controller and a wind speed and direction controller, wherein; The wind speed and direction controller is used to obtain the ultrasonic propagation time of two pairs of ultrasonic transceivers preset on the vehicle, determine the wind speed and direction information of the vehicle based on each of the ultrasonic propagation time and the interval distance between each pair of ultrasonic transceivers, and send the wind speed and direction information to the body controller of the vehicle, wherein each pair of ultrasonic transceivers is composed of two ultrasonic transceivers with probes facing each other, the propagation direction of each pair of ultrasonic transceivers is perpendicular to the horizontal plane of the vehicle, and the propagation directions of the two pairs of ultrasonic transceivers are perpendicular to each other, and the wind speed and direction information includes the wind speed and wind direction outside the vehicle; The body controller is used to receive wind speed and direction information sent by the vehicle's wind speed and direction controller, and in response to detecting a vehicle ventilation command, obtain the temperature difference between the inside and outside of the vehicle and the air pollution information inside the vehicle, determine the target window of the vehicle and the target opening corresponding to the target window based on the wind speed and direction information, the temperature difference between the inside and outside of the vehicle and the air pollution information inside the vehicle, and control each of the target windows to open to the corresponding target opening.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or an instruction, and the program or the instruction enables a computer to execute the steps of the vehicle window control method according to any one of claims 1 to 8.
