Car window control method and device, electronic equipment and storage medium
By introducing automatic window lifting function and air quality sensors into the vehicle, identifying the type of surrounding vehicles and automatically closing the windows when the external air quality is poor, the problem of poor air quality in the car during driving is solved and the driver is improved concentration and driving safety.
Patent Information
- Application Number
- CN202411539995.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-11
AI Technical Summary
During driving, the air quality in the car may deteriorate due to external dust, causing the driver to manually close the windows, distracted driving, and increase safety risks.
By introducing automatic window lift function and air quality sensors into the vehicle, the surrounding vehicle type is identified and the windows are automatically closed when the external air quality is poor.
It effectively avoids the impact of poor external air quality on the health of the car, reduces the driver's demand for manual operation, and improves the driver's concentration and driving safety.
Smart Images

Figure CN119411903A_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, device, electronic device and storage medium. Background Art
[0002] As the number of vehicles continues to increase, more and more users are choosing vehicles as a necessary means of transportation. However, when driving, users may pass through roads with poor air quality. For example, when encountering large trucks or muck trucks during driving, a lot of dust will enter the car, causing the air quality inside the car to deteriorate. In this case, the driver needs to manually close the window, but this will make the driver unable to concentrate on driving, which may pose a safety threat and reduce driving safety. Summary of the invention
[0003] The embodiments of the present application provide a window control method, device, electronic device and storage medium, which can avoid the impact of poor air quality outside the car on the health of the driver and passengers in the car, and do not require the driver to manually close the window, so that the driver can concentrate on driving, improving driving safety. The technical solution is as follows:
[0004] In one aspect, a vehicle window control method is provided, which is applied to a vehicle, and the method comprises:
[0005] In response to a start-up operation of an automatic window lifting function of the vehicle, identifying vehicle types of vehicles surrounding the vehicle, the surrounding vehicles being vehicles within a predetermined distance from the vehicle;
[0006] In the case where the vehicle type of any of the surrounding vehicles is a target type, starting an air quality sensor of the vehicle, the air quality sensor being used to detect the external air quality of the vehicle to obtain an external air quality index indicating the external air quality, the target type being a vehicle type that is prone to generate dust during driving;
[0007] When the external air quality index is greater than a first preset index, if the windows of the vehicle are in an open state, the windows of the vehicle are closed.
[0008] On the other hand, a vehicle window control method is provided, which is configured in a vehicle, and the device comprises:
[0009] an identification module, for identifying the vehicle types of surrounding vehicles of the vehicle in response to the activation operation of the automatic window lifting function of the vehicle, wherein the surrounding vehicles are vehicles within a predetermined distance from the vehicle;
[0010] a starting module, configured to start an air quality sensor of the vehicle when the vehicle type of any of the surrounding vehicles is a target type, the air quality sensor being configured to detect the external air quality of the vehicle to obtain an external air quality index indicating the external air quality, the target type being a vehicle type that is prone to generate dust during driving;
[0011] The first control module is used for closing the windows of the vehicle if the windows of the vehicle are in an open state when the external air quality index is greater than a first preset index.
[0012] In some embodiments, the first control module is used to record the position of the vehicle's window before closing if the window of the vehicle is in an open state when the external air quality index is greater than a first preset index; and control the window to rise until the window is closed.
[0013] In some embodiments, the first control module is further used to, after closing the window of the vehicle, turn off the air quality sensor when it is identified that the vehicle types of all surrounding vehicles are not the target type and the external air quality index is not greater than the first preset index; and control the window to go down until the window is at the position where the window was before it was closed.
[0014] In some embodiments, the air quality sensor is further used to detect the interior air quality of the vehicle to obtain an interior air quality index indicating the interior air quality;
[0015] The device also includes:
[0016] The purification module is used to start the air purification function of the vehicle when the internal air quality index is greater than a second preset index; and to turn off the vehicle purification function when the internal air quality index of the vehicle after purification is not greater than the second preset index.
[0017] In some embodiments, the apparatus further comprises:
[0018] The second control module is used to detect the interior air quality of the vehicle through the air quality sensor when the external air quality index is not greater than the first preset index and the vehicle window is in a closed state to obtain an internal air quality index indicating the internal air quality; to open the vehicle window when the internal air quality index is greater than the second preset index and the vehicle air conditioner is in a turned off state; and to start the air purification function of the vehicle when the internal air quality index is greater than the second preset index and the vehicle air conditioner is in a turned on state.
[0019] In some embodiments, the apparatus further comprises:
[0020] A locking module, configured to lock the vehicle window if the vehicle window is in a closed state when the external air quality index is greater than the first preset index;
[0021] The unlocking module is used to unlock the vehicle window after the vehicle window is locked when it is identified that the vehicle types of all surrounding vehicles are not the target type and the external air quality index is not greater than the first preset index.
[0022] In another aspect, an electronic device is provided, which includes a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the vehicle window control method in the embodiment of the present application.
[0023] On the other hand, a computer-readable storage medium is provided, which is used to store at least one computer program, and the at least one computer program is loaded and executed by a processor to implement the vehicle window control method in the embodiment of the present application.
[0024] On the other hand, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to implement the vehicle window control method in the embodiment of the present application.
[0025] The embodiment of the present application provides a window control method, which enables the vehicle to identify the types of surrounding vehicles by activating the automatic window lifting function of the vehicle, and then can promptly activate the air quality sensor to detect the air quality outside the vehicle when it is identified that there are vehicles that are prone to generate dust around the vehicle, so as to automatically close the window when the air quality outside the vehicle is poor. The above process can not only avoid the impact of poor air quality outside the vehicle on the health of the driver and passengers in the car, but also eliminate the need for the driver to manually close the window, so that the driver can concentrate on driving, improving driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 is a schematic diagram of an implementation environment of a vehicle window control method provided according to an embodiment of the present application;
[0028] Figure 2is a flow chart of a vehicle window control method provided according to an embodiment of the present application;
[0029] Figure 3 is a flow chart of another vehicle window control method provided according to an embodiment of the present application;
[0030] Figure 4 is a flow chart of a vehicle window control provided according to an embodiment of the present application;
[0031] Figure 5 is a structural diagram of a system for controlling vehicle windows according to an embodiment of the present application;
[0032] Figure 6 is a block diagram of a vehicle window control device provided according to an embodiment of the present application;
[0033] Figure 7 is a block diagram of another vehicle window control device provided according to an embodiment of the present application;
[0034] Figure 8 is a schematic diagram of the structure of a terminal provided according to an embodiment of the present application;
[0035] Fig. 9 It is a structural diagram of a server provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0037] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.
[0038] In the present application, the term "at least one" means one or more, and the term "plurality" means two or more.
[0039] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0040] Figure 1 Schematic diagram of an implementation environment of a vehicle window control method provided according to an embodiment of the present application. Figure 1The implementation environment includes a vehicle 101 and an electronic device 102, and the vehicle 101 and the electronic device 102 are connected via a wireless network.
[0041] In some embodiments, the vehicle 101 is equipped with a large in-vehicle screen, an air quality sensor, an air purification device, an image acquisition device, etc. Among them, the large in-vehicle screen is installed with an application that provides an automatic window lifting function. When the user turns on the automatic window lifting function through the large in-vehicle screen, the vehicle 101 can automatically control whether the window is raised or lowered to open or close the window. The air quality sensor is used to detect the air quality inside and outside the vehicle 101. The air purification device is used to purify the internal air of the vehicle 101. The image acquisition device is used to collect vehicle images of vehicles around the vehicle 101.
[0042] In some embodiments, the electronic device 102 is a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart watch, etc., but is not limited thereto. For example, the electronic device 102 is a terminal used by the driver of the vehicle 101, and the driver can remotely turn on the automatic window lifting function of the vehicle 101 through the electronic device 102. In some embodiments, the electronic device 102 can also be a controller or a vehicle-mounted terminal of the vehicle 101 itself, that is, the vehicle 101 uses its own device to implement the window control method.
[0043] In some embodiments, the electronic device 102 is a server, and the vehicle 101 can send the collected in-vehicle air quality data and the outside-vehicle air quality data to the electronic device 102, and the electronic device 102 determines the external air quality index and the internal air quality index of the vehicle 101 based on the in-vehicle air quality data and the outside-vehicle air quality data.
[0044] Figure 2 is a flow chart of a vehicle window control method provided according to an embodiment of the present application, the method being executed by a vehicle, such as Figure 2 As shown, the vehicle window control method comprises the following steps:
[0045] 201. In response to a start operation of an automatic window lifting function of a vehicle, identify vehicle types of vehicles surrounding the vehicle.
[0046] In the embodiment of the present application, when the windows need to be closed during the driving process of the vehicle, the driver may be too focused on driving to pay attention to the closing of the windows. Therefore, in order to prevent the driver from being distracted from controlling the closing of the windows during the driving process, the driver can start the automatic window lifting function of the vehicle. When the automatic window lifting function is started, the vehicle can use the image acquisition device to capture images of vehicles within a predetermined distance from the vehicle, that is, to capture images of vehicles surrounding the vehicle. Then, the vehicle can identify the vehicle type of the surrounding vehicles based on the captured images of the surrounding vehicles. Among them, the predetermined distance can be any value. For the surrounding vehicles on the left and right sides of the vehicle, the predetermined distance can be, for example, 0.5 meters, 1 meter, 2 meters, etc. For the surrounding vehicles in front and behind the vehicle, the predetermined distance can be 5 meters, 7 meters, 10 meters, etc., and the embodiment of the present application does not limit this.
[0047] 202. When the vehicle type of any surrounding vehicle is a target type, start the air quality sensor of the vehicle, the air quality sensor is used to detect the external air quality of the vehicle to obtain an external air quality index indicating the external air quality, and the target type is a vehicle type that is prone to generate dust during driving.
[0048] In an embodiment of the present application, the target type is a vehicle type that is prone to generate dust during driving, such as a large truck, a large van, a muck truck, etc. When any surrounding vehicle of the vehicle is a vehicle of the target type, if the driver fails to close the window in time, and if the surrounding vehicles generate dust during driving, the dust in the air can easily enter the interior of the vehicle through the open windows, causing the air quality in the vehicle to deteriorate. In order to avoid a large amount of dust entering the vehicle, the vehicle can start the vehicle's air quality sensor when it detects that the vehicle type of any surrounding vehicle is the target type, and then detect the external air quality of the vehicle through the air quality sensor to obtain an external air quality index indicating the external air quality. Among them, the lower the external air quality index, the higher the external air quality.
[0049] 203. When the external air quality index is greater than a first preset index, if the vehicle windows are in an open state, close the vehicle windows.
[0050] In the embodiment of the present application, when the external air quality index is greater than the first preset index, it indicates that the external air quality of the vehicle is poor. Therefore, when the vehicle windows are in an open state, in order to prevent dust generated by surrounding vehicles from entering the vehicle, the vehicle can automatically close the windows.
[0051] The embodiment of the present application provides a window control method, which enables the vehicle to identify the types of surrounding vehicles by activating the automatic window lifting function of the vehicle, and then can promptly activate the air quality sensor to detect the air quality outside the vehicle when it is identified that there are vehicles that are prone to generate dust around the vehicle, so as to automatically close the window when the air quality outside the vehicle is poor. The above process can not only avoid the impact of poor air quality outside the vehicle on the health of the driver and passengers in the car, but also eliminate the need for the driver to manually close the window, so that the driver can concentrate on driving, improving driving safety.
[0052] Figure 3 is a flow chart of another vehicle window control method provided according to an embodiment of the present application, the method being executed by a vehicle, such as Figure 3 As shown, the vehicle window control method comprises the following steps:
[0053] 301. In response to a start operation of an automatic window lifting function of a vehicle, identify vehicle types of vehicles surrounding the vehicle.
[0054] In the embodiment of the present application, since the driver may not pay attention to the closing of the windows due to the concentration on driving when the windows need to be closed during the driving process of the vehicle, in order to prevent the driver from being distracted from controlling the closing of the windows during the driving process, the driver can start the automatic lifting function of the vehicle's windows through the vehicle's large on-board screen. When the automatic lifting function of the windows is started, the vehicle can collect images of vehicles within a predetermined distance from the vehicle through an image acquisition device, that is, collect images of vehicles surrounding the vehicle. Then, the vehicle can identify the vehicle type of the surrounding vehicles based on the images of the surrounding vehicles collected. Among them, the predetermined distance can be any value. For the surrounding vehicles on the left and right sides of the vehicle, the predetermined distance can be, for example, 0.5 meters, 1 meter, 2 meters, etc. For the surrounding vehicles in front and behind the vehicle, the predetermined distance can be 5 meters, 7 meters, 10 meters, etc., and the embodiment of the present application does not limit this.
[0055] 302. When the vehicle type of any surrounding vehicle is a target type, start the air quality sensor of the vehicle, the air quality sensor is used to detect the external air quality of the vehicle to obtain an external air quality index indicating the external air quality, and the target type is a vehicle type that is prone to generate dust during driving.
[0056] In the embodiment of the present application, the target type is a vehicle type that is prone to generate dust during driving, such as large trucks, large vans, and muck trucks. When any surrounding vehicle of the vehicle is a target type of vehicle, if the driver fails to close the window in time, and if the surrounding vehicles generate dust during driving, the dust in the air can easily enter the vehicle through the open windows, causing the air quality in the vehicle to deteriorate. This will not only affect the health of the driver and passengers in the vehicle due to harmful substances (PM2.5, PM10, bacteria) in the dust, but also make the driver unable to concentrate on driving when the dust enters the driver's eyes, reducing driving safety.
[0057] In order to avoid the above problems, the vehicle can start the vehicle's air quality sensor when it detects that the vehicle type of any surrounding vehicle is the target type. Then the air quality sensor is used to detect the external air quality of the vehicle to obtain the external air quality data of the vehicle. Among them, the external air quality data includes the concentration of various pollutants in the external air, such as carbon monoxide, carbon dioxide, nitrogen oxides, PM2.5, PM10, formaldehyde and at least one of the benzene series. PM2.5 refers to particles in the air with an aerodynamic diameter of less than or equal to 2.5 microns, which can enter the lungs. PM10 is a particle with a particle size of less than or equal to 10 microns, which refers to the general term for solid and liquid particles floating in the air.
[0058] After obtaining the external air quality data collected by the air quality sensor, the vehicle can determine the external air quality index used to indicate the external air quality, that is, the AQI (Air quality Index) of the external air based on the concentration of various pollutants in the external air quality data. Among them, different pollutants contribute to the AQI to different degrees, and PM2.5 usually has a greater impact on the AQI. The lower the external air quality index, the lower the concentration of pollutants in the air outside the vehicle, which means that the external air quality is higher.
[0059] 303. When the external air quality index is greater than a first preset index, if the vehicle windows are in an open state, the position of the vehicle windows before closing is recorded.
[0060] In the embodiment of the present application, since dust can cause the concentration of suspended particulate matter (such as PM10, PM2.5, etc.) in the air to increase significantly, if the external air quality index obtained at this time is greater than the first preset index when the surrounding vehicles of the vehicle are vehicles of the target type, it indicates that the concentration of pollutants in the air outside the vehicle is high, that is, it indicates that the dust content in the air outside the vehicle is high. In order to prevent dust generated by surrounding vehicles from entering the vehicle, the vehicle needs to close the windows. In addition, since the dust content in the air outside the vehicle will decrease when the surrounding vehicles that generate dust leave, the external air quality of the vehicle will gradually return to normal. Therefore, before closing the windows, the vehicle can record the current position of the windows, that is, record the position of the windows before closing, so that the vehicle can restore the windows to their original state after the external air quality returns to normal. Among them, the first preset index can be 100, 150, 200, etc., and the embodiment of the present application does not limit this.
[0061] 304. Control the window to rise until it is closed.
[0062] In an embodiment of the present application, after recording the position of the window before closing, in order to prevent dust generated by surrounding vehicles from entering the vehicle, the vehicle controls the window to gradually rise until the window is completely closed.
[0063] In some embodiments, the vehicle can also detect whether there is an obstacle above the window before closing the window. Accordingly, when the external air quality index is greater than the first preset index, if the vehicle's window is in an open state, the vehicle detects whether there is an obstacle above the window; when there is no obstacle above the window, the window is controlled to close. When there is an obstacle above the window, the vehicle can display or play a prompt message, which is used to prompt that the vehicle's window is closing and please remove the obstacle on the window in time. By detecting whether there is an obstacle above the window before controlling the window to close, and displaying a prompt message when there is an obstacle, it is possible to prevent the window from pinching the driver or passengers during the closing process, thereby improving the driver or passenger's experience of the automatic window lifting function.
[0064] Optionally, the vehicle can detect whether there is an obstacle above the window through a sensor or a camera. The sensor can be an ultrasonic sensor or an infrared sensor. The ultrasonic sensor can emit ultrasonic pulses, which will be reflected back when encountering an obstacle. Therefore, by measuring the time difference between the emission and reception of ultrasonic pulses, it can be determined whether there is an obstacle above the window. The infrared sensor can emit an infrared beam, and when the infrared beam is blocked by an obstacle, the signal at the receiving end will change. Therefore, by detecting the change in the signal, it can be determined whether there is an obstacle above the window. The camera can capture the window image, and by identifying the window image, it can be determined whether there is an obstacle above the window.
[0065] It should be noted that the above obstacle detection methods are only a few exemplary methods, and the embodiments of the present application are not limited thereto.
[0066] In some embodiments, the air quality sensor of the vehicle is also used to detect the internal air quality of the vehicle to obtain an internal air quality index indicating the internal air quality. Accordingly, after closing the windows of the vehicle, the vehicle can also obtain the internal air quality index of the vehicle. When the internal air quality index is greater than the second preset index, the air purification function of the vehicle is started; when the internal air quality index of the purified vehicle is not greater than the second preset index, the vehicle purification function is turned off. Wherein, similar to the process of obtaining the external air quality index, after the windows are closed, the vehicle can obtain the internal air quality data of the vehicle through the air quality sensor, and the internal air quality data includes the concentration of various pollutants in the internal air. Then, the vehicle determines the internal air quality index for indicating the internal air quality, that is, the AQI (Air quality Index) of the internal air based on the concentration of various pollutants in the internal air quality data. When the internal air quality index is greater than the second preset index, it indicates that the air quality inside the vehicle is poor, so the vehicle can turn on the air purification function to purify the air inside the vehicle. When the internal air quality index of the purified air inside the vehicle is not greater than the second preset index, it indicates that the air quality inside the vehicle is good, so the vehicle can turn off the vehicle purification function. The second preset index may be 50, 100, 150, etc., which is not limited in the present embodiment. By detecting the air quality in the car after closing the windows, when the air quality in the car is poor due to dust entering the car during the window closing process, the air in the car can be purified in time to avoid affecting the health of the driver and passengers.
[0067] In some embodiments, the vehicle also controls the windows to be locked or unlocked. Accordingly, when the external air quality index is greater than the first preset index, if the windows of the vehicle are in a closed state, it indicates that the vehicle does not need to control the windows to be closed at this time. In order to prevent the driver or passengers from opening the windows when the external air quality is poor, the vehicle can lock the windows when the external air quality index detected by the surrounding vehicles is greater than the first preset index when the surrounding vehicles are vehicles of the target type; after locking the windows, when it is identified that the vehicle type of all surrounding vehicles is not the target type and the external air quality index is not greater than the first preset index, it indicates that the vehicles that are prone to generate dust around the vehicle have left and the external air quality of the vehicle has returned to normal, so the vehicle can unlock the windows at this time. By locking the closed windows when the vehicles that are prone to generate dust are located around the vehicle and the external air quality is poor, it is possible to prevent the driver or passengers from opening the windows when the external air quality is poor, thereby preventing the dust generated by the surrounding vehicles from entering the vehicle, causing the health of the driver and passengers to be affected. By unlocking the locked windows when a vehicle that is prone to generating dust leaves and the vehicle's external air quality returns to normal, not only can the vehicle control the windows to open automatically when the external air quality is good, but it can also make it convenient for the driver or passengers to manually open the windows when the external air quality is good.
[0068] 305. After closing the vehicle windows, when it is identified that the vehicle types of all surrounding vehicles are not the target type and the external air quality index is not greater than a first preset index, turn off the air quality sensor and control the windows to descend until the windows are at the position where they were before being closed.
[0069] In an embodiment of the present application, after the window is closed, the vehicle can still continue to identify the vehicle type of the surrounding vehicles. When the vehicle types of all the identified surrounding vehicles are not the target type, it indicates that the vehicles around the vehicle that are prone to generate dust have left. If the external air quality index obtained by the air quality sensor at this time is not greater than the first preset index, it indicates that the external air quality of the vehicle is good at this time, that is, the external air quality has returned to a normal state, and the vehicle does not need to continue to close the window and monitor the air quality outside the vehicle, so the vehicle can turn off the air quality sensor and control the window to drop until the window is located at the position where the window was before closing. By turning off the air quality sensor in time when the vehicle that is prone to generate dust has left and the external air quality of the vehicle has returned to normal, the power consumption of the air quality sensor during the driving process of the vehicle can be reduced. By lowering the window to the position where the window was before closing during the process of opening the window, the window can be restored to its original state, so that the driver or passenger does not need to manually adjust the position of the window, which improves the driver or passenger's experience of the automatic window lifting function.
[0070] For example, Figure 4 FIG. 1 is a flow chart of a vehicle window control process provided according to an embodiment of the present application. Figure 4 As shown, 401. In response to the start-up operation of the automatic window lifting function, the automatic window lifting function is initialized. 402. The intelligent driving module of the vehicle can monitor the passing vehicles around the vehicle in real time and determine the vehicle type. When the target type of vehicle is detected on both sides of the vehicle, the intelligent driving module sends a signal to the body control module. 403. The body control module will start the air quality sensor. The air quality sensor starts to detect the external air quality of the vehicle and transmits the detected external air quality data back to the body control module. 404. After receiving the external air quality data, the body control module determines whether the external air quality is polluted. If there is pollution, the window is controlled to be closed. 405. After the vehicle types of the surrounding vehicles are not the target type and the air quality outside the vehicle returns to the normal level, the body control module controls the window to return to the state before closing, that is, to perform the window opening action. 406. After the window is restored, the automatic lifting function of the vehicle returns to the initial state and continues to monitor the surrounding vehicles outside the vehicle.
[0071] For example, Figure 5 1 is a structural diagram of a vehicle window control system provided according to an embodiment of the present application. Figure 5As shown, the vehicle includes ICM (Intelligent Cockpit Module), BCM (Body Control Module), IDM (Intelligent Driving Module), AQS (Air Quality Sensor) and four windows of the vehicle. Among them, after the car is started, the driver can turn on the automatic window lifting function through the large screen on the car, and the automatic window lifting function is initialized. ICM can transmit the function activation signal to BCM. In addition, IDM monitors the vehicles around the vehicle in real time and determines the vehicle type. When the monitored vehicle type is a large truck, a large truck, a muck truck, etc., IDM transmits a signal (vehicle type) to BCM. BCM can send a wake-up signal to wake up AQS. AQS monitors the vehicle's external air quality and feeds back the current air quality data to BCM. Based on the air quality data, if BCM determines that the current external air quality is excellent and the air quality has not been polluted for a long time, BCM will not respond. After IDM detects that large trucks, large trucks, muck trucks and other vehicles have left, that is, when BCM does not receive the signal from IDM, BCM sends a sleep signal to put AQS into sleep mode. If it is determined that the current external air quality is highly polluted, BCM records the current position of the window and then closes the window. After closing the window, if IDM monitors that large trucks, large trucks, muck trucks, etc. are still around the vehicle, BCM controls the window to remain unchanged. When these vehicles leave and AQS monitors that the external air quality has returned to normal, BCM opens the window to the state before closing and sends a sleep signal to put AQS into sleep mode. When these vehicles leave and the external air quality is still poor, BCM does not open the window, and opens the window after the external air quality returns to normal. After the car windows are restored, the automatic window lifting function returns to its initial state, and IDM continues to monitor the outside of the car.
[0072] In some embodiments, when the vehicles around the vehicle that are prone to generate dust do not cause the external air quality of the vehicle to deteriorate, if the windows are closed, the vehicle can perform specific operations to improve the air quality inside the vehicle according to the situation inside the vehicle. Accordingly, when the external air quality index is not greater than the first preset index, if the windows are in a closed state, the vehicle can detect the internal air quality of the vehicle through the air quality sensor to obtain an internal air quality index indicating the internal air quality; when the internal air quality index is greater than the second preset index and the vehicle's onboard air conditioner is in a closed state, it indicates that the internal air quality of the vehicle is poor and the opening of the windows will not affect the operating effect of the onboard air conditioner, so the vehicle can open the windows of the vehicle to ventilate the vehicle, thereby improving the internal air quality of the vehicle; when the internal air quality index is greater than the second preset index and the vehicle's onboard air conditioner is in an on state, it indicates that the internal air quality of the vehicle is poor and the opening of the windows will affect the operating effect of the onboard air conditioner, so the vehicle can start the vehicle's air purification function to purify the air inside the vehicle, thereby improving the internal air quality of the vehicle.
[0073] In some embodiments, when vehicles that are prone to generating dust around the vehicle do not cause the air quality outside the vehicle to deteriorate, that is, when the external air quality index is not greater than a first preset index, the vehicle can identify that the vehicle types of all surrounding vehicles are not the target type, that is, when the vehicles that are prone to generating dust leave, and then turn off the air quality sensor to reduce the power consumption of the air quality sensor during the driving of the vehicle.
[0074] The embodiment of the present application provides a window control method, which enables the vehicle to identify the types of surrounding vehicles by activating the automatic window lifting function of the vehicle, and then can promptly activate the air quality sensor to detect the air quality outside the vehicle when it is identified that there are vehicles that are prone to generate dust around the vehicle, so as to automatically close the window when the air quality outside the vehicle is poor. The above process can not only avoid the impact of poor air quality outside the vehicle on the health of the driver and passengers in the car, but also eliminate the need for the driver to manually close the window, so that the driver can concentrate on driving, improving driving safety.
[0075] Figure 6 is a block diagram of a vehicle window control device provided according to an embodiment of the present application. The device is used to execute the steps of the above-mentioned vehicle window control method. Figure 6 , the device comprises:
[0076] The identification module 601 is used to identify the vehicle types of the surrounding vehicles of the vehicle in response to the start operation of the automatic window lifting function of the vehicle, and the surrounding vehicles are vehicles within a predetermined distance from the vehicle;
[0077] A starting module 602 is used to start an air quality sensor of the vehicle when the vehicle type of any surrounding vehicle is a target type, the air quality sensor is used to detect the external air quality of the vehicle to obtain an external air quality index indicating the external air quality, and the target type is a vehicle type that is prone to generate dust during driving;
[0078] The first control module 603 is configured to close the vehicle windows if the vehicle windows are in an open state when the external air quality index is greater than a first preset index.
[0079] In some embodiments, the first control module 603 is used to record the position of the vehicle's windows before closing if the vehicle's windows are in an open state when the external air quality index is greater than a first preset index; and control the windows to rise until they are closed.
[0080] In some embodiments, the first control module 603 is also used to, after closing the vehicle windows, turn off the air quality sensor when it is identified that the vehicle types of all surrounding vehicles are not the target type and the external air quality index is not greater than a first preset index; control the windows to drop until the windows are in the position where they were before being closed.
[0081] In some embodiments, the air quality sensor is further used to detect the interior air quality of the vehicle to obtain an interior air quality index indicating the interior air quality;
[0082] Figure 7 is a block diagram of another vehicle window control device provided according to an embodiment of the present application. Figure 7 , the device further comprises:
[0083] The purification module 604 is used to start the vehicle's air purification function when the interior air quality index is greater than a second preset index; and to turn off the vehicle's purification function when the interior air quality index of the vehicle after purification is not greater than the second preset index.
[0084] In some embodiments, see Figure 7 , the device further comprises:
[0085] The second control module 605 is used to detect the interior air quality of the vehicle through the air quality sensor to obtain an internal air quality index indicating the interior air quality when the external air quality index is not greater than the first preset index and the vehicle windows are in a closed state; to open the vehicle windows when the internal air quality index is greater than the second preset index and the vehicle's onboard air conditioner is in a turned-off state; and to start the vehicle's air purification function when the internal air quality index is greater than the second preset index and the vehicle's onboard air conditioner is in a turned-on state.
[0086] In some embodiments, see Figure 7 , the device further comprises:
[0087] The locking module 606 is used to lock the vehicle windows if the vehicle windows are in a closed state when the external air quality index is greater than a first preset index;
[0088] The unlocking module 607 is used to unlock the vehicle windows after locking the vehicle windows when it is identified that the vehicle types of all surrounding vehicles are not the target type and the external air quality index is not greater than a first preset index.
[0089] The embodiment of the present application provides a vehicle window control device, which enables the vehicle to identify the vehicle type of surrounding vehicles by activating the automatic lifting function of the vehicle window, and then can promptly activate the air quality sensor to detect the air quality outside the vehicle when it is identified that there are vehicles that are prone to generate dust around the vehicle, so as to automatically close the window when the air quality outside the vehicle is poor. The above process can not only avoid the impact of poor air quality outside the vehicle on the health of the driver and passengers in the vehicle, but also eliminate the need for the driver to manually close the window, so that the driver can concentrate on driving, improving driving safety.
[0090] It should be noted that: the vehicle window control device provided in the above embodiment is only illustrated by the division of the above functional modules when running the application program. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the vehicle window control device provided in the above embodiment and the vehicle window control method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0091] Figure 8 800 is a schematic diagram of a terminal structure provided according to an embodiment of the present application. The terminal 800 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 800 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0092] Typically, the terminal 800 includes a processor 801 and a memory 802 .
[0093] The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 801 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 801 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0094] The memory 802 may include one or more computer-readable storage media, which may be non-transitory. The memory 802 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 802 is used to store at least one computer program, which is used to be executed by the processor 801 to implement the vehicle window control method provided in the method embodiment of the present application.
[0095] In some embodiments, the terminal 800 may further optionally include: a peripheral device interface 803 and at least one peripheral device. The processor 801, the memory 802 and the peripheral device interface 803 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 803 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a display screen 805, a camera assembly 806, an audio circuit 807 and a power supply 808.
[0096] The peripheral device interface 803 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, the memory 802, and the peripheral device interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral device interface 803 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0097] The radio frequency circuit 804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 804 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In some embodiments, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 804 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 804 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0098] The display screen 805 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 805 is a touch display screen, the display screen 805 also has the ability to collect touch signals on the surface or above the surface of the display screen 805. The touch signal can be input to the processor 801 as a control signal for processing. At this time, the display screen 805 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 805 can be one, set on the front panel of the terminal 800; in other embodiments, the display screen 805 can be at least two, respectively set on different surfaces of the terminal 800 or in a folding design; in other embodiments, the display screen 805 can be a flexible display screen, set on the curved surface or folding surface of the terminal 800. Even, the display screen 805 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 805 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0099] The camera assembly 806 is used to capture images or videos. In some embodiments, the camera assembly 806 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 806 may also include a flash. The flash may be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0100] The audio circuit 807 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 801 for processing, or input them into the radio frequency circuit 804 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 800. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 801 or the radio frequency circuit 804 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 807 may also include a headphone jack.
[0101] The power supply 808 is used to power various components in the terminal 800. The power supply 808 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 808 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0102] In some embodiments, the terminal 800 further includes one or more sensors 809 , including but not limited to: an acceleration sensor 810 , a gyroscope sensor 811 , a pressure sensor 812 , an optical sensor 813 , and a proximity sensor 814 .
[0103] The acceleration sensor 810 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 800. For example, the acceleration sensor 810 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 801 can control the display screen 805 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 810. The acceleration sensor 810 can also be used to collect game or user motion data.
[0104] The gyro sensor 811 can detect the body direction and rotation angle of the terminal 800, and the gyro sensor 811 can cooperate with the acceleration sensor 810 to collect the user's 3D actions on the terminal 800. The processor 801 can implement the following functions based on the data collected by the gyro sensor 811: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0105] The pressure sensor 812 can be set on the side frame of the terminal 800 and / or the lower layer of the display screen 805. When the pressure sensor 812 is set on the side frame of the terminal 800, it can detect the user's holding signal of the terminal 800, and the processor 801 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 812. When the pressure sensor 812 is set on the lower layer of the display screen 805, the processor 801 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 805. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0106] The optical sensor 813 is used to collect the ambient light intensity. In one embodiment, the processor 801 can control the display brightness of the display screen 805 according to the ambient light intensity collected by the optical sensor 813. Specifically, when the ambient light intensity is high, the display brightness of the display screen 805 is increased; when the ambient light intensity is low, the display brightness of the display screen 805 is reduced. In another embodiment, the processor 801 can also dynamically adjust the shooting parameters of the camera component 806 according to the ambient light intensity collected by the optical sensor 813.
[0107] The proximity sensor 814, also called a distance sensor, is usually disposed on the front panel of the terminal 800. The proximity sensor 814 is used to collect the distance between the user and the front of the terminal 800. In one embodiment, when the proximity sensor 814 detects that the distance between the user and the front of the terminal 800 is gradually decreasing, the processor 801 controls the display screen 805 to switch from the screen-on state to the screen-off state; when the proximity sensor 814 detects that the distance between the user and the front of the terminal 800 is gradually increasing, the processor 801 controls the display screen 805 to switch from the screen-off state to the screen-on state.
[0108] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the terminal 800, and the terminal 800 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0109] Fig. 9It is a structural diagram of a server provided according to an embodiment of the present application. The server 900 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 901 and one or more memories 902, wherein the memory 902 stores at least one computer program, and the at least one computer program is loaded and executed by the processor 901 to implement the window control method provided by the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be repeated here.
[0110] The embodiment of the present application also provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is loaded and executed by a processor of an electronic device to implement the operation performed by the electronic device in the vehicle window control method of the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0111] An embodiment of the present application further provides a computer program product, including a computer program, wherein the computer program is loaded and executed by a processor to implement the vehicle window control method as described in the above embodiment.
[0112] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0113] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A vehicle window control method, characterized in that: Applied to a vehicle, the method comprises: In response to a start-up operation of an automatic window lifting function of the vehicle, identifying vehicle types of vehicles surrounding the vehicle, the surrounding vehicles being vehicles within a predetermined distance from the vehicle; In the case where the vehicle type of any of the surrounding vehicles is a target type, starting an air quality sensor of the vehicle, the air quality sensor being used to detect the external air quality of the vehicle to obtain an external air quality index indicating the external air quality, the target type being a vehicle type that is prone to generate dust during driving; When the external air quality index is greater than a first preset index, if the windows of the vehicle are in an open state, the windows of the vehicle are closed.
2. The method according to claim 1, characterized in that When the external air quality index is greater than a first preset index, if the window of the vehicle is in an open state, closing the window of the vehicle includes: When the external air quality index is greater than a first preset index, if the window of the vehicle is in an open state, recording the position of the window of the vehicle before closing; The vehicle window is controlled to rise until the vehicle window is closed.
3. The method according to claim 2, characterized in that The method further comprises: After closing the window of the vehicle, when it is identified that the vehicle types of all surrounding vehicles are not the target type and the external air quality index is not greater than the first preset index, turning off the air quality sensor; The vehicle window is controlled to descend until the vehicle window is located at the position where the vehicle window was before closing.
4. The method according to claim 1, characterized in that: The air quality sensor is further used to detect the interior air quality of the vehicle to obtain an interior air quality index indicating the interior air quality; After closing the window of the vehicle, the method further includes: When the interior air quality index is greater than a second preset index, starting an air purification function of the vehicle; When the interior air quality index of the vehicle after purification is not greater than the second preset index, the vehicle purification function is turned off.
5. The method according to claim 1, characterized in that After starting the air quality sensor of the vehicle, the method further includes: In the case where the external air quality index is not greater than the first preset index, if the vehicle window is in a closed state, detecting the interior air quality of the vehicle by means of the air quality sensor to obtain an interior air quality index indicating the interior air quality; When the internal air quality index is greater than a second preset index and the vehicle air conditioner is in an off state, opening the window of the vehicle; When the internal air quality index is greater than the second preset index and the vehicle air conditioner is in the turned-on state, the air purification function of the vehicle is started.
6. The method according to claim 1, characterized in that After starting the air quality sensor of the vehicle, the method further includes: When the external air quality index is greater than the first preset index, if the windows of the vehicle are in a closed state, locking the windows; After the vehicle window is locked, when it is identified that the vehicle types of all surrounding vehicles are not the target type and the external air quality index is not greater than the first preset index, the vehicle window is unlocked.
7. A vehicle window control device, characterized in that: Configured in a vehicle, the device comprises: an identification module, for identifying the vehicle types of surrounding vehicles of the vehicle in response to the activation operation of the automatic window lifting function of the vehicle, wherein the surrounding vehicles are vehicles within a predetermined distance from the vehicle; a starting module, configured to start an air quality sensor of the vehicle when the vehicle type of any of the surrounding vehicles is a target type, the air quality sensor being configured to detect the external air quality of the vehicle to obtain an external air quality index indicating the external air quality, the target type being a vehicle type that is prone to generate dust during driving; The first control module is used for closing the windows of the vehicle if the windows of the vehicle are in an open state when the external air quality index is greater than a first preset index.
8. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded by the processor and executes the vehicle window control method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store at least one computer program, and the at least one computer program is used to execute the vehicle window control method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the vehicle window control method according to any one of claims 1 to 6 is implemented.