Door and window state detection method and device, server and storage medium
阅读说明:本技术 门窗状态检测方法、装置、服务器及存储介质 (Door and window state detection method and device, server and storage medium ) 是由 徐家辉 于 2019-11-14 设计创作,主要内容包括:本发明提供的一种门窗状态检测方法、装置、服务器及存储介质,涉及空调器技术领域,其中门窗状态检测方法及装置应用于服务器,服务器与空调器和终端均通信连接,空调器安装有毫米波传感器,门窗状态检测方法包括:接收空调器发送的毫米波数据;根据毫米波数据和预先测量的被测房间的特征信息,确定出被测房间的当前漏空面积;基于当前漏空面积,判断被测房间的门窗是否处于打开状态;当被测房间的门窗处于打开状态时,根据当前漏空面积生成提示信息并发送至终端。从而能够及时发现打开的门或窗户,进而保证空调器的调控效果且节约能源,提高了用户体验。(The invention provides a door and window state detection method and device, a server and a storage medium, and relates to the technical field of air conditioners, wherein the door and window state detection method and device are applied to the server, the server is in communication connection with both an air conditioner and a terminal, the air conditioner is provided with a millimeter wave sensor, and the door and window state detection method comprises the following steps: receiving millimeter wave data sent by an air conditioner; determining the current void area of the room to be measured according to the millimeter wave data and the characteristic information of the room to be measured in advance; judging whether doors and windows of the room to be detected are in an open state or not based on the current empty area; when the door and window of the tested room is in an open state, prompt information is generated according to the current leakage area and is sent to the terminal. Therefore, the opened door or window can be found in time, the regulation and control effect of the air conditioner is guaranteed, energy is saved, and user experience is improved.)
1. The door and window state detection method is applied to a server (20), the server (20) is in communication connection with an air conditioner (10) and a terminal (30), the air conditioner (10) is provided with a millimeter wave sensor, and the door and window state detection method comprises the following steps:
receiving millimeter wave data sent by the air conditioner (10), wherein the millimeter wave data is generated according to electromagnetic waves transmitted and received to a room to be tested by the millimeter wave sensor;
determining the current void area of the room to be measured according to the millimeter wave data and the characteristic information of the room to be measured in advance;
judging whether doors and windows of the room to be detected are in an open state or not based on the current empty leaking area;
and when the door and window of the tested room is in an open state, generating prompt information according to the current leakage area and sending the prompt information to the terminal (30).
2. The door and window state detection method according to claim 1, wherein the characteristic information includes a size and a contour of the room under test;
the step of determining the current leakage area of the room to be tested according to the millimeter wave data and the pre-stored characteristic information of the room to be tested comprises the following steps:
analyzing the millimeter wave data to obtain the distance and the angle of each target in the room to be measured relative to the air conditioner (10);
positioning each empty vertex of the room to be measured according to the distance and the angle of each target relative to the air conditioner (10) and the size and the outline of the room to be measured;
and calculating the current void area of the room to be detected according to each void vertex.
3. The door and window state detection method according to claim 1, wherein the characteristic information includes a minimum void area of the room under test;
the step of judging whether the door and window of the tested room is in an open state or not based on the current leakage area comprises the following steps:
comparing the current leakage area with the minimum leakage area;
when the current void leakage area is smaller than or equal to the minimum void leakage area, judging that a door and a window of the tested room are in a closed state;
and when the current void area is larger than the minimum void area, judging that the door and the window of the tested room are in an open state.
4. The door and window state detection method according to claim 3, wherein the characteristic information includes a maximum void area of the room to be detected;
the step of generating prompt information according to the current void area and sending the prompt information to the terminal (30) comprises the following steps:
calculating the difference value between the current leakage area and the minimum leakage area to obtain the current adjustable leakage area;
acquiring the maximum adjustable leakage area of the tested room, wherein the maximum adjustable leakage area is the difference value between the maximum leakage area and the minimum leakage area;
and comparing the current adjustable void area with the maximum adjustable void area, generating prompt information and sending the prompt information to the terminal (30).
5. The door and window state detection method according to claim 4, wherein the step of comparing the current adjustable void area with the maximum adjustable void area, generating prompt information and sending the prompt information to the terminal (30) comprises:
calculating the ratio of the current adjustable leakage area to the maximum adjustable leakage area to obtain a first ratio;
when the first ratio is smaller than or equal to a first preset threshold value, generating first prompt information and sending the first prompt information to the terminal (30), wherein the first prompt information is used for prompting that the door and window are not tightly closed;
when the first ratio is larger than the first preset threshold and smaller than or equal to a second preset threshold, second prompt information is generated and sent to the terminal (30), and the first prompt information is used for prompting that the door and the window are forgotten to be closed;
when the first ratio is larger than the second preset threshold and smaller than or equal to a third preset threshold, third prompt information is generated and sent to the terminal (30), and the third prompt information is used for prompting that the door and window is opened greatly;
and when the first ratio is larger than the third preset threshold, generating fourth prompt information and sending the fourth prompt information to the terminal (30), wherein the fourth prompt information is used for prompting detection abnormity.
6. The door and window state detection method according to claim 1, wherein the characteristic information of the room to be detected comprises a size and an outline of the room to be detected, a minimum leakage area and a maximum leakage area; the measuring process of the characteristic information comprises the following steps:
controlling a millimeter wave sensor installed in the air conditioner (10) to detect the room to be detected, and obtaining an initial imaging of the room to be detected, wherein the initial imaging comprises the size and the outline of the room to be detected;
sending closing prompt information to the terminal (30), wherein the closing prompt information is used for prompting to close all doors and windows of the tested room;
when all doors and windows of the room to be tested are in a closed state, perfecting the initial imaging through the millimeter wave sensor, and determining the minimum leakage area of the room to be tested;
sending opening prompt information to the terminal (30), wherein the opening prompt information is used for prompting the opening of all doors and windows of the room to be tested;
and when all doors and windows of the room to be detected are in an open state, perfecting the initial imaging again through the millimeter wave sensor, and determining the maximum leakage area of the room to be detected.
7. The door and window state detection method according to claim 1, wherein before the step of receiving millimeter wave data transmitted by the air conditioner (10), the door and window state detection method further comprises:
and controlling a millimeter wave sensor installed in the air conditioner (10) to emit electromagnetic waves at preset time intervals, and detecting the room to be detected through the emitted electromagnetic waves.
8. The door and window state detection method according to claim 1, wherein before the step of receiving millimeter wave data transmitted by the air conditioner (10), the door and window state detection method further comprises:
when receiving a detection request sent by the terminal (30), controlling a millimeter wave sensor installed in the air conditioner (10) to emit electromagnetic waves, and detecting the room to be detected through the emitted electromagnetic waves.
9. The utility model provides a door and window state detection device, its characterized in that is applied to server (20), server (20) and air conditioner (10) and the equal communication connection of terminal (30), millimeter wave sensor is installed in air conditioner (10), door and window state detection device (100) include:
the receiving module (110) is used for receiving millimeter wave data sent by the air conditioner (10), wherein the millimeter wave data is generated according to electromagnetic waves transmitted and received to a room to be tested by the millimeter wave sensor;
the determining module (120) is used for determining the current leakage area of the room to be measured according to the millimeter wave data and the characteristic information of the room to be measured in advance;
the judging module (130) is used for judging whether doors and windows of the tested room are in an open state or not based on the current empty area;
and the sending module (140) is used for generating prompt information according to the current empty leakage area and sending the prompt information to the terminal (30) when the door and window of the tested room is in an open state.
10. A server, characterized in that the server (20) is in communication connection with both an air conditioner (10) and a terminal (30), the air conditioner (10) is mounted with a millimeter wave sensor, the air conditioner (10) comprises:
one or more processors (21);
memory (22) for storing one or more programs which, when executed by the one or more processors (21), cause the one or more processors to implement the door and window state detection method according to any one of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor (21), carries out the door and window state detection method according to any one of claims 1 to 8.
Technical Field
The invention relates to the technical field of air conditioners, in particular to a door and window state detection method and device, a server and a storage medium.
Background
In the process of adjusting the indoor temperature by using the air conditioner, the indoor window is generally required to be kept in a closed state, so that the air conditioner can adjust the indoor temperature more quickly, and the energy consumption is low. However, sometimes, when the user opens the air conditioner, the user forgets to close the window or is blocked by the curtain and does not find that the window is not closed or is not completely closed. When a user finds that the cooling effect is not good for inspection or looks again later, much electricity is wasted, and the regulation effect of the air conditioner is influenced.
Disclosure of Invention
The invention solves the problems of poor regulation and control effect and energy waste of the air conditioner due to unclosed or incompletely closed doors and windows.
In order to solve the above problems, the present invention provides a door and window state detection method, which is applied to a server, wherein the server is in communication connection with both an air conditioner and a terminal, the air conditioner is provided with a millimeter wave sensor, and the door and window state detection method comprises: receiving millimeter wave data sent by the air conditioner, wherein the millimeter wave data is generated according to electromagnetic waves transmitted and received to a room to be tested by the millimeter wave sensor; determining the current void area of the room to be measured according to the millimeter wave data and the characteristic information of the room to be measured in advance; judging whether doors and windows of the room to be detected are in an open state or not based on the current empty leaking area; and when the door and window of the tested room is in an open state, generating prompt information according to the current leakage area and sending the prompt information to the terminal.
Compared with the prior art, the door and window state detection method has the following advantages: installing a millimeter wave sensor in the air conditioner, and transmitting and receiving electromagnetic waves to a room to be measured through the millimeter wave sensor to obtain millimeter wave data; and then, determining the current leakage area of the room to be detected based on the millimeter wave data, and generating prompt information and sending the prompt information to the terminal when judging that the door and window of the room to be detected is in an open state according to the current leakage area. That is, this application can be based on whether the door and window in the room of being surveyed is in the open mode by the millimeter wave data detection of the millimeter wave sensor collection of installation in the air conditioner to can in time discover the door or the window of opening, and then guarantee the regulation and control effect and the energy saving of air conditioner, improve user experience.
Further, the characteristic information comprises the size and the outline of the room to be measured; the step of determining the current leakage area of the room to be tested according to the millimeter wave data and the pre-stored characteristic information of the room to be tested comprises the following steps: analyzing the millimeter wave data to obtain the distance and the angle of each target in the room to be tested relative to the air conditioner; positioning each empty leakage vertex of the room to be measured according to the distance and the angle of each target relative to the air conditioner and the size and the outline of the room to be measured; and calculating the current void area of the room to be detected according to each void vertex.
Further, the characteristic information comprises the minimum leakage area of the tested room; the step of judging whether the door and window of the tested room is in an open state or not based on the current leakage area comprises the following steps: comparing the current leakage area with the minimum leakage area; when the current void leakage area is smaller than or equal to the minimum void leakage area, judging that a door and a window of the tested room are in a closed state; and when the current void area is larger than the minimum void area, judging that the door and the window of the tested room are in an open state.
Further, the characteristic information comprises the maximum leakage area of the tested room; the step of generating prompt information according to the current void area and sending the prompt information to the terminal comprises the following steps: calculating the difference value between the current leakage area and the minimum leakage area to obtain the current adjustable leakage area; acquiring the maximum adjustable leakage area of the tested room, wherein the maximum adjustable leakage area is the difference value between the maximum leakage area and the minimum leakage area; and comparing the current adjustable void area with the maximum adjustable void area, generating prompt information and sending the prompt information to the terminal.
Further, the step of comparing the current adjustable void area with the maximum adjustable void area, generating prompt information and sending the prompt information to the terminal includes: calculating the ratio of the current adjustable leakage area to the maximum adjustable leakage area to obtain a first ratio; when the first ratio is smaller than or equal to a first preset threshold value, generating first prompt information and sending the first prompt information to the terminal, wherein the first prompt information is used for prompting that the door and window are not tightly closed; when the first ratio is larger than the first preset threshold and smaller than or equal to a second preset threshold, generating second prompt information and sending the second prompt information to the terminal, wherein the first prompt information is used for prompting that the door and the window are not closed; when the first ratio is larger than the second preset threshold and smaller than or equal to a third preset threshold, generating third prompt information and sending the third prompt information to the terminal, wherein the third prompt information is used for prompting that the door and window is opened greatly; and when the first ratio is larger than the third preset threshold, generating fourth prompt information and sending the fourth prompt information to the terminal, wherein the fourth prompt information is used for prompting detection abnormity.
Further, the characteristic information of the room to be tested comprises the size and the outline of the room to be tested, the minimum leakage area and the maximum leakage area; the measuring process of the characteristic information comprises the following steps: controlling a millimeter wave sensor installed in the air conditioner to detect the room to be detected, and obtaining an initial imaging of the room to be detected, wherein the initial imaging comprises the size and the outline of the room to be detected; sending closing prompt information to the terminal, wherein the closing prompt information is used for prompting to close all doors and windows of the tested room; when all doors and windows of the room to be tested are in a closed state, perfecting the initial imaging through the millimeter wave sensor, and determining the minimum leakage area of the room to be tested; sending opening prompt information to the terminal, wherein the opening prompt information is used for prompting the opening of all doors and windows of the tested room; and when all doors and windows of the room to be detected are in an open state, perfecting the initial imaging again through the millimeter wave sensor, and determining the maximum leakage area of the room to be detected.
Further, before the step of receiving millimeter wave data sent by the air conditioner, the door and window state detection method further includes: and controlling a millimeter wave sensor installed in the air conditioner to emit electromagnetic waves at preset time intervals, and detecting the room to be detected through the emitted electromagnetic waves.
Further, before the step of receiving millimeter wave data sent by the air conditioner, the door and window state detection method further includes: and when a detection request sent by the terminal is received, controlling a millimeter wave sensor installed in the air conditioner to emit electromagnetic waves, and detecting the room to be detected through the emitted electromagnetic waves.
The invention also provides a door and window state detection device, which is applied to a server, wherein the server is in communication connection with both an air conditioner and a terminal, the air conditioner is provided with a millimeter wave sensor, and the door and window state detection device comprises: the receiving module is used for receiving millimeter wave data sent by the air conditioner, wherein the millimeter wave data is generated according to electromagnetic waves which are sent and received to a room to be tested by the millimeter wave sensor; the determining module is used for determining the current void area of the room to be measured according to the millimeter wave data and the characteristic information of the room to be measured in advance; the judging module is used for judging whether doors and windows of the room to be detected are in an open state or not based on the current leakage area; and the sending module is used for generating prompt information according to the current leakage area and sending the prompt information to the terminal when the door and window of the tested room is in an open state.
The invention also provides a server, the server is connected with the air conditioner and the terminal in a communication way, the air conditioner is provided with a millimeter wave sensor, and the air conditioner comprises: one or more processors; a memory for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the above-described door and window state detection method.
The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described door and window state detection method.
Drawings
Fig. 1 is a schematic view of an application scenario of the door and window state detection method provided by the invention.
Fig. 2 is a block diagram of a server according to the present invention.
Fig. 3 is a schematic flow chart of the door and window state detection method provided by the invention.
Fig. 4 is a detection example diagram of the millimeter wave sensor provided by the present invention.
Fig. 5 is a schematic flow chart of a characteristic information measurement process provided by the present invention.
Fig. 6 is a flowchart illustrating the step S120 in the door/window state detecting method shown in fig. 3.
FIG. 7 is a diagram illustrating an exemplary positioning of a leaky vertex provided by the present invention.
Fig. 8 is a flowchart illustrating the step S130 in the door/window state detecting method shown in fig. 3.
Fig. 9 is a flowchart illustrating the step S140 in the door/window state detecting method shown in fig. 3.
Fig. 10 is another schematic flow chart of the door/window state detection method provided by the present invention.
Fig. 11 is another schematic flow chart of the door/window state detection method provided by the present invention.
Fig. 12 is a schematic view of functional modules of the door/window state detection device according to the present invention.
Description of reference numerals:
10-an air conditioner; 20-a server; 30-a terminal; 21-a processor; 22-a memory; 23-a bus; 100-door and window state detection device; 110-a receiving module; 120-a determination module; 130-a judgment module; 140-a sending module; 150-processing module.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Referring to fig. 1, an application scenario diagram of the door and window state detection method provided by the present invention includes an
The
The
The Application program (APP) is installed in the
A millimeter wave sensor is mounted on a panel of the
Referring to fig. 2, which is a block diagram of a
The
The
On the basis of the
and step S110, receiving millimeter wave data sent by the air conditioner, wherein the millimeter wave data is generated according to the electromagnetic waves sent and received by the millimeter wave sensor to the room to be tested.
In the present embodiment, when it is required to detect the door/window state of the room to be detected, the signal transmitting module in the millimeter wave sensor installed in the
Different objects (e.g., walls, glass, air, etc.) in a room reflect electromagnetic waves to different degrees, for example, referring to fig. 4, a wall may emit a large amount of electromagnetic waves transmitted by the millimeter wave sensor, glass of a window may emit a part of the electromagnetic waves transmitted by the millimeter wave sensor, air may emit a small amount of electromagnetic waves transmitted by the millimeter wave sensor, and so on. Therefore, the
And step S120, determining the current void area of the room to be measured according to the millimeter wave data and the characteristic information of the room to be measured in advance.
In this embodiment, the millimeter wave data sent by the
The following describes a measurement process of characteristic information of a room to be measured, where the characteristic information of the room to be measured includes a size and a contour of the room to be measured, a minimum leak area of the room to be measured, and a maximum leak area of the room to be measured, and referring to fig. 5, the measurement process of the characteristic information may include:
and step S210, controlling a millimeter wave sensor installed in the air conditioner to detect the room to be detected, and obtaining an initial imaging of the room to be detected, wherein the initial imaging comprises the size and the outline of the room to be detected.
In this embodiment, when measuring the characteristic information of the room to be measured, first, the millimeter wave sensor installed in the
And step S220, sending closing prompt information to the terminal, wherein the closing prompt information is used for prompting to close all doors and windows of the tested room.
In this embodiment, after obtaining the initial imaging of the room under test, the
And step S230, when all doors and windows of the room to be detected are in a closed state, perfecting initial imaging through the millimeter wave sensor, and determining the minimum leakage area of the room to be detected.
In this embodiment, the
And step S240, sending opening prompt information to the terminal, wherein the opening prompt information is used for prompting to open all doors and windows of the tested room.
In this embodiment, after the
And step S250, when all doors and windows of the room to be detected are in an open state, perfecting the initial imaging again through the millimeter wave sensor, and determining the maximum void area of the room to be detected.
In this embodiment, after the
As an embodiment, referring to fig. 6 on the basis of fig. 3, step S120 may include:
and a substep S1201, analyzing the millimeter wave data to obtain the distance and the angle of each target in the room to be tested relative to the air conditioner.
In the present embodiment, the one-way distance of the target to the millimeter wave sensor, that is, R ═ C Δ t)/2, can be calculated from the time difference of the transmitted and received electromagnetic waves, where R is the one-way distance of the target to the millimeter wave sensor, Δ t is the time difference of the transmitted and received electromagnetic waves, and C is the propagation rate of the electromagnetic wave; if the calculated one-way distance R is significantly larger than the size of the room or the reflected electromagnetic wave is not received, then the angle from the target to the millimeter wave sensor is measured according to the waveform amplitude of the transmitted and received electromagnetic wave, for example, please refer to fig. 7, a spatial rectangular coordinate system O-xyz is established with the millimeter wave sensor as the origin, and the angle from the target to the millimeter wave sensor includes an angle with the x-axis, an angle with the y-axis, and an angle with the z-axis.
And a substep S1202, positioning each void vertex of the tested room according to the distance and the angle of each target relative to the air conditioner and the size and the outline of the tested room.
In this embodiment, after obtaining the distance and angle of each target relative to the air conditioner, each of the leaky vertices of the room to be tested, for example, A, B, C, D four leaky vertices in fig. 7, may be located according to the distance and angle of each target relative to the air conditioner. Meanwhile, the size and the contour of the room to be detected can be combined to judge each positioned leaky hollow vertex and delete the wrong leaky hollow vertex, for example, the leaky hollow vertex is deleted when the size and the contour of the room to be detected are combined to judge that a certain leaky hollow vertex corresponds to the wall of the room to be detected.
And a substep S1203, calculating the current void area of the room to be detected according to each void vertex.
In the present embodiment, after each missing vertex of the room to be tested is located, for example, at point A, B, C, D in fig. 7, the current missing area of the room to be tested is calculated according to each missing vertex, that is, the area of the closed figure formed by each missing vertex, for example, the area S of the quadrangle formed by point A, B, C, D in fig. 7 is calculatedABCDNamely the current leakage area of the room to be tested.
And step S130, judging whether the doors and windows of the detected room are in an open state or not based on the current leakage area.
In this embodiment, after the
and a substep S1301, comparing the current leakage area with the minimum leakage area.
And a substep S1302, when the current leakage area is less than or equal to the minimum leakage area, determining that the door and the window of the tested room are in a closed state.
In this embodiment, the minimum leak area is measured after prompting the user to close all doors and windows of the room to be tested, and therefore, if the current leak area is less than or equal to the minimum leak area, it can be considered that the doors and windows of the room to be tested are in a closed state.
And a substep S1303, when the current void area is larger than the minimum void area, judging that the door and the window of the tested room are in an open state.
In this embodiment, if the current void area is larger than the minimum void area, the door and window of the room to be tested may be considered to be in the open state.
And step S140, when the door and window of the tested room is in an open state, generating prompt information according to the current leakage area and sending the prompt information to the terminal.
In this embodiment, when the
As an embodiment, referring to fig. 9 on the basis of fig. 3, step S140 may include:
and a substep S1401, calculating the difference value between the current leakage area and the minimum leakage area to obtain the current adjustable leakage area.
In this embodiment, the current adjustable miss area is equal to the current miss area minus the minimum miss area.
And a substep S1402, obtaining the maximum adjustable leakage area of the tested room, wherein the maximum adjustable leakage area is the difference value between the maximum leakage area and the minimum leakage area.
In this embodiment, since the minimum miss area is measured after prompting the user to close all the doors and windows of the room to be tested, and the maximum miss area is measured after prompting the user to open all the doors and windows of the room to be tested, the maximum adjustable miss area is equal to a value obtained by subtracting the minimum miss area from the maximum miss area.
And a substep S1403, comparing the current adjustable leakage area with the maximum adjustable leakage area, generating prompt information and sending the prompt information to the terminal.
In this embodiment, after the current adjustable void area and the maximum adjustable void area are obtained, the current adjustable void area and the maximum adjustable void area may be compared, and the user is prompted according to the ratio of the current adjustable void area to the maximum adjustable void area, for example:
if the current adjustable void area is less than 10% of the maximum adjustable void area, prompting a user that a door and a window of a user are not closed tightly;
if the current adjustable void area is 10% < 50% of the maximum adjustable void area, prompting a user that the door and the window of the user are likely to forget to close, and marking with a yellow exclamation mark;
if 50% < the current adjustable void area is equal to 100% of the maximum adjustable void area, prompting a user to check whether a door window is large, timely closing the door window in order to not influence the air conditioning effect, and marking with a red exclamation mark;
if the current adjustable void area is larger than 100% of the maximum adjustable void area, prompting a user to detect that the void area is too large and the function setting is abnormal possibly, and please reset.
As an implementation manner, the manner of comparing the current adjustable void area with the maximum adjustable void area, generating the prompt information, and sending the prompt information to the terminal may include:
firstly, calculating the ratio of the current adjustable void area to the maximum adjustable void area to obtain a first ratio; the first ratio may be equal to a value obtained by dividing the current adjustable void area by the maximum adjustable void area, for example, the first ratio is the current adjustable void area/the maximum adjustable void area.
Then, when the first ratio is smaller than or equal to a first preset threshold value, generating first prompt information and sending the first prompt information to the terminal, wherein the first prompt information is used for prompting that the door and window are not tightly closed; the first preset threshold may be 5% to 15%, for example, 10%; the
When the first ratio is larger than a first preset threshold and smaller than or equal to a second preset threshold, generating second prompt information and sending the second prompt information to the terminal, wherein the first prompt information is used for prompting that the door and the window are not closed; the second preset threshold may be 45% to 55%, e.g., 50%; the
When the first ratio is greater than the second preset threshold and less than or equal to a third preset threshold, generating third prompt information and sending the third prompt information to the terminal, wherein the third prompt information is used for prompting the door and window to be opened greatly; the third preset threshold may be 100%, the
When the first ratio is larger than a third preset threshold value, generating fourth prompt information and sending the fourth prompt information to the terminal, wherein the fourth prompt information is used for prompting detection abnormity; the
In a possible situation, the door/window state detection of the room may be automatically performed after the
and step S101, controlling a millimeter wave sensor installed in the air conditioner to emit electromagnetic waves according to a preset time interval, and detecting the room to be detected through the emitted electromagnetic waves.
In this embodiment, after the
In a possible situation, the user may need to manually trigger the
and step S102, when receiving a detection request sent by the terminal, controlling a millimeter wave sensor installed in the air conditioner to emit electromagnetic waves, and detecting the room to be detected through the emitted electromagnetic waves.
In this embodiment, the detection request may be a room door and window state detection request sent by the user through the application program of the terminal 30, and the detection request may be sent when the user needs to manually trigger a door and window state detection function of the room, for example, the user does not need to turn on the
Compared with the prior art, the embodiment has the following beneficial effects:
firstly, whether doors and windows of a detected room are in an open state or not is detected based on a millimeter wave sensor in the
secondly, the user can detect the door and window state of the room without opening the
In order to perform the corresponding steps in the above embodiments and various possible embodiments, an implementation of the door and window state detecting device is given below. Fig. 12 is a schematic functional block diagram of the door/window
And the receiving
And the determining
Optionally, the characteristic information includes a size and a contour of the room to be measured; the determining
And the judging
Optionally, the characteristic information includes a minimum void area of the room to be tested; the determining
And the sending
Optionally, the characteristic information includes a maximum void area of the room to be tested; the sending
Optionally, the sending module 140 executes a mode of comparing the current adjustable void area with the maximum adjustable void area, generating the prompt message, and sending the prompt message to the terminal, where the mode includes: calculating the ratio of the current adjustable void area to the maximum adjustable void area to obtain a first ratio; when the first ratio is smaller than or equal to a first preset threshold value, generating first prompt information and sending the first prompt information to the terminal, wherein the first prompt information is used for prompting that the door and window are not closed tightly; when the first ratio is larger than a first preset threshold and smaller than or equal to a second preset threshold, generating second prompt information and sending the second prompt information to the terminal, wherein the first prompt information is used for prompting that the door and the window are not closed; when the first ratio is greater than the second preset threshold and less than or equal to a third preset threshold, generating third prompt information and sending the third prompt information to the terminal, wherein the third prompt information is used for prompting the door and window to be opened greatly; and when the first ratio is larger than a third preset threshold value, generating fourth prompt information and sending the fourth prompt information to the terminal, wherein the fourth prompt information is used for prompting detection abnormity.
Optionally, the door/window
Optionally, the
Optionally, the characteristic information of the room to be tested includes the size and the contour of the room to be tested, the minimum leakage area and the maximum leakage area; the
In summary, the door and window state detection method and apparatus, the server and the storage medium provided by the present invention are applied to the server, the server is in communication connection with both the air conditioner and the terminal, the air conditioner is equipped with the millimeter wave sensor, and the door and window state detection method includes: receiving millimeter wave data sent by an air conditioner, wherein the millimeter wave data is generated according to electromagnetic waves transmitted and received to a room to be tested by a millimeter wave sensor; determining the current void area of the room to be measured according to the millimeter wave data and the characteristic information of the room to be measured in advance; judging whether doors and windows of the room to be detected are in an open state or not based on the current empty area; when the door and window of the tested room is in an open state, prompt information is generated according to the current leakage area and is sent to the terminal. That is, this application can be based on whether the door and window in the room of being surveyed is in the open mode by the millimeter wave data detection of millimeter wave sensor collection in the air conditioner to can in time discover the door or the window of opening, and then guarantee the regulation and control effect and the energy saving of air conditioner, improve user experience.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.