A method, device, electronic device and storage medium for automatically opening and closing doors and windows
By detecting the gas concentration in the kitchen area and the wind direction information of doors and windows, the doors and windows are linked to form an effective air flow path, which solves the problem of untimely gas diffusion in the existing technology and achieves efficient and safe gas discharge and cost-reduced automatic opening and closing control of doors and windows. .
Patent Information
- Application Number
- CN202411050724.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-01
AI Technical Summary
Existing door and window automatic control technology fails to effectively improve ventilation efficiency when gas leaks, resulting in delayed gas diffusion and potential safety hazards. Moreover, multi-door and window linkage control needs to be linked to the ventilation system, which increases the difficulty and cost of adaptation.
By detecting the gas concentration in the kitchen area and the wind direction information of doors and windows, it is determined that the functional object of the first door and window is the air inlet or air outlet, and multiple doors and windows are jointly controlled to form the most effective gas flow path, and the gas with excessive concentration is discharged to avoid additional Ventilation system control.
It improves the efficiency and safety of automatic opening and closing control of doors and windows, reduces costs, realizes efficient and safe discharge of gas to the outdoors, and reduces energy waste and safety risks.
Smart Images

Figure CN118564161B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of door and window control, and in particular to a method, device, electronic device and storage medium for automatic opening and closing control of doors and windows. Background Art
[0002] In modern buildings, automatic control systems for doors and windows have been widely used. These systems are usually equipped with opening and closing devices, detectors and controllers on doors and windows. When the detector detects information that meets the preset conditions (such as temperature, humidity, wind speed, gas, carbon monoxide, formaldehyde, etc.), the controller will send instructions based on this information to control the opening and closing devices to open or close the doors and windows.
[0003] For example, the Chinese invention patent application with publication number CN109322583A proposes an automatic window opening device based on carbon monoxide concentration detection. By setting a carbon monoxide concentration detection sensor, a first wireless communication module, a controller, a second wireless communication module and a window opening mechanism, after detecting that the carbon monoxide concentration exceeds the standard, the window opening mechanism can be controlled by the controller to open the window. The first wireless communication module and the second wireless communication module play the function of information transmission, thereby achieving the effect of automatic window closing.
[0004] For example, the Chinese invention patent application with publication number CN105511322A proposes a system for detecting gas and controlling doors and windows. By setting up a gas sensor and a window pusher for controlling the opening and closing of doors and windows, the doors and windows can be automatically opened in the event of a gas leak, thereby realizing intelligent control of the doors and windows.
[0005] For example, the Chinese invention patent application with publication number CN107461107A proposes an automatic window opening and closing based on a sensor, which specifically discloses that when the smoke in the house exceeds a preset value, the motor rotates to open the doors and windows and an alarm is sounded; when the temperature rises to a value exceeding the preset value, the motor rotates to close the doors and windows and turns on the air conditioner; if it rains, the humidity sensor outside the window will sense it and close the doors and windows; the automatic opening time and automatic closing time of the doors and windows can be set by pressing buttons, and the doors and windows will automatically close or open at the set time; the functions of controlling the opening and closing of the doors and windows according to temperature and humidity and opening and closing the doors and windows according to time can be set.
[0006] It can be found that it is a very mature existing technology to set sensors to detect indoor and / or outdoor environmental information and control doors and windows to automatically open and close when preset conditions are met.
[0007] However, what has been overlooked in the art is that the above-mentioned prior art merely controls the opening and closing of a single door and window. The essence of opening and closing doors and windows is to achieve connectivity or isolation between indoor and outdoor areas. Taking gas leakage as an example, when gas leakage occurs indoors, it is usually necessary to connect indoors and outdoors to avoid excessive gas concentration indoors. In the inherent cognition in the art, as long as the doors and windows are opened to achieve connectivity between indoors and outdoors, ventilation needs can be met, thereby avoiding the problem of excessive gas concentration indoors. Due to this inherent cognition, the relevant technical solutions in the art have long been based on controlling the opening and closing of corresponding doors and windows after the detector detects that a preset condition has been reached, while ignoring the different indoor settings. The positional relationship between doors and windows in different locations affects the connection or separation between indoor and outdoor areas. For example, gas leaks usually occur in the kitchen. In the prior art, when a gas leak occurs in the kitchen, the doors and windows in the kitchen will detect an increase in gas concentration and then open the doors and windows to achieve ventilation. However, if it is windy outside at this time and the wind direction is from the outside to the inside, the gas gathered in the kitchen will not be able to be effectively diffused to the outside, but may diffuse to the inside. At least there is a problem of untimely diffusion of gas to the outside. Once the gas is not diffused to the outside in time, it will easily cause danger in the presence of open flames or electric sparks generated by indoor electrical plugs.
[0008] That is, although most of the existing technologies can realize automatic control of doors and windows, so that doors and windows can be automatically opened and closed to realize the connection or partition between indoor and outdoor, most of the existing technologies ignore the problem of how to improve the efficiency of realizing the goal of connecting or partitioning between indoor and outdoor after realizing the connection or partition between indoor and outdoor. Taking the above text as an example, the goal of realizing the connection between indoor and outdoor is to diffuse the coal gas to the outdoors. Although ventilation can be finally realized by opening doors and windows, the wind blowing from the outdoors to the indoors will not continue all the time, and ventilation can be finally realized to diffuse the coal gas to the outdoors. However, the existing technologies do not take into account the efficiency of diffusing the coal gas to the outdoors. The slower the efficiency of the coal gas diffusing to the outdoors, the greater the risk.
[0009] Among them, in the Chinese invention patent application with publication number CN107461107A, an intelligent door and window system and its automatic control method are proposed. When dealing with an emergency of gas leakage in a building, according to the specific situation of the gas leakage and the characteristics of the apartment type in the building, the theoretically optimal gas exhaust scheme is first calculated, and the natural ventilation exhaust and the ventilation system exhaust are planned. When the natural ventilation is used to exhaust the gas, the gas is discharged outside the building under the action of natural wind by coordinating the opening and opening degree of each door and window. And in the implementation process, the system is debugged in real time according to the actually measured parameters, so as to eliminate the risk of gas leakage more intelligently and quickly while reducing energy waste.
[0010] Although the above-mentioned prior art involves the linkage control of multiple doors and windows, its technical solution needs to be linked with the ventilation system for control, which requires additional adaptation, that is, the ventilation system needs to be uniformly controlled, which brings difficulty and cost to the adaptation work. In addition, when the ventilation system is working, it is usually necessary to use a motor to rotate at high speed to achieve the purpose of ventilation. The high-speed rotating motor will cause heat and friction, which brings additional safety risks when discharging gas.
[0011] Therefore, the existing technology needs to be improved. Summary of the invention
[0012] The purpose of the present application is to provide a method, device, electronic device and storage medium for automatically opening and closing doors and windows, which have the advantages of improved efficiency and safety, high intelligence and low cost.
[0013] In a first aspect, the present application provides a method for controlling automatic opening and closing of doors and windows, which is used to control automatic opening and closing of doors and windows of a house when a gas leak occurs in a kitchen area, wherein the kitchen area is provided with at least a first door and window directly connected to the outdoors, the first door and window and other second doors and windows in the house directly connected to the indoor and outdoor areas form a first path for gas flow, and other doors and windows on the first path are third doors and windows, and the steps of the method include:
[0014] When the gas concentration in the kitchen area is detected to be excessive, obtaining wind direction information of the first door and window and the second door and window;
[0015] Determining a functional object of the first door and window according to the wind direction information, wherein the functional object of the first door and window includes an air inlet for gas exhaust or an air outlet for gas exhaust;
[0016] When the functional object of the first door and window is an air inlet for coal gas discharge, the first target door and window as the air outlet for coal gas discharge is selected from the second door and window, the first door and window, the first target door and window, and the third door and window on the first path corresponding to the first door and window and the first target door and window are controlled to be opened, and the remaining doors and windows are controlled to be closed;
[0017] When the functional object of the first door and window is an air outlet for gas exhaust, a second target door and window serving as an air inlet for gas exhaust is selected from the second door and window, and at least the first door and window, the second target door and window, and the third door and window on the first path corresponding to the first door and window and the second target door and window are controlled to open.
[0018] The functional object of the first door and window is determined by the wind direction information of the first door and window and the second door and window. After the functional object of the first door and window is determined, multiple doors and windows in the house are linked and controlled to discharge gas with excessive concentration. There is no need to adapt and control an additional ventilation system, only the doors and windows are controlled. Therefore, it has the beneficial effects of improving efficiency and safety, high intelligence and low cost.
[0019] Further, in the present application, the step of determining the functional object of the first door and window according to the wind direction information includes:
[0020] Determine a first airflow direction according to the wind direction information corresponding to the first door and window, wherein the first airflow direction includes flowing from the outdoors into the indoors or flowing from the indoors to the outdoors;
[0021] When the first airflow flows from the outside to the inside, the functional object of the first door and window is determined as an air inlet for gas exhaust;
[0022] When the first airflow flows from indoors to outdoors, the functional object of the first door and window is determined as an air outlet for gas exhaust;
[0023] The step of selecting the first target doors and windows as the gas exhaust outlets from the second doors and windows comprises:
[0024] Determine a second airflow direction according to the wind direction information corresponding to the second door and window, wherein the second airflow direction includes flowing from the outdoors into the indoors or flowing from the indoors to the outdoors;
[0025] Select the second door and window whose second airflow direction is from indoor to outdoor as the first target door and window;
[0026] The step of selecting the second target doors and windows as air inlets for gas exhaust from the second doors and windows comprises:
[0027] Determine a third airflow direction according to the wind direction information corresponding to the second door and window, wherein the third airflow direction includes flowing from the outdoors into the indoors or flowing from the indoors to the outdoors;
[0028] The second door and window whose third airflow direction is from outdoor to indoor is selected as the second target door and window.
[0029] Further, in the present application, the step of selecting the second door and window whose second airflow direction is from indoors to outdoors as the first target door and window includes:
[0030] Select the second door and window whose second airflow direction is from indoors to outdoors and whose corresponding first path is the shortest as the first target door and window;
[0031] The step of selecting the second door and window whose third airflow direction is from outdoor to indoor as the second target door and window comprises:
[0032] The second door and window whose third airflow direction is from outdoor to indoor and whose corresponding first path is the longest is selected as the second target door and window.
[0033] Further, in the present application, the step of controlling the closing of the remaining doors and windows includes:
[0034] Selecting third target doors and windows for assisting air intake from the remaining second target doors and windows except the first target doors and windows;
[0035] The third target door and window and the third door and window between the third target door and window and the first target door and window are controlled to open.
[0036] Further, in the present application, the step of selecting third target doors and windows for auxiliary air intake from the remaining second doors and windows except the first target doors and windows includes:
[0037] Selecting candidate doors and windows whose second airflow direction is from outdoor to indoor from the remaining second doors and windows except the first target doors and windows;
[0038] Obtaining a second path from the candidate door and window to the first target door and window according to the position of the candidate door and window;
[0039] According to the second path, the gas flow direction angle at the convergence point of the first path and the second path is obtained from the first door and window to the first path corresponding to the first target door and window;
[0040] The candidate doors and windows with an acute angle to the gas flow direction are selected as the third target doors and windows.
[0041] Further, in the present application, the step of selecting the second door and window whose second airflow direction is from indoors to outdoors as the first target door and window includes:
[0042] Acquire apartment type information, where the apartment type information includes room type;
[0043] Calculate the priority of each of the second doors and windows according to the room type in the apartment type information;
[0044] The second door and window whose second airflow direction is from indoors to outdoors is selected as the first target door and window according to the priority.
[0045] Furthermore, in the present application, the steps of the method also include:
[0046] Obtaining the gas concentration detected in the kitchen area;
[0047] When the gas concentration is detected in the kitchen area, the number of the first target doors and windows required is calculated.
[0048] In a second aspect, the present application further provides a door and window automatic opening and closing control device, which is used to control the automatic opening and closing of doors and windows of a house when a gas leak occurs in a kitchen area, wherein the kitchen area is provided with at least a first door and window directly connected to the outside, and the first door and window and other second doors and windows in the house directly connected to the inside and the outside form a first path for gas flow, and other doors and windows on the first path are third doors and windows, and the device comprises:
[0049] The first module is used to obtain wind direction information of the first door and window and the second door and window when the gas concentration in the kitchen area exceeds the standard;
[0050] A second module is used to determine a functional object of the first door and window according to the wind direction information, wherein the functional object of the first door and window includes an air inlet for gas exhaust or an air outlet for gas exhaust;
[0051] A third module is used for, when the functional object of the first door and window is an air inlet for coal gas discharge, selecting a first target door and window as an air outlet for coal gas discharge from the second door and window, controlling the first door and window, the first target door and window, and the third door and window on the first path corresponding to the first door and window and the first target door and window to open, and controlling the remaining doors and windows to close;
[0052] The fourth module is used for selecting a second target door and window as an air inlet for gas exhaust from the second door and window when the functional object of the first door and window is an air outlet for gas exhaust, and controlling at least the first door and window, the second target door and window, and the third door and window on the first path corresponding to the first door and window and the second target door and window to open.
[0053] In a third aspect, the present application further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the above method are executed.
[0054] In a fourth aspect, the present application further provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above method are executed.
[0055] From the above, it can be seen that the present application provides a method, device, electronic device and storage medium for automatic opening and closing control of doors and windows. The functional object of the first door and window is determined by the wind direction information of the first door and window and the second door and window. After the functional object of the first door and window is determined, multiple doors and windows in the house are linked and controlled to discharge gas with excessive concentration. There is no need to adapt and control additional ventilation systems, and only the doors and windows are controlled. Therefore, it has the beneficial effects of improving efficiency and safety, high intelligence and low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A flow chart of a method for automatically opening and closing doors and windows provided in this application.
[0057] Figure 2 Schematic diagram of the indoor distribution of doors and windows provided for this application.
[0058] Figure 3 A schematic diagram of the structure of an automatic opening and closing control device for doors and windows provided in this application.
[0059] Figure 4 A schematic diagram of the structure of an electronic device provided in this application.
[0060] In the figure: 210, first module; 220, second module; 230, third module; 240, fourth module; 310, processor; 320, memory. DETAILED DESCRIPTION
[0061] The technical solutions in the present application will be clearly and completely described below in conjunction with the drawings in the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0062] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0063] In the kitchen area of a home, when a gas leak occurs, if the leaked gas cannot be discharged in a timely and effective manner, it may cause a serious safety accident. Existing technologies usually rely on manual switches or simple automation equipment, and are unable to intelligently adjust the status of doors and windows according to specific circumstances.
[0064] For this, please refer to Figure 1 and Figure 2 The present application proposes a method for controlling the automatic opening and closing of doors and windows of a house, which is used to control the automatic opening and closing of doors and windows of a house when a gas leak occurs in a kitchen area. The kitchen area is provided with at least a first door and window directly connected to the outside, and the first door and window and other second doors and windows in the house that directly connect the inside and the outside form a first path for gas flow. The other doors and windows on the first path are third doors and windows. The steps of the method include:
[0065] S110, when it is detected that the gas concentration exceeds the standard in the kitchen area, obtaining wind direction information of the first door and window and the second door and window;
[0066] S120, determining a functional object of the first door and window according to the wind direction information, wherein the functional object of the first door and window includes an air inlet for gas exhaust or an air outlet for gas exhaust;
[0067] S130: When the functional object of the first door and window is an air inlet for gas exhaust, a first target door and window as an air outlet for gas exhaust is selected from the second doors and windows, the first door and window, the first target door and window, and a third door and window on the first path corresponding to the first door and window and the first target door and window are controlled to be opened, and the remaining doors and windows are controlled to be closed;
[0068] S140. When the functional object of the first door and window is an air outlet for gas exhaust, a second target door and window serving as an air inlet for gas exhaust is selected from the second doors and windows, and at least the first door and window, the second target door and window, and the third door and window on the first path corresponding to the first door and window and the second target door and window are controlled to open.
[0069] Among them, the first door and window is located in the kitchen area, directly connected to the outdoors, and can be opened or closed according to a control signal. Usually, there is one first door and window.
[0070] Among them, the second doors and windows are other doors and windows in the house that directly connect the indoor and outdoor areas. In a house, there are usually multiple second doors and windows, and the second doors and windows are usually distributed in various areas such as bedrooms and living rooms.
[0071] Among them, the third door and window is located on the first path, and other doors and windows are controlled to open and close to form an effective ventilation path. The first path refers to the channel between the first door and window and the second door and window that allows gas to flow. When there are multiple second doors and windows, there are multiple corresponding first paths.
[0072] The wind direction information can be obtained by setting a wind sensor, which can detect not only the wind direction information but also the wind force.
[0073] Among them, the first door and window, the second door and window, and the third door and window are all equipped with an automatic opening and closing system. The automatic opening and closing system may specifically include a driving device and a control device. The control device controls the action of the driving device through signal triggering, and the driving device realizes automatic opening and closing by connecting to the door and window structure. The automatic opening and closing system on the doors and windows belongs to the existing conventional technology and will not be elaborated here.
[0074] The core difference between the present application and the prior art is that the solution of the present application proposes to determine the functional object of the first door and window according to wind direction information, that is, to determine the first door and window as an air inlet or an air outlet for gas exhaust according to the wind direction information, and to execute different control strategies according to different wind direction information to ensure that the leaked gas can be discharged to the outside in the shortest time, thereby ensuring safety.
[0075] Among them, in most of the existing technologies, the corresponding doors and windows are usually directly controlled to open after the gas exceeds the standard, without considering the influence of the actual wind direction information on the outgoing gas. In the Chinese invention patent application with publication number CN107461107A, the solution proposed takes into account the influence of different wind directions on gas discharge. However, in its technical solution, it is necessary to link control with the ventilation system, and it is clearly recorded that if the actual comprehensive wind direction is in the negative direction of the vector, the doors and windows whose wind direction of the sub-airflow is consistent with the negative direction of the vector are closed first, and then the ventilation system is turned on.
[0076] Since the prior art adopts a linkage method with the ventilation system, it only considers the case where the doors and windows in the kitchen that are directly connected to the outside are used as air outlets, but does not consider the case where they are used as air inlets. The solution of the present application is to determine whether the first door and window is used as an air inlet or an air outlet for gas exhaust based on the wind direction information of the first door and window and the second door and window. Without the need for linkage control of an additional ventilation system, the gas exhaust scheme is selected based on the actual wind direction information. While ensuring efficient gas exhaust, it has the advantages of low cost and high safety.
[0077] For details, please refer to Figure 2 , Figure 2A schematic diagram of the indoor layout of a house, wherein the first door and window is A, and the second doors and windows are B, C, D, and E, that is, the first path at this time includes AB, AC, AD, and AE, and the third doors and windows are F, G, and H. When the overall wind direction information is blowing from north to south, that is, the wind direction information detected on the first door and window and the second door and window are all blowing from north to south, wherein, for the second door and window C, it may not detect specific wind direction information, or the detected information is very weak. At this time, the wind direction information on the second door and window C can be deduced from the wind direction information detected on the other third door and window and the first door and window. Since the wind direction information is blowing from north to south Blow, it can be determined that the functional object of the first door and window A is the air inlet for gas exhaust. After determining the functional object of the first door and window A, it is necessary to screen out the first target door and window as the air outlet for gas exhaust from the second doors and windows B, C, D, and E. Assuming that the second doors and windows B and C are taken as the first target doors and windows for gas exhaust, the corresponding first paths are AB and AC, the third door and window on the first path AB is H, and the third door and window on the first path AC is H, that is, at this time, the first door and window A, the first target doors and windows B, C, and the third door and window H will be controlled to open, and the second doors and windows D, E, and the third doors and windows F, G will be controlled to close.
[0078] Under the above control strategy, the gas leaked in the kitchen is discharged outdoors along the first path of AB and AC under the action of wind blowing from north to south, thereby achieving the effect of efficiently discharging the gas and ensuring safety.
[0079] The functional object of the first door and window is determined by the wind direction information of the first door and window and the second door and window. After the functional object of the first door and window is determined, multiple doors and windows in the house are linked and controlled to discharge gas with excessive concentration. There is no need to adapt and control an additional ventilation system, only the doors and windows are controlled. Therefore, it has the beneficial effects of improving efficiency and safety, high intelligence and low cost.
[0080] It is worth noting that in the scheme of the present application, when the functional object of the first door and window is to serve as an air inlet for gas exhaust, the first door and window, the first target door and window, and the third door and window on the first path corresponding to the first door and window and the first target door and window are controlled to be opened, and the remaining doors and windows are controlled to be closed. This is because when the first door and window serves as an air inlet, fresh air from outdoor will enter the room through the first door and window, and the gas will diffuse into the room, that is, the gas may diffuse to other areas of the room with the wind. By closing other doors and windows, the diffusion range of the gas can be limited, so that it is concentrated in a specific area and then discharged along the specific first path, thereby reducing the range of indoor gas exhaust.
[0081] Specifically, the step of determining the functional object of the first door and window according to the wind direction information includes:
[0082] Determine a first airflow direction according to wind direction information corresponding to the first door and window, where the first airflow direction includes flowing from the outdoors into the indoors or from the indoors out of the outdoors;
[0083] When the first airflow flows from the outside to the inside, the functional object of the first door and window is determined as an air inlet for gas exhaust;
[0084] When the first airflow flows from indoors to outdoors, the functional object of the first door and window is determined as an air outlet for gas exhaust;
[0085] Among them, when determining the flow direction of the first airflow according to the wind direction information corresponding to the first door and window, it can be specifically determined whether the wind direction is pointing toward the first door and window or away from the first door and window according to the wind direction information. When the wind direction is pointing toward the first door and window, the angle formed by the wind direction and the plane where the first door and window are located is in the range of 0° to 180° (excluding 0° and 180°), and it can be considered that the flow direction of the first airflow is from the outdoors to the indoors. When the wind direction is away from the first door and window, the angle formed by the wind direction and the plane where the first door and window are located is in the range of 0° to 180° (including 0° and 180°), and it can be considered that the flow direction of the first airflow is from the indoors to the outdoors.
[0086] Specifically, the step of selecting the first target doors and windows as the air outlet for gas discharge from the second doors and windows includes:
[0087] Determine the flow direction of the second airflow according to the wind direction information corresponding to the second door and window, where the flow direction of the second airflow includes flowing from the outdoors into the indoors or flowing from the indoors to the outdoors;
[0088] Select a second door and window with a second airflow direction flowing from indoors to outdoors as the first target door and window;
[0089] When determining the flow direction of the second airflow according to the wind direction information corresponding to the second door and window, it can be specifically determined whether the wind direction is pointing toward the second door and window or away from the second door and window according to the wind direction information. When the wind direction is pointing toward the second door and window, the angle formed by the wind direction and the plane where the second door and window are located is in the range of 0° to 180° (excluding 0° and 180°), and it can be considered that the flow direction of the second airflow is from outdoor to indoor. When the wind direction is away from the second door and window, the angle formed by the wind direction and the plane where the second door and window are located is in the range of 0° to 180° (including 0° and 180°), and it can be considered that the flow direction of the second airflow is from indoor to outdoor.
[0090] The step of selecting the second target doors and windows as the air inlet for gas exhaust from the second doors and windows comprises:
[0091] Determine a third airflow direction according to the wind direction information corresponding to the second door and window, where the third airflow direction includes flowing from the outdoors into the indoors or flowing from the indoors to the outdoors;
[0092] The second door and window whose third airflow direction is from outdoor to indoor is selected as the second target door and window.
[0093] When determining the flow direction of the third airflow according to the wind direction information corresponding to the second door and window, it can be specifically determined whether the wind direction is pointing toward the second door and window or away from the second door and window according to the wind direction information. When the wind direction is pointing toward the second door and window, the angle formed by the wind direction and the plane where the second door and window are located is in the range of 0° to 180° (excluding 0° and 180°), and it can be considered that the flow direction of the third airflow is from outdoor to indoor. When the wind direction is away from the second door and window, the angle formed by the wind direction and the plane where the second door and window are located is in the range of 0° to 180° (including 0° and 180°), and it can be considered that the flow direction of the third airflow is from indoor to outdoor.
[0094] It is worth noting that, depending on the specific environment of the house, such as the influence of the surrounding building environment, the actual wind force on doors and windows in different directions may not be the same, that is, doors and windows in different directions may be affected by wind forces from different directions. Figure 2 For example, the second door and window B may be affected by wind blowing from east to west, and the second door and window D may be affected by wind blowing from west to east. When the first door and window A is used as the gas outlet, it is necessary to select the gas inlet from the second door and window. At this time, the second door and window B is affected by wind blowing from east to west, and the second door and window D is affected by wind blowing from west to east. At this time, the specific wind speed can be obtained, and the one with a large wind speed is selected as the gas inlet. For example, the wind speed of the second door and window B is 2m / s, and the wind speed of the second door and window D is 5m / s. At this time, the second door and window D is selected as the gas inlet. At this time, the corresponding first path is AD, and the third door and window are H and G, that is, the first door and window A, the second door and window D, the third door and window H, and the third door and window G are controlled to be opened.
[0095] Preferably, in order to avoid obstruction of the airflow on the AD path after the second door and window B is opened, the second door and window B can be closed.
[0096] That is, when there are multiple second doors and windows serving as the second target doors and windows, it is determined whether there is any obstruction between them based on the wind direction information of the second target doors and windows. If there is an obstruction, the doors and windows with a large wind speed are selected as the air inlet for the final gas discharge based on the wind speed, and then the second target doors and windows that cause the obstruction are controlled to be closed.
[0097] Further, in some embodiments, the step of selecting a second door or window whose second airflow direction is from indoors to outdoors as the first target door or window includes:
[0098] Select the second door and window whose second airflow direction is from indoor to outdoor and whose corresponding first path is the shortest as the first target door and window;
[0099] The step of selecting a second door or window in which the third airflow direction flows from the outside to the inside as the second target door or window comprises:
[0100] The second door and window whose third airflow direction is from outdoor to indoor and whose corresponding first path is the longest is selected as the second target door and window.
[0101] In the event of a gas leak, by reasonably selecting the settings of the air inlet and outlet, it can be ensured that the gas is discharged outdoors efficiently and safely. Specifically, the second door and window whose second airflow direction is from indoors to outdoors and corresponds to the shortest first path is selected as the first target door and window. By making the first path as short as possible, the gas can be exhausted quickly. The second door and window with the shortest first path is selected as the first target door and window to ensure that the gas can be quickly discharged outdoors through the shortest first path, thereby reducing the time the gas stays indoors and improving the exhaust efficiency.
[0102] Moreover, through the shortest path, the gas can be discharged outdoors at the fastest speed, quickly reducing the indoor gas concentration and reducing the risk of explosion or poisoning.
[0103] In addition, the short path means less air flow resistance and better exhaust effect, ensuring that the gas can be discharged smoothly.
[0104] The second doors and windows whose direction of the third airflow flows from the outdoors to the indoors and whose corresponding first path is the longest are selected as the second target doors and windows. The purpose is to fully diffuse the fresh air through the longest first path. The second doors and windows with the longest first path are selected as the second target doors and windows to ensure that the fresh air can fully flow through every corner of the room, push the gas to move to the outlet, and form effective air convection.
[0105] Introducing fresh air through the longest path can ensure full indoor air flow, avoid dead corners, and ensure that gas does not accumulate in certain areas
[0106] Selecting the second door and window corresponding to the shortest first path as the first target door and window can enable the gas to be quickly discharged through the short path, reduce the residence time indoors, reduce the indoor gas concentration, and reduce safety hazards.
[0107] Selecting the second door and window corresponding to the longest first path as the second target door and window can introduce fresh air through the long path, ensure effective air convection in the entire indoor space, push the gas to flow toward the outlet, avoid gas stagnation in certain areas, and improve the comprehensiveness and effectiveness of exhaust.
[0108] The core purpose of the above settings is to ensure that the gas can be discharged outdoors quickly, efficiently and safely by reasonably designing the airflow path, and at the same time ensure the indoor air quality by forming effective air convection by introducing fresh air. This design can minimize the risks brought by gas leakage and improve the safety of the indoor environment.
[0109] Further, in some of the embodiments, the step of controlling the remaining doors and windows to close includes:
[0110] Selecting third target doors and windows for auxiliary air intake from the remaining second doors and windows except the first target doors and windows;
[0111] Control the third target door and window and the third door and window between the third target door and window and the first target door and window to open.
[0112] Specifically, the step of selecting the third target doors and windows for auxiliary air intake from the remaining second doors and windows except the first target doors and windows includes:
[0113] Selecting candidate doors and windows whose second airflow direction is from outdoor to indoor from the remaining second doors and windows except the first target doors and windows;
[0114] Obtaining a second path from the candidate door and window to the first target door and window according to the position of the candidate door and window;
[0115] According to the second path, the gas flow direction angle at the convergence point of the first path and the second path is obtained from the first path corresponding to the first door and window to the first target door and window;
[0116] The candidate doors and windows with acute angles to the gas flow direction are selected as the third target doors and windows.
[0117] In some of the above-mentioned embodiments, the present application proposes that after screening out the first target doors and windows as the gas outlet, the doors and windows corresponding to the first path are controlled to be opened, and then the remaining doors and windows are controlled to be closed, in order to prevent the gas from spreading to other places in the room. On this basis, the present application further proposes that after determining the gas outlet and the gas inlet, the alternative doors and windows with the second airflow direction flowing from the outdoor to the indoor are selected, because these doors and windows can introduce fresh air and assist in air intake. After obtaining the alternative doors and windows, the second path from each alternative door and window to the first target door and window is calculated, and then the gas flow direction angle between the first path and the second path at the convergence point is obtained, and the alternative doors and windows with an acute gas flow direction angle are selected as the third doors and windows, and then the third doors and windows are controlled to be opened.
[0118] Among them, when obtaining the gas flow direction angle between the first path and the second path at the convergence point, the key nodes on the first path and the second path can be obtained through the room layout. The key node is usually the position of the third door and window. In some specific embodiments, for the first path, the position of the third door and window closest to the first target door and window on the first path is the key node. For the second path, the position of the third door and window closest to the first target door and window on the second path is the key node. The gas flow direction angle is calculated through the key node and the position of the first target door and window.
[0119] by Figure 2 As shown, the first door and window A serves as the air inlet for gas exhaust, and the second door and window C serves as the air outlet for gas exhaust. After the first door and window A, the second door and window C and the third door and window H are controlled to be opened, the remaining doors and windows are controlled to be closed. On this basis, the second gas flow direction of the second door and window E is from outdoor to indoor. The second door and window E is taken as an alternative door and window, and the second path EC is obtained. At this time, the first path is AC. Specifically, the first path is actually AHC, and the second path is actually EFC. At this time, the key node of the first path is H, and the key node of the second path is F. When calculating the gas flow direction angle between the first path and the second path, it can be calculated by HC and FC.
[0120] By screening out additional auxiliary air inlets, namely the third target doors and windows, more fresh air can be introduced, the air intake volume can be increased, and air convection can be enhanced. By selecting alternative doors and windows with acute angles in the direction of gas flow as the third target doors and windows, the airflow can be combined more smoothly at the confluence point, reducing the conflict and turbulence between the airflows, improving the efficiency and effect of exhaust, ensuring the smoothness and efficiency of the airflow, and effectively improving the safety and ventilation effect of the indoor environment.
[0121] Further screening of third-target doors and windows for auxiliary air intake can optimize the air flow path, increase the air intake, and ensure that the gas can be discharged outdoors quickly and efficiently
[0122] Further, in some embodiments, the step of selecting a second door or window whose second airflow direction is from indoors to outdoors as the first target door or window includes:
[0123] Get apartment information, including room types;
[0124] Calculate the priority of each second door and window according to the room type in the apartment information;
[0125] According to the priority, the second door and window with the second airflow flowing direction from indoors to outdoors is selected as the first target door and window.
[0126] Among them, room types usually include bedroom, living room, dining room, bathroom, study, storage room, etc.
[0127] Calculating the priority of each second door and window according to the room type specifically refers to setting different priorities for the second doors and windows corresponding to each room type, thereby determining which second doors and windows should be preferentially selected as the first target doors and windows.
[0128] Among them, the priority can be set in advance. In some specific embodiments, the bedroom has the lowest priority because it is a room used for rest and should not be used as the main exhaust path.
[0129] Furthermore, the priority can be adjusted according to time. The activities of users in different rooms vary in different time periods, so the priority of doors and windows can be adjusted according to the time period.
[0130] The details are as follows:
[0131] Define time periods: Divide the day into different time periods, such as morning, noon, afternoon, evening, and night.
[0132] Adjust priority: adjust the door and window priorities according to the rooms where users are active at different time periods. For example:
[0133] Noon (12:00 - 14:00): Living room and living room have the lowest priority because users usually take a lunch break in these rooms.
[0134] Nighttime (22:00 - 6:00): Bedrooms have the lowest priority because users are usually resting.
[0135] In addition, the priority of doors and windows can be dynamically adjusted by detecting the activities of people indoors.
[0136] Specifically, sensors are used to detect whether there are human activities in the room, and the priority of doors and windows is dynamically adjusted according to the human activities. The priority of the second doors and windows corresponding to the rooms with human activities is lowered to reduce the impact of gas emissions on people. The priority of the second doors and windows corresponding to the rooms without human activities is increased to give priority to these second doors and windows as the first target doors and windows.
[0137] It is worth noting that after a gas leak occurs, a warning module, such as a warning light or a buzzer, can be installed on each door and window, which can issue a corresponding warning message after a gas leak occurs. In addition, the warning message can also be sent to a designated smart terminal, which can be a special alarm or a user's smart phone.
[0138] Furthermore, in some embodiments, the method further comprises:
[0139] Get the gas concentration detected in the kitchen area;
[0140] When the gas concentration is detected in the kitchen area, the number of first target doors and windows required is calculated.
[0141] Among them, the gas concentration can be monitored in real time by a gas sensor installed in the kitchen area, and according to the detected gas concentration, it is calculated how many first target doors and windows need to be opened to effectively exhaust the gas in the room.
[0142] The corresponding relationship between the gas concentration and the required number of first target doors and windows may be set in advance, or may be calculated in real time according to wind direction information and wind speed.
[0143] Specifically, the change of gas concentration within a duration may be monitored. If the gas concentration continues to increase, it means that the current first target number of doors and windows cannot meet the gas exhaust demand, and the number of first target doors and windows needs to be increased.
[0144] This application is beneficial to the control of energy consumption by calculating the number of first-target doors and windows required, and reducing unnecessary energy consumption, because opening too many unnecessary first-target doors and windows will lead to unnecessary energy consumption. For example, in winter or summer, opening too many doors and windows will increase the workload of indoor temperature control systems, such as air conditioning or heating, resulting in energy waste. In addition, controlling unnecessary door and window movements also consumes a certain amount of energy, and also causes wear and tear on the doors and windows themselves.
[0145] Second, refer to Figure 3 The present application also provides a door and window automatic opening and closing control device, which is used to control the automatic opening and closing of the doors and windows of a house when a gas leak occurs in a kitchen area. The kitchen area is at least provided with a first door and window directly connected to the outside, and the first door and window and other second doors and windows in the house that directly connect the indoor and outdoor areas form a first path for gas flow. The other doors and windows on the first path are third doors and windows. The device includes:
[0146] The first module 210 is used to obtain wind direction information of the first door and window and the second door and window when the gas concentration exceeds the standard in the kitchen area;
[0147] The second module 220 is used to determine the functional object of the first door and window according to the wind direction information, and the functional object of the first door and window includes an air inlet for gas exhaust or an air outlet for gas exhaust;
[0148] The third module 230 is used for, when the functional object of the first door and window is an air inlet for gas discharge, selecting a first target door and window as an air outlet for gas discharge from the second doors and windows, controlling the first door and window, the first target door and window, and the third door and window on the first path corresponding to the first door and window and the first target door and window to open, and controlling the remaining doors and windows to close;
[0149] The fourth module 240 is used to select a second target door and window that serves as an air inlet for gas exhaust from the second door and window when the functional object of the first door and window is an air outlet for gas exhaust, and to at least control the opening of the first door and window, the second target door and window, and the third door and window on the first path corresponding to the first door and window and the second target door and window.
[0150] By setting up a main controller to connect with the sub-controllers of multiple sub-windows at different positions in the room, when the gas detector on the sub-window detects the first information that meets the preset automatic opening and closing conditions, the sub-controller will send a first instruction to the main controller. After receiving the first instruction, the main controller will obtain the wind information detected by the wind detectors corresponding to other sub-windows, and then control the sub-window corresponding to the first information to open and close according to the first instruction, and then control the opening and closing of other sub-windows according to the wind information and the corresponding position information. That is, compared with the prior art, the solution of the present application, in addition to controlling the opening and closing of the sub-window corresponding to the first information, will also control other sub-windows according to the wind information and the position information of the corresponding sub-window in the room. Therefore, it has the beneficial effects of improving efficiency and safety and having a high degree of intelligence.
[0151] In addition, in some preferred embodiments, a door and window automatic opening and closing control device proposed in the present application can perform any step in the above method.
[0152] Thirdly, refer to Figure 3 The present application also provides an electronic device, including a processor 310 and a memory 320, wherein the memory 320 stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the above method are executed.
[0153] Through the above technical solution, the processor 310 and the memory 320 are interconnected and communicate with each other through a communication bus and / or other forms of connection mechanisms (not shown), and the memory 320 stores computer-readable instructions executable by the processor 310. When the electronic device is running, the processor 310 executes the computer-readable instructions to execute the method in any optional implementation of the above embodiment to achieve the following functions: when the gas concentration exceeds the standard in the kitchen area, obtain the wind direction information of the first door and window and the second door and window; determine the functional object of the first door and window according to the wind direction information, and the functional object of the first door and window includes the function of the first door and window as the gas exhaust an air inlet or an air outlet for gas discharge; when the functional object of the first door and window is an air inlet for gas discharge, the first target door and window as the air outlet for gas discharge is selected from the second door and window, and the first door and window, the first target door and window, and the third door and window on the first path corresponding to the first door and window and the first target door and window are controlled to open, and the remaining doors and windows are controlled to close; when the functional object of the first door and window is an air outlet for gas discharge, the second target door and window as the air inlet for gas discharge is selected from the second door and window, and at least the first door and window, the second target door and window, and the third door and window on the first path corresponding to the first door and window and the second target door and window are controlled to open.
[0154] In a fourth aspect, the present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method are executed.
[0155] Through the above technical solution, when the computer program is executed by the processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions: when it is detected that the gas concentration exceeds the standard in the kitchen area, the wind direction information of the first door and window and the second door and window are obtained; the functional object of the first door and window is determined according to the wind direction information, and the functional object of the first door and window includes an air inlet for gas discharge or an air outlet for gas discharge; when the functional object of the first door and window is an air inlet for gas discharge, the first target door and window as the air outlet for gas discharge is selected from the second door and window, and the first door and window, the first target door and window, and the third door and window on the first path corresponding to the first door and window and the first target door and window are controlled to open, and the remaining doors and windows are controlled to close; when the functional object of the first door and window is an air outlet for gas discharge, the second target door and window as the air inlet for gas discharge is selected from the second door and window, and at least the first door and window, the second target door and window, and the third door and window on the first path corresponding to the first door and window and the second target door and window are controlled to open.
[0156] Among them, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0157] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0158] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0159] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0160] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for controlling automatic opening and closing of doors and windows, for controlling automatic opening and closing of doors and windows of a house when a gas leak occurs in a kitchen area, wherein the kitchen area is provided with at least a first door and window directly connected to the outside, the first door and window and other second doors and windows in the house directly connected to the inside and the outside form a first path for gas flow, and other doors and windows on the first path are third doors and windows, It is characterized in that The steps of the method include: When the gas concentration in the kitchen area is detected to be excessive, obtaining wind direction information of the first door and window and the second door and window; Determining a functional object of the first door and window according to the wind direction information, wherein the functional object of the first door and window includes an air inlet for gas exhaust or an air outlet for gas exhaust; When the functional object of the first door and window is an air inlet for coal gas discharge, the first target door and window as the air outlet for coal gas discharge is selected from the second door and window, the first door and window, the first target door and window, and the third door and window on the first path corresponding to the first door and window and the first target door and window are controlled to be opened, and the remaining doors and windows are controlled to be closed; When the functional object of the first door and window is an air outlet for gas exhaust, a second target door and window serving as an air inlet for gas exhaust is selected from the second door and window, and at least the first door and window, the second target door and window, and the third door and window on the first path corresponding to the first door and window and the second target door and window are controlled to open.
2. A door and window automatic opening and closing control method according to claim 1, It is characterized in that The step of determining the functional object of the first door and window according to the wind direction information comprises: Determine a first airflow direction according to the wind direction information corresponding to the first door and window, wherein the first airflow direction includes flowing from the outdoors into the indoors or flowing from the indoors to the outdoors; When the first airflow flows from the outside to the inside, the functional object of the first door and window is determined as an air inlet for gas exhaust; When the first airflow flows from indoors to outdoors, the functional object of the first door and window is determined as an air outlet for gas exhaust; The step of selecting the first target doors and windows as the gas exhaust outlets from the second doors and windows comprises: Determine a second airflow direction according to the wind direction information corresponding to the second door and window, wherein the second airflow direction includes flowing from the outdoors into the indoors or flowing from the indoors to the outdoors; Select the second door and window whose second airflow direction is from indoor to outdoor as the first target door and window; The step of selecting the second target doors and windows as air inlets for gas exhaust from the second doors and windows comprises: Determine a third airflow direction according to the wind direction information corresponding to the second door and window, wherein the third airflow direction includes flowing from the outdoors into the indoors or flowing from the indoors to the outdoors; The second door and window whose third airflow direction is from outdoor to indoor is selected as the second target door and window.
3. A door and window automatic opening and closing control method according to claim 2, It is characterized in that The step of selecting the second door and window whose second airflow direction is from indoor to outdoor as the first target door and window comprises: Select the second door and window whose second airflow direction is from indoors to outdoors and whose corresponding first path is the shortest as the first target door and window; The step of selecting the second door and window whose third airflow direction is from outdoor to indoor as the second target door and window comprises: The second door and window whose third airflow direction is from outdoor to indoor and whose corresponding first path is the longest is selected as the second target door and window.
4. A door and window automatic opening and closing control method according to claim 2, It is characterized in that The step of controlling the closing of the remaining doors and windows then includes: Selecting third target doors and windows for assisting air intake from the remaining second target doors and windows except the first target doors and windows; The third target door and window and the third door and window between the third target door and window and the first target door and window are controlled to open.
5. A door and window automatic opening and closing control method according to claim 4, It is characterized in that The step of selecting the third target doors and windows for auxiliary air intake from the remaining second doors and windows except the first target doors and windows comprises: Selecting candidate doors and windows whose second airflow direction is from outdoor to indoor from the remaining second doors and windows except the first target doors and windows; Obtaining a second path from the candidate door and window to the first target door and window according to the position of the candidate door and window; According to the second path, the gas flow direction angle at the convergence point of the first path and the second path is obtained from the first door and window to the first path corresponding to the first target door and window; The candidate doors and windows with an acute angle to the gas flow direction are selected as the third target doors and windows.
6. A door and window automatic opening and closing control method according to claim 2, It is characterized in that The step of selecting the second door and window whose second airflow direction is from indoor to outdoor as the first target door and window comprises: Acquire apartment type information, where the apartment type information includes room type; Calculate the priority of each of the second doors and windows according to the room type in the apartment type information; The second door and window whose second airflow direction is from indoors to outdoors is selected as the first target door and window according to the priority.
7. A door and window automatic opening and closing control method according to claim 6, It is characterized in that The method also includes the steps of: Obtaining the gas concentration detected in the kitchen area; When the gas concentration is detected in the kitchen area, the number of the first target doors and windows required is calculated.
8. A door and window automatic opening and closing control device, used for controlling the automatic opening and closing of doors and windows of a house when a gas leak occurs in a kitchen area, wherein the kitchen area is provided with at least a first door and window directly connected to the outside, the first door and window and other second doors and windows in the house directly connected to the inside and the outside form a first path for gas flow, and the other doors and windows on the first path are third doors and windows, It is characterized in that The device includes: The first module is used to obtain wind direction information of the first door and window and the second door and window when the gas concentration in the kitchen area exceeds the standard; A second module is used to determine a functional object of the first door and window according to the wind direction information, wherein the functional object of the first door and window includes an air inlet for gas exhaust or an air outlet for gas exhaust; A third module is used for, when the functional object of the first door and window is an air inlet for coal gas discharge, selecting a first target door and window as an air outlet for coal gas discharge from the second door and window, controlling the first door and window, the first target door and window, and the third door and window on the first path corresponding to the first door and window and the first target door and window to open, and controlling the remaining doors and windows to close; The fourth module is used for selecting a second target door and window as an air inlet for gas exhaust from the second door and window when the functional object of the first door and window is an air outlet for gas exhaust, and controlling at least the first door and window, the second target door and window, and the third door and window on the first path corresponding to the first door and window and the second target door and window to open.
9. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 7 are executed.
10. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are executed.
