An air conditioning control method based on millimeter wave radar and carbon dioxide concentration detection
By combining the dual detection method of millimeter wave radar and carbon dioxide concentration detection in the air conditioner, the construction and traversal of numerical binary trees and two-dimensional arrays is used to solve the air conditioner detection accuracy problem, achieving more accurate air conditioning control, and improving user experience.
Patent Information
- Application Number
- CN202410716277.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-06-04
AI Technical Summary
The existing air conditioner detection device has detection accuracy problems, and may miss inspection or mis-check, causing the air conditioner to turn off on its own when the user is still in the room, bringing users a bad user experience.
Using a dual detection method based on millimeter wave radar and carbon dioxide concentration detection, the carbon dioxide concentration value when the air conditioner is turned off in each use area and no one is active as the reference value, and the change trend of the carbon dioxide concentration value is judged by combining the timer, and the numerical binary tree and binary The construction and traversal of dimensional arrays improve detection accuracy and avoid misjudgment.
It effectively improves the detection accuracy of air conditioning control, avoids missed or mis-checked situations, ensures that the air conditioner is accurately turned off or maintained in operation after the user leaves, and improves the user experience.
Smart Images

Figure CN118532788B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of air-conditioning control, and in particular relates to an air-conditioning control method based on millimeter-wave radar and carbon dioxide concentration detection. Background Art
[0002] Existing household air conditioners are usually equipped with detection devices such as millimeter-wave radars or infrared sensors to detect whether there are users in the room, and control the air conditioner based on the detection results. For example, when the user leaves the room, they often forget to turn off the air conditioner, resulting in a waste of resources. When the detection device detects that the user has left, it can turn off the air conditioner automatically or send a reminder to the user.
[0003] However, the above detection device has the problem of detection accuracy, and missed detection or wrong detection may occur, causing the user to turn off the air conditioner while still using it in the room, which brings a bad user experience. Therefore, how to avoid the above situation and realize intelligent control of the air conditioner is a problem that needs to be solved at present. Summary of the invention
[0004] In view of the problems raised by the background technology, the present invention proposes an air conditioning control method based on millimeter wave radar and carbon dioxide concentration detection.
[0005] To achieve this object, the present invention adopts the following technical solutions:
[0006] An air conditioning control method based on millimeter wave radar and carbon dioxide concentration detection, step A: obtaining the carbon dioxide concentration value in each use area when the air conditioner is turned off and no one is active in the use area, and using the carbon dioxide concentration value at this time as a reference value;
[0007] Step B: Start the timer, use the millimeter wave radar to scan each use area to obtain the number of people in each use area, and when it is detected that there is no person in the use area, perform a judgment control operation, including:
[0008] Obtain the carbon dioxide concentration value corresponding to each timing value of the timer within the subsequent preset time range, and determine whether the carbon dioxide concentration value shows a downward trend and does not exceed the benchmark value. If so, turn off the air conditioner automatically or adjust the air conditioner to power saving mode, and send a reminder to the user. If not, maintain the current operating state of the air conditioner.
[0009] Preferably, in said step B, it includes:
[0010] Step B1: construct a numerical binary tree, determine each usage area to establish a parent node of the numerical binary tree;
[0011] Step B2: divide multiple time intervals as child nodes of each parent node;
[0012] Step B3: for each time interval, construct a two-dimensional array based on the millimeter-wave radar scanning results and the carbon dioxide concentration value, and store multiple two-dimensional arrays in corresponding child nodes;
[0013] Step B4: Perform judgment and control operations by traversing the binary tree and the two-dimensional array.
[0014] Preferably, in step B3, it includes:
[0015] The scanning result of the millimeter wave radar on the current use area at the current time is used as the element of the row of the two-dimensional array, and the carbon dioxide concentration value of the current use area at the current time is used as the element of the column of the two-dimensional array;
[0016] Among them: the elements of the row of the two-dimensional array include 1 and 0, 1 means that there is someone in the current use area when scanning, and 0 means that there is no one in the current use area when scanning.
[0017] Preferably, in step B3, it includes:
[0018] The timing value corresponding to each carbon dioxide concentration value is used as the index of the element of the row and column of the two-dimensional array.
[0019] Preferably, in step B4, the judgment control operation is performed by traversing the binary tree and the two-dimensional array, including:
[0020] Step B41: synchronously traverse the two-dimensional array stored in the child nodes that meet the traversal conditions under all parent nodes of the binary tree;
[0021] The traversal condition is the selected time interval.
[0022] Preferably, in step B4, the judgment control operation is performed by traversing the binary tree and the two-dimensional array, including:
[0023] Step B42: traverse the element values of the row where the two-dimensional array is located, and determine whether the element value of the row where the traversal is located is 0. If so, record the index value of the element value 0 and obtain the element value of the column where the row is located, that is, the carbon dioxide concentration value; if not, continue to traverse the element values of the row where the two-dimensional array is located, without traversing the element values of the column where the traversal is located;
[0024] Step B43: Use the recorded index value as the starting index for the next traversal, and obtain the index values of other rows and the element values of the corresponding columns during the next traversal;
[0025] Step B44: determine whether the difference between the index value obtained by the next traversal and the index value of the initial starting index is greater than the subsequent preset time range; if not, jump to step B43;
[0026] If so, then determine whether the element values of the corresponding columns of other rows decrease in sequence and do not exceed the benchmark value. If so, turn off the air conditioner automatically or adjust it to power saving mode, and send a reminder to the user. If not, maintain the current operating status of the air conditioner.
[0027] Preferably, define the area of use:
[0028] Divide the application space of each air conditioner into multiple usage areas;
[0029] Or the application space of each air conditioner can be recorded as a usage area. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a flow chart of the air conditioning control method based on millimeter wave radar and carbon dioxide concentration detection of the present invention. DETAILED DESCRIPTION
[0031] The technical solution of the present invention is further described below with reference to the accompanying drawings and through specific implementation methods.
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0034] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0035] The present application proposes an air conditioning control method based on millimeter wave radar and carbon dioxide concentration detection, step A: obtaining the carbon dioxide concentration value when the air conditioner is turned off in each use area and no one is active in the use area, and using the carbon dioxide concentration value at this time as a reference value;
[0036] Step B: Start the timer, use the millimeter wave radar to scan each use area to obtain the number of people in each use area, and when it is detected that there is no person in the use area, perform a judgment control operation, including:
[0037] Obtain the carbon dioxide concentration value corresponding to each timing value of the timer within the subsequent preset time range, and determine whether the carbon dioxide concentration value shows a downward trend and does not exceed the benchmark value. If so, turn off the air conditioner automatically or adjust the air conditioner to power saving mode, and send a reminder to the user. If not, maintain the current operating state of the air conditioner.
[0038] In this application, millimeter-wave radar detection and carbon dioxide concentration detection are used as dual detections to improve detection accuracy, thereby avoiding missed detections or false detections. Specifically, the carbon dioxide concentration value in each usage area when the air conditioner is turned off and no one is active is first obtained as a baseline value. It should be noted that the air conditioner must be turned off and no one is active for a period of time before the detected baseline value is accurate. The carbon dioxide concentration value when the air conditioner is turned off immediately or when someone is active after being turned off cannot be used as a baseline value.
[0039] The air conditioner is equipped with a timer, millimeter-wave radar and carbon dioxide concentration detection device. When the millimeter-wave radar scans that there is no one in the use area, it is also necessary to cooperate with the timer to detect the changing trend of the carbon dioxide concentration value and whether it does not exceed the benchmark value within a period of time after no one is present. There are many situations that may lead to misjudgment, that is, the user leaves the use area and comes back after a while, or there is an error in the millimeter-wave radar scanning, and someone is misjudged as no one. Therefore, the combination of a timer and a carbon dioxide concentration value can solve the above problem well.
[0040] Preferably, define the area of use:
[0041] Divide the application space of each air conditioner into multiple usage areas;
[0042] Or the application space of each air conditioner can be recorded as a usage area.
[0043] In this application, the definition of the use area can be understood as two situations. One is to divide the application space of each air conditioner into multiple use areas, and make independent judgments on each use area. It should be noted that this situation requires the configuration of a corresponding number of millimeter-wave radars and carbon dioxide concentration detection devices; the other situation is to regard the application space of each air conditioner as an independent use area. When multiple air conditioners are configured, there are multiple independent use spaces.
[0044] Preferably, in said step B, it includes:
[0045] Step B1: construct a numerical binary tree, determine each usage area to establish a parent node of the numerical binary tree;
[0046] Step B2: divide multiple time intervals as child nodes of each parent node;
[0047] Step B3: for each time interval, construct a two-dimensional array based on the millimeter-wave radar scanning results and the carbon dioxide concentration value, and store multiple two-dimensional arrays in corresponding child nodes;
[0048] Step B4: Perform judgment and control operations by traversing the binary tree and the two-dimensional array.
[0049] In this application, in order to improve detection efficiency and detection accuracy and avoid misjudgment, a detection method combining a numerical binary tree and a two-dimensional array is established. After defining each use area, each use area is used as the parent node of the binary tree, and multiple child nodes are set under each parent node. The number of child nodes is determined according to the number of time intervals. For example, the application space of a room and air conditioner is defined as a use area, and a day in the use area is divided into 12 time intervals. Then the corresponding number of child nodes is 12. Take the child node where one of the time intervals is located to establish a two-dimensional array. The elements of each two-dimensional array are the results of each millimeter-wave radar scan in the time interval and the corresponding carbon dioxide concentration value as the elements of the two-dimensional array. By traversing the binary tree and the two-dimensional array, detection can be quickly performed and the detection accuracy can be improved. At the same time, when querying historical data later, the corresponding historical data can also be obtained by traversing the elements of the two-dimensional array.
[0050] Preferably, in step B3, it includes:
[0051] The scanning result of the millimeter wave radar on the current use area at the current time is used as the element of the row of the two-dimensional array, and the carbon dioxide concentration value of the current use area at the current time is used as the element of the column of the two-dimensional array;
[0052] Among them: the elements of the row of the two-dimensional array include 1 and 0, 1 means that there is someone in the current use area when scanning, and 0 means that there is no one in the current use area when scanning.
[0053] Furthermore, the two-dimensional array is constructed as shown in the following table:
[0054]
[0055] In the current time interval, if the millimeter wave radar scans once every minute, the result of each scan is either 1 or 0, 1 indicates that someone is present, and 0 indicates that no one is present. 1 or 0 is used as the element of the two-dimensional array row and written into the two-dimensional array. The carbon dioxide concentration value is obtained once every minute, and the carbon dioxide concentration value is used as the element of the corresponding column of the row of the two-dimensional array. For example, if the time interval is 30 minutes, then the first minute is scanned once, and the element value of 1 is obtained. The carbon dioxide concentration value of the first minute is 900ppm, then the element value of the first row of the two-dimensional array is 1, and the element value of the first column of the first row is 900; the scan result of the second minute is 1, and the carbon dioxide concentration value in the second minute is 895ppm, then the element value of the second row of the two-dimensional array is 1, and the element value of the first column of the second row is 895, and so on, and the scan results are continuously written into the two-dimensional array, so that when no one is detected, the change of the carbon dioxide concentration value within the preset time range can be judged.
[0056] Preferably, in step B3, it includes:
[0057] The timing value corresponding to each carbon dioxide concentration value is used as the index of the element of the row and column of the two-dimensional array.
[0058] In this application, the index values of conventional two-dimensional arrays are indexed by 0, 1, 2..., and this application uses the corresponding timing value as the index value. For example, in the time interval of 14:00-16:00, if the millimeter-wave radar scans once every half hour and obtains the carbon dioxide concentration value once, then 14:00, 14:30, 15:00, 15:30, and 16:00 will be used as the index values of the rows and columns of the two-dimensional array, which will be more convenient when performing judgment and control operations later.
[0059] Preferably, in step B4, the judgment control operation is performed by traversing the binary tree and the two-dimensional array, including:
[0060] Step B41: synchronously traverse the two-dimensional array stored in the child nodes that meet the traversal conditions under all parent nodes of the binary tree;
[0061] The traversal condition is the selected time interval.
[0062] In the present application, because the time interval is used as a child node, when there are multiple child nodes, if only the current child node needs to be judged and controlled, then when traversing, you only need to select the current time interval, and then traverse the two-dimensional array stored in the child node corresponding to the current time interval. There is no need to traverse other previous time intervals because the two-dimensional arrays corresponding to the previous time intervals have no reference value; but if historical data needs to be called, you can select a previous time interval or any time interval that has generated data for traversal.
[0063] Preferably, in step B4, the judgment control operation is performed by traversing the binary tree and the two-dimensional array, including:
[0064] Step B42: traverse the element values of the row where the two-dimensional array is located, and determine whether the element value of the row where the traversal is located is 0. If so, record the index value of the element value 0 and obtain the element value of the column where the row is located, that is, the carbon dioxide concentration value; if not, continue to traverse the element values of the row where the two-dimensional array is located, without traversing the element values of the column where the traversal is located;
[0065] Step B43: Use the recorded index value as the starting index for the next traversal, and obtain the index values of other rows and the element values of the corresponding columns during the next traversal;
[0066] Step B44: determine whether the difference between the index value obtained by the next traversal and the index value of the initial starting index is greater than the subsequent preset time range; if not, jump to step B43;
[0067] If so, then determine whether the element values of the corresponding columns of other rows decrease in sequence and do not exceed the benchmark value. If so, turn off the air conditioner automatically or adjust it to power saving mode, and send a reminder to the user. If not, maintain the current operating status of the air conditioner.
[0068] In this application, because the detection is real-time, the element value of the two-dimensional array within the current time interval must be detected, but the time interval is a range value. As the number of scans increases or when the time interval of the millimeter wave radar scan is set very short, the row and column elements of the two-dimensional array stored in the subnode corresponding to the current time interval are constantly increasing. If each traversal needs to start from the beginning, it will be very time-consuming and reduce the detection efficiency. In order to solve this problem, this application adopts the following means:
[0069] First, after each scan of the millimeter-wave radar, a row and a column of elements will be added to the two-dimensional array. At the beginning, you only need to traverse the rows of the two-dimensional array. When the element value of the row is 0, it means that the millimeter-wave radar has not scanned anyone in the use area. Then you need to traverse the columns of the two-dimensional array to obtain the element value of the column where this row is located, that is, the carbon dioxide concentration value, and also obtain the index value of this row, that is, the time;
[0070] Next, the index value of this row is used as the starting index. The next time the traversal is performed, the starting index is used as the starting point to traverse the element values of the subsequent rows and columns. That is, both the rows and columns of the two-dimensional array need to be traversed, but only once, and there is no need to traverse the previous data, which is equivalent to only needing to traverse the current scan results and carbon dioxide concentration values at the current time; for example, in one embodiment, the current time interval is 12:00-12:10, and the carbon dioxide concentration value is scanned and obtained once every minute. At the beginning, only the rows of the two-dimensional array need to be traversed. When the element value of the 5th row is 0, the 1st row of the 5th row is obtained. The carbon dioxide concentration value of the column, the index value is 12:04. The next traversal only needs to start from 12:04, that is, start traversing from the 5th row, and there is no need to traverse from the beginning. When the element value of the 6th row is still 0, get the carbon dioxide concentration value of the 1st column of the 6th row, the index value is 12:05. The next traversal only needs to start from 12:05, that is, start traversing from the 6th row. When the element value of the 7th row becomes 1, the column of the 7th row does not need to be traversed, that is, the carbon dioxide concentration value does not need to be obtained. The next traversal only needs to traverse the rows of the two-dimensional array;
[0071] In another embodiment, the current time interval is 12:00-12:10, and the carbon dioxide concentration value is scanned and obtained once every minute. At the beginning, it is only necessary to traverse the rows of the two-dimensional array. When the element value of the 5th row is 0, the carbon dioxide concentration value of the 5th row and the 1st column is obtained, and the index value is 12:04. The next traversal only needs to start from 12:04, that is, traverse from the 5th row, and there is no need to traverse from the beginning. When the element value of the 6th row is still 0, the carbon dioxide concentration value of the 6th row and the 1st column is obtained, and the index value is 12:05. The next traversal also needs to start from 12:04, that is, traverse from the 5th row. This situation is limited to the scene with a short time interval, that is, the number of traversals is small. If the time interval is long or the millimeter wave radar scanning interval is too short, it is preferred to start traversing from the previous index value in the previous embodiment instead of starting from the initial index;
[0072] Then, it is determined whether the difference between the index value obtained by the next traversal and the index value of the initial starting index is greater than the subsequent preset time range. For example, the index value is 12:06, the index value of the initial starting index is 12:04, and the difference between the two is 2 minutes, which exceeds the preset time range by 1 minute. Then, it is determined whether the carbon dioxide concentration values in the columns where the index values 12:04-12:06 are located are successively reduced and do not exceed the reference value. If so, the air conditioner will be automatically turned off or adjusted to the power saving mode, and a reminder will be issued to the user. If it does not exceed the preset time range, the traversal will continue.
[0073] Furthermore, the operation of determining the difference between index values needs to be performed only after the element value of the row traversed is 0;
[0074] It should be noted that the sequential decrease in carbon dioxide concentration values can be understood as a gradual decrease, because when the scanning interval is too short, the carbon dioxide concentration values obtained before and after may not change, or the change is very small, that is, the carbon dioxide concentration value of the previous minute may be the same as the carbon dioxide concentration value of the next minute, but the overall trend is downward, and not exceeding the baseline value can be understood as lower than or equal to the baseline value. In actual operation, the baseline value can be used as a horizontal line, and the carbon dioxide concentration value can fluctuate within the baseline value in the overall downward trend.
[0075] The technical principle of the present invention is described above in conjunction with specific embodiments. These descriptions are only for explaining the principle of the present invention and cannot be interpreted as limiting the scope of protection of the present invention in any way. Based on the explanations herein, those skilled in the art can associate other specific implementations of the present invention without paying creative labor, and these methods will fall within the scope of protection of the present invention.
Claims
1. An air conditioning control method based on millimeter wave radar and carbon dioxide concentration detection, characterized in that: Step A: Obtain the carbon dioxide concentration value in each usage area when the air conditioner is turned off and no one is active in the usage area, and use the carbon dioxide concentration value at this time as the reference value; Step B: Start the timer, use the millimeter wave radar to scan each use area to obtain the number of people in each use area, and when it is detected that there is no person in the use area, perform a judgment control operation, including: Obtain the carbon dioxide concentration value corresponding to each timing value of the timer within the subsequent preset time range, and determine whether the carbon dioxide concentration value shows a decreasing trend and does not exceed the reference value. If so, turn off the air conditioner or adjust the air conditioner to power saving mode and send a reminder to the user. If not, maintain the current operating state of the air conditioner. In the step B, it includes: Step B1: construct a numerical binary tree, determine each usage area to establish a parent node of the numerical binary tree; Step B2: divide multiple time intervals as child nodes of each parent node; Step B3: for each time interval, construct a two-dimensional array based on the millimeter-wave radar scanning results and the carbon dioxide concentration value, and store multiple two-dimensional arrays in corresponding child nodes; Including: using the scanning result of the millimeter wave radar on the current use area at the current time as the element of the row of the two-dimensional array, and using the carbon dioxide concentration value of the current use area at the current time as the element of the column of the two-dimensional array; Among them: the elements of the row of the two-dimensional array include 1 and 0, 1 means that there is someone in the current use area scanned, and 0 means that there is no one in the current use area scanned; The timing value corresponding to each carbon dioxide concentration value is used as the index of the element of the row and column of the two-dimensional array; Step B4: performing a judgment control operation by traversing the binary tree and the two-dimensional array; include: Step B41: synchronously traverse the two-dimensional array stored in the child nodes that meet the traversal conditions under all parent nodes of the binary tree; The traversal condition is the selected time interval; Step B42: traverse the element values of the row where the two-dimensional array is located, and determine whether the element value of the row where the traversal is located is 0. If so, record the index value of the element value 0 and obtain the element value of the column where the row is located, that is, the carbon dioxide concentration value; if not, continue to traverse the element values of the row where the two-dimensional array is located, without traversing the element values of the column where the traversal is located; Step B43: Use the recorded index value as the starting index for the next traversal, and obtain the index values of other rows and the element values of the corresponding columns during the next traversal; Step B44: determine whether the difference between the index value obtained by the next traversal and the index value of the initial starting index is greater than the subsequent preset time range; if not, jump to step B43; If so, then determine whether the element values of the corresponding columns of other rows decrease in sequence and do not exceed the benchmark value. If so, turn off the air conditioner automatically or adjust it to power saving mode and send a reminder to the user. If not, maintain the current operating status of the air conditioner.
2. The air conditioning control method based on millimeter wave radar and carbon dioxide concentration detection according to claim 1, characterized in that: Define the area of use: Divide the application space of each air conditioner into multiple usage areas; Or the application space of each air conditioner can be recorded as a usage area.
Citation Information
Patent Citations
Air conditioner and fresh air system predictive control method and system based on indoor number of people
CN109442695A
Air conditioner control method, air conditioning device and air conditioner
CN110631213A
Discrete grid point rapid re-regularization method based on binary tree model
CN112989673A
Device and method for information retrieval, and program
JP2011257877A
