[go: up one dir, main page]

CN114576840B - Method, electronic equipment and medium for shutdown based on WIFI channel state detection - Google Patents

Method, electronic equipment and medium for shutdown based on WIFI channel state detection Download PDF

Info

Publication number
CN114576840B
CN114576840B CN202111414968.5A CN202111414968A CN114576840B CN 114576840 B CN114576840 B CN 114576840B CN 202111414968 A CN202111414968 A CN 202111414968A CN 114576840 B CN114576840 B CN 114576840B
Authority
CN
China
Prior art keywords
sleep
action
channel state
air conditioner
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111414968.5A
Other languages
Chinese (zh)
Other versions
CN114576840A (en
Inventor
李俊泽
李保水
寇渠荣
郑文成
刘健军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111414968.5A priority Critical patent/CN114576840B/en
Publication of CN114576840A publication Critical patent/CN114576840A/en
Application granted granted Critical
Publication of CN114576840B publication Critical patent/CN114576840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/89Arrangement or mounting of control or safety devices
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • F24F11/58Remote control using Internet communication
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F2120/00Control inputs relating to users or occupants
    • F24F2120/10Occupancy
    • F24F2120/14Activity of occupants
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The application relates to a method, electronic equipment and medium for shutdown based on WIFI channel state detection. The method comprises the steps of obtaining information among N subcarriers in channel state information of WIFI signals in a room where an air conditioner is located, calculating a covariance value among the subcarriers according to the channel state information, judging whether the covariance value is larger than an action recognition threshold, if so, updating a count value of an action counter, wherein the action counter is used for counting action frequency generated by a user in a sleep monitoring period, and when the count value in the action counter meets a sleep recognition judging condition, the air conditioner is instructed to perform shutdown operation, and the sleep recognition judging condition comprises the calculation threshold of the action counter for judging that the user enters a sleep state. According to the scheme, when the user is identified to enter the sleep state, the air conditioner is instructed to perform shutdown operation, so that intelligent shutdown of the air conditioner is completed.

Description

Method, electronic equipment and medium for shutdown based on WIFI channel state detection
Technical Field
The application relates to the technical field of air conditioners, in particular to a shutdown method based on WIFI channel state detection.
Background
At present, household air conditioners are commonly used, most of the air conditioners are powered off through a remote control input sleep mode, users often do not have the habit of setting the timing power off of the air conditioners when in use, the electricity consumption of residents is very large, after the users sleep, pores are in a relaxed and opened state, the phenomenon of catching a cold easily occurs, and once the condition of catching a cold occurs, the body resistance tends to be reduced, so that the health of the users is easily endangered.
How to realize intelligent shutdown according to the actual sleep state of the user under the condition that the air conditioner is not set with timing shutdown.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a shutdown method based on WIFI channel state detection, which can accurately identify that a user is asleep and then instruct the air conditioner to shut down under the condition that the user does not set timing shutdown for the air conditioner.
A method for shutdown based on WIFI channel state detection comprises the following steps:
s1, obtaining channel state information of WIFI signals in a room where an air conditioner is located, wherein the channel state information comprises: information among N subcarriers;
s2, calculating a covariance value among subcarriers according to the channel state information;
s3, judging whether the covariance value is larger than an action recognition threshold value, if so, updating the count value of an action counter; the action counter is used for counting action frequency generated by a user in a sleep monitoring period;
s4, when the count value in the action counter meets a sleep identification judgment condition, the air conditioner is instructed to perform shutdown operation, and the sleep identification judgment condition is as follows: a calculation threshold of an action counter that determines that the user enters a sleep state.
In a preferred technical scheme of the present application, before obtaining channel state information of WI F I signals in a room where an air conditioner is located, the method includes:
and judging whether the current time distance is longer than the preset action statistical duration after the last execution of the step S1, and if so, executing the step S1 again.
In a preferred technical solution of the present application, after the determining whether the covariance value is greater than the action recognition threshold, the determining includes:
judging whether a sleep monitoring period is spaced from the moment when the current time is updated to be one from the action counter;
if yes, determining that the current sleep monitoring period is finished, and maintaining the starting state of the air conditioner;
if not, executing the operation of judging whether the current time distance is separated by the preset action statistical time length or not by executing the step S1 last time.
In the preferred technical scheme, if the current moment is within a preset first time period, executing a first preset action statistical duration, a first sleep monitoring period and a first sleep identification judgment condition;
if the current moment is in a preset second time period, executing a second preset action statistics time period, a second sleep monitoring period and a second sleep identification judgment condition;
the first preset action statistical time length is longer than the second preset action statistical time length, the first sleep monitoring period is shorter than the second sleep monitoring period, and the first sleep identification judgment condition is longer than the second sleep identification judgment condition.
In a preferred technical solution of the present application, the calculating the covariance value between the subcarriers according to the channel state information includes:
according to the phase information and the amplitude information among the subcarriers in the channel state information, calculating a covariance value among the subcarriers, wherein the adopted calculation formula is as follows:
Figure BDA0003374918420000021
where xi is the phase value of the ith subcarrier,
Figure BDA0003374918420000022
is the average value of the phase values of the sub-carriers, yi is the amplitude value of the ith sub-carrier,/>
Figure BDA0003374918420000023
The average value of the amplitude values of the subcarriers is obtained, and N is the number of the subcarriers.
In a preferred technical scheme of the present application, the sleep recognition determination condition is that the calculation threshold is less than or equal to 3.
In the preferred technical scheme of the application, the step of indicating the air conditioner to perform the shutdown operation includes the step of indicating the air conditioner to perform the shutdown operation after the preset sleep time.
The second aspect of the present application also provides an electronic device, including:
the carrier wave obtaining unit is used for obtaining channel state information of WIFI signals in a room where the air conditioner is located, and the channel state information comprises: information among N subcarriers;
a difference value calculating unit, configured to calculate a difference value between subcarriers according to the channel state information;
a threshold value judging unit, configured to judge whether the covariance value is greater than an action recognition threshold value, and if yes, update a count value of an action counter; the action counter is used for counting action frequency generated by a user in a sleep monitoring period;
a sleep determination unit, configured to instruct an air conditioner to perform a shutdown operation when the count value in the action counter satisfies a sleep recognition determination condition, where the sleep recognition determination condition is: a calculation threshold of an action counter that determines that the user is going to sleep turn.
The third aspect of the present application also provides an electronic device, including:
a processor; and a memory having executable code that, when executed by the processor, causes the processor to perform a method as described above.
A fourth aspect of the present application also provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform a method as described above.
The technical scheme that this application provided can include following beneficial effect: when the air conditioner is in a starting state, channel state information of WIFI signals in a room where the air conditioner is located is obtained, the channel state information comprises information among N subcarriers, a covariance value among the subcarriers is calculated according to the channel state information, when a user generates an action state in the room, the phase and the amplitude among the subcarriers in the obtained channel state information are changed and can be directly reflected to the covariance value among the subcarriers, and therefore whether the user generates the action state in the room can be identified by comparing the covariance value generated at the current moment with an action identification threshold value.
In practical application, even if the user enters a sleep state, unintentional actions are generated, so that statistics is required for action states generated in a period of time, when the calculated value counted by the action counter in one sleep monitoring period meets a specific threshold value, the user can be judged to enter the sleep state, and at the moment, the air conditioner can be instructed to perform shutdown operation, so that intelligent shutdown of the air conditioner is completed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular descriptions of exemplary embodiments of the application as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the application.
FIG. 1 is a flow chart of an intelligent shutdown for air conditioner detection according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating the execution of different parameters according to different times according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
At present, when a user uses an air conditioner, the habit of timing shutdown of the air conditioner is not set, so that the domestic electric quantity is very large, and when the user sleeps, pores are in a relaxed and opened state, the phenomenon of catching a cold easily occurs, and once the condition of catching a cold occurs, the body resistance tends to be reduced, and the body health of the user is easily endangered.
In view of the above problems, the embodiments of the present application provide a method for shutting down an air conditioner based on WIFI channel state detection, which can accurately identify that a user is asleep and then instruct the air conditioner to shut down when the user does not set a timing shutdown for the air conditioner.
The following describes the technical scheme of the embodiments of the present application in detail with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of an intelligent air conditioner detection shutdown according to an embodiment of the present application.
Under the state that the air conditioner is started, based on the communication of a WIFI module arranged in the air conditioner, the air conditioner end is used as an STA end, a router or other central control carrying the WIFI module is used as an AP end, the STA requests to acquire WIFI Channel State Information (CSI) between the STA and the AP end from the AP end, and the channel state information comprises: information among N subcarriers can be obtained through OFDM under the standard of 802.11N normally, and the information among the subcarriers is specifically information such as signal amplitude, phase and frequency; the variation of the amplitude and the phase of the subcarriers caused by the motion of the human body can be accurately reflected by calculating the covariance value among the subcarriers in the WIFI channel state information, and the variation of the amplitude and the phase among the subcarriers is specifically as follows: according to the phase information and the amplitude information among the subcarriers in the channel state information, calculating a covariance value among the subcarriers, wherein the adopted calculation formula is as follows:
Figure BDA0003374918420000051
where xi is the phase value of the ith subcarrier,
Figure BDA0003374918420000052
is the average value of the phase values of the sub-carriers, yi is the amplitude value of the ith sub-carrier,/>
Figure BDA0003374918420000053
The average value of the amplitude values of the subcarriers is obtained, and N is the number of the subcarriers.
Proved by numerous experiments, the influence of the motion outside the room on the channel state in the room is smaller, the range of the covariance value is in the interval of 0.100-0.110, the range of the covariance value is in the interval of 0.100-0.200, the range of the covariance value is in the interval of 0.400-0.700, the covariance value is greatly moved, so that a reasonably effective action recognition threshold can be set by numerous experiments according to actual application scenes, the action recognition threshold is set by judging whether the covariance value is larger than the action recognition threshold, if so, the count value of an action counter is updated, the action counter is used for counting the action frequency generated by a user in a sleep monitoring period, the initial value of the count value can be set to be 1, and when the count value in the action counter meets the sleep recognition judgment condition, the air conditioner is instructed to perform shutdown operation, and the sleep recognition judgment condition is adopted: the sleep recognition judgment condition may be set to be less than or equal to 3 in order to prevent interference caused by unintentional actions after the user enters the sleep state, preferably, the instructing the air conditioner to perform the shutdown operation includes instructing the air conditioner to perform the shutdown operation after a preset sleep time period, and the preset sleep time period may be set to half an hour, 1 hour or 2 hours according to the habit of the user, and so on.
In the first embodiment, when the air conditioner is in the on state, channel state information of WIFI signals in a room where the air conditioner is located is obtained, the channel state information includes information among N subcarriers, a covariance value among the subcarriers is calculated according to the channel state information, when a user generates an action state in the room, a phase and an amplitude among the subcarriers in the obtained channel state information change, and the covariance value among the subcarriers can be directly reflected, so that whether the user generates the action state in the room can be identified by comparing the covariance value generated at the current moment with an action identification threshold.
In practical application, even if the user enters a sleep state, unintentional actions are generated, so that statistics is required for action states generated in a period of time, when the calculated value counted by the action counter in one sleep monitoring period meets a specific threshold value, the user can be judged to enter the sleep state, and at the moment, the air conditioner can be instructed to perform shutdown operation, so that intelligent shutdown of the air conditioner is completed.
In a second embodiment, when a sleep monitoring period detects that a user is not asleep, in order to further eliminate interference caused by external factors such as door opening and the like during the sleep monitoring period, in order to solve the above-mentioned problems, the present application proposes a corresponding scheme, please refer to fig. 2, specifically:
based on the structure of the first embodiment, before obtaining the channel state information of the WIFI signal in the room where the air conditioner is located, obtaining the current time, judging whether the current time is a preset action statistics duration from the time when the step of obtaining the channel state information of the WIFI signal in the room where the air conditioner is located is last executed, if yes, updating the count value of the action counter to be 1, obtaining the channel state information of the WIFI signal in the room where the air conditioner is located again, calculating the covariance value between subcarriers according to the channel state information, judging whether the covariance value is greater than the action recognition threshold, after judging whether the covariance value is greater than the action recognition threshold, judging whether a sleep monitoring period is already spaced from the time when the action counter is updated to be one, if yes, determining that the current sleep monitoring period is ended, and maintaining the start-up state of the air conditioner; if not, executing the operation of judging whether the current moment is spaced by the preset action statistical time from the moment of last acquiring the channel state information of the WIFI signal in the room where the air conditioner is located, until the operation of judging whether the current moment is spaced by the preset action statistical time from the moment of last acquiring the channel state information of the WIFI signal in the room where the air conditioner is located, and repeating in a circulating way until the user is identified to sleep, and indicating the air conditioner to perform shutdown operation.
In this embodiment of the present application, only if the sleep detection period is detected in a detection period, the subsequent detection is cancelled, otherwise, after a preset action statistics period is set at intervals, channel state information of a WIFI signal in a room where an air conditioner is located is obtained again, and whether the user is asleep is detected, that is, if the user is not asleep or is caused by interference caused by external factors, the user is judged not to be asleep in the detection period, and the detection is started again in the next sleep detection period until the user is judged to be asleep or the air conditioner is actively turned off.
In the third embodiment, in the practical application scenario, especially in summer, the time for the user to turn on the air conditioner is long, and the time for the user to fall asleep in daytime is far less than the time for the user to fall asleep in evening, the action amplitude generated in sleep is far less than the action amplitude generated in non-sleep, if the same detection intensity is set, the number of times calculated by the computer is increased in daytime, the performance of the CPU is reduced, or the operation time of the air conditioner is increased in evening due to the detection frequency, which is unfavorable for energy saving and electricity saving.
If the current moment is within a preset first time period, executing a first preset action statistics time period, a first sleep monitoring period and a first sleep identification judgment condition;
if the current moment is in a preset second time period, executing a second preset action statistics time period, a second sleep monitoring period and a second sleep identification judgment condition;
the first preset action statistical time length is longer than the second preset action statistical time length, the first sleep monitoring period is shorter than the second sleep monitoring period, and the first sleep recognition judging condition is shorter than the second sleep recognition judging condition.
Specific examples are: as set 8 in daytime: 01-20:00 is a preset first time period, 20:01-8:00 is a preset second time period, when the air conditioner is started, the current time is obtained, if the current time is in the preset first time period, because the user has shorter time to sleep in the daytime and longer time to be in conscious activities, at this time, longer preset action statistical time length can be set, for example, the first preset action statistical time length is set to be one half hour, a shorter first sleep detection period can be set, for example, the first sleep detection period is set to be 10 minutes, and the time length and the amplitude of one action in conscious actions are far longer than those in unconscious actions, so that the first sleep recognition judging condition can be set to be less than or equal to 2; if the current moment is in the preset second time period, because the sleeping time of the user at night is longer and the probability of being in the sleeping state is larger, at this time, a shorter preset action statistics duration can be set, for example, the first preset action statistics duration is set to be one hour, a longer first sleep detection period can be set, for example, the first sleep detection period is set to be 15 minutes, and the duration and the amplitude of the unconscious action in the sleeping state are far smaller than those of the conscious action, so that the first sleep recognition judging condition can be set to be smaller than or equal to 3.
According to the living habit of the user and the characteristic that the time length of the daytime in the sleep state is shorter than the time length of the daytime in the sleep state, preset action statistics time length, sleep monitoring period and sleep recognition judging conditions are set in a distinguishing mode, whether the user sleeps or not and the air conditioner is instructed to be powered off can be accurately judged, the first sleep monitoring period is smaller than the second sleep monitoring period, the first sleep recognition judging condition is larger than the second sleep recognition judging condition, compared with the daytime, the detection time length is shortened at night, the calculation threshold for judging that the user enters the sleep state is reduced, the number of times calculated by a computer can be reduced, and therefore the service life of the air conditioner is prolonged.
It should be noted that, in the above method, the calculating the covariance value between the subcarriers according to the channel state information specifically includes: the channel state information of the WIFI signal in the room where the air conditioner is located is obtained, the obtained channel state information can be expressed as { x (N) |n=1, 2, & gt, N }, N is the number of subcarriers contained in the channel state information, 56 subcarriers can be obtained through OFDM under the standard of 802.11N, the acquired channel state information may be expressed as { x (N) |n=1, 2,..56 }, each subcarrier has 6 bytes of data information, the information of the specifically included subcarriers may be expressed as { x (N) |n= 66,32,4,0,0,0,0,0,0,0, -1,3,0,12,0,12,0,12,1,12,1,12,1,11,2,11,2,11,2,11,3,11,3,11,3, 10,3,10,4,10,4,10,4,10,5,10,5,10,5,10,6,9,6,9,6,9,7,9,7,9,7,9,8,9,4,4,9,8,9,9,9,9,10, 9,10,9,10,9,11,9,11,10,11,10,11,10,11,10,11,11,11,11,11,11,11,12,11,12,11,12,11,1 3,11,13,11,13,10,14,10,14,9,15,8,15,7,15,7,16,1,4,0,0,0,0,0,0,0,0, -1, -1,4,0,24,0,2 4,0,24,1,24,0,23,1,23,1,23,2,22,3,22,3,21,4,21,4,21,5,21,6,21,6,20,7,20,8,20,8,19, 9,19,9,19,10,19,11,18,11,18,12,18,12,18,13,17,14,17,15,17,15,17,16,16,17,16,17,1 6,18,16,18,16,19,17,20,17,20,17,21,17,21,18,22,19,22,19,22,19,22,20,22,20,22,21, 22,22,22,22,22,23,21,24,21,25,21,25,20,26,19,27,18,27,17,28,15,29,14,29,4,9,0,1, -1, -1, -1, -1, -1, -1,0,0,0,0,0,0,0,0, -2, -2, -7, -10, -19, -32, -19, -33, -18, -33, -17, -33, -16, -33, -15, -32, -14, -32, -14, -32, -13, -31, -12, -31, -12, -30, -12, -29, -11, -29, -11, -28, -11, -27, -11, -26, -11, -25, -11, -24, -11, -23, -11, -23, -11, -22, -11, -21, -12, -20, -13, -18, -13, -18, -13, -17, -14, -17, -14, -16, -15, -16, -16, -15, -16, -14, and if the first subcarrier data information is { x (1) |1= 66,32,4,0,0,0}, inputting the six data of { x (1) |1= 66,32,4,0,0,0} to the abs function to obtain the subcarrier amplitude information F1; inputting the six data of { x (1) |1= 66,32,4,0,0,0} to the unwrap and angle functions to obtain first subcarrier phase information H1; and obtaining a covariance value std' between every two subcarriers by using the covariance calculation formula through the amplitude information and the phase information of the two adjacent subcarriers.
Calculation formula of covariance value:
Figure BDA0003374918420000091
where xi is the phase value of the ith subcarrier,
Figure BDA0003374918420000092
is the average value of the phase values of the sub-carriers, yi is the amplitude value of the ith sub-carrier,/>
Figure BDA0003374918420000093
The average value of the amplitude values of the subcarriers is obtained, and N is the number of the subcarriers.
And finally, the vector tables F and H containing the amplitude and phase information of each subcarrier, the obtained channel state information { x (n) |n=1, 2, & gt, 56} and the covariance value std' between every two subcarriers are put into a trained neural network together for processing, so as to obtain a std value, wherein the std value is a numerical value for finally judging whether a human body moves or not.
Corresponding to the embodiment of the application function implementation method, the application also provides electronic equipment and corresponding embodiments.
Referring to fig. 4, the present application provides an electronic device, including:
the carrier wave obtaining unit is used for obtaining channel state information of WIFI signals in a room where the air conditioner is located, and the channel state information comprises: information among N subcarriers;
a difference value calculating unit, configured to calculate a difference value between subcarriers according to the channel state information;
a threshold value judging unit, configured to judge whether the covariance value is greater than an action recognition threshold value, and if yes, update a count value of an action counter; the action counter is used for counting action frequency generated by a user in a sleep monitoring period;
a sleep determination unit, configured to instruct an air conditioner to perform a shutdown operation when the count value in the action counter satisfies a sleep recognition determination condition, where the sleep recognition determination condition is: a calculation threshold of an action counter that determines that the user is going to sleep turn.
The application further provides an electronic device, and fig. 5 is a schematic structural diagram of the electronic device shown in the embodiment of the application.
Referring to fig. 5, the electronic device includes a processor and a memory having executable code stored thereon that, when executed by the processor, causes the processor to perform the calibration method as described above.
The processor 1020 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor may be a micro processor or the processor may be any conventional processor or the like.
Memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and persistent storage. Where the ROM may store static data or instructions that are required by the processor 1020 or other modules of the computer. The persistent storage may be a readable and writable storage. The persistent storage may be a non-volatile memory device that does not lose stored instructions and data even after the computer is powered down. In some embodiments, the persistent storage device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the persistent storage may be a removable storage device (e.g., diskette, optical drive). The system memory may be a readable and writable storage device or a volatile and readable and writable storage device, such as dynamic random access memory. The system memory may store instructions and data that are required by some or all of the processors at runtime. Furthermore, memory 1010 may comprise any combination of computer-readable storage media including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic disks, and/or optical disks may also be employed. In some implementations, memory 1010 may include readable and/or writable removable storage devices such as Compact Discs (CDs), digital versatile discs (e.g., DVD-ROMs, dual-layer DVD-ROMs), blu-ray discs read only, super-density optical discs, flash memory cards (e.g., SD cards, min SD cards, micro-SD cards, etc.), magnetic floppy disks, and the like. The computer readable storage medium does not contain a carrier wave or an instantaneous electronic signal transmitted by wireless or wired transmission.
The memory 1010 has stored thereon executable code that, when processed by the processor 1020, can cause the processor 1020 to perform some or all of the methods described above.
The aspects of the present application have been described in detail hereinabove with reference to the accompanying drawings. In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments. Those skilled in the art will also appreciate that the acts and modules referred to in the specification are not necessarily required in the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application may be sequentially adjusted, combined and pruned according to actual needs, and the modules in the apparatus of the embodiment of the present application may be combined, divided and pruned according to actual needs.
Furthermore, the method according to the present application may also be implemented as a computer program or computer program product comprising computer program code instructions for performing part or all of the steps of the above-described method of the present application.
Alternatively, the present application may also be embodied as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having stored thereon executable code (or a computer program, or computer instruction code) that, when executed by a processor of an electronic device (or electronic device, server, etc.), causes the processor to perform some or all of the steps of the above-described methods according to the present application.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the application herein may be implemented as electronic hardware, computer software, or combinations of both.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The embodiments of the present application have been described above, the foregoing description is exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the improvement of technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (9)

1. The method for shutdown based on WIFI channel state detection is characterized by comprising the following steps:
s1, obtaining channel state information of WIFI signals in a room where an air conditioner is located, wherein the channel state information comprises: information among N subcarriers;
s2, calculating a covariance value among subcarriers according to the channel state information;
s3, judging whether the covariance value is larger than an action recognition threshold value, and if so, updating the count value of an action counter; the action counter is used for counting action frequency generated by a user in a sleep monitoring period;
s4, when the count value in the action counter meets a sleep identification judgment condition, the air conditioner is instructed to perform shutdown operation, and the sleep identification judgment condition is as follows: determining a calculation threshold of an action counter for a user to enter a sleep state;
judging whether the current moment is in a preset first time period or a second time period;
if the current moment is within a preset first time period, executing a first preset action statistics duration, a first sleep monitoring period and a first sleep identification judgment condition;
if the current moment is within a preset second time period, executing a second preset action statistics duration, a second sleep monitoring period and a second sleep identification judgment condition;
the first preset action statistical time length is longer than the second preset action statistical time length, the first sleep monitoring period is shorter than the second sleep monitoring period, and the first sleep identification judgment condition is longer than the second sleep identification judgment condition.
2. The method for power down based on WIFI channel state detection according to claim 1, wherein,
before obtaining the channel state information of the WIFI signal in the room where the air conditioner is located, the method comprises the following steps:
and judging whether the current time distance is longer than the preset action statistical duration after the last execution of the step S1, and if so, executing the step S1 again.
3. The method for power down based on WIFI channel state detection according to claim 1, wherein,
after the judging whether the covariance value is larger than the action recognition threshold, the method comprises the following steps:
judging whether a sleep monitoring period is spaced from the moment when the current time is updated to be one from the action counter;
if yes, determining that the current sleep monitoring period is finished, and maintaining the starting state of the air conditioner;
if not, executing the operation of judging whether the current time distance is separated by the preset action statistical time length or not by executing the step S1 last time.
4. The method for power down based on WIFI channel state detection according to claim 1, wherein,
the calculating the covariance value between the sub-carriers according to the channel state information comprises:
according to the phase information and the amplitude information among the subcarriers in the channel state information, calculating a covariance value among the subcarriers, wherein the adopted calculation formula is as follows:
Figure FDA0004117453380000021
where xi is the phase value of the ith subcarrier,
Figure FDA0004117453380000022
is the average value of the phase values of the sub-carriers, yi is the amplitude value of the ith sub-carrier,/>
Figure FDA0004117453380000023
The average value of the amplitude values of the subcarriers is obtained, and N is the number of the subcarriers.
5. The method for power down based on WIFI channel state detection according to claim 1, wherein,
the sleep recognition judging condition is that the calculation threshold value is less than or equal to 3.
6. The method for performing shutdown based on WIFI channel state detection according to claim 1, wherein the instructing the air conditioner to perform shutdown operation includes:
and indicating the air conditioner to perform shutdown operation after the preset sleep time.
7. An electronic device, comprising:
the carrier wave obtaining unit is used for obtaining channel state information of WIFI signals in a room where the air conditioner is located, and the channel state information comprises: information among N subcarriers;
a difference value calculating unit, configured to calculate a difference value between subcarriers according to the channel state information;
a threshold value judging unit for judging whether the covariance value is larger than an action recognition threshold value, if so, updating the count value of the action counter; the action counter is used for counting action frequency generated by a user in a sleep monitoring period;
a sleep determination unit, configured to instruct an air conditioner to perform a shutdown operation when the count value in the action counter satisfies a sleep recognition determination condition, where the sleep recognition determination condition is: determining a calculation threshold of an action counter for a user to enter a sleep turn;
judging whether the current moment is in a preset first time period or a second time period;
if the current moment is within a preset first time period, executing a first preset action statistics duration, a first sleep monitoring period and a first sleep identification judgment condition;
if the current moment is within a preset second time period, executing a second preset action statistics duration, a second sleep monitoring period and a second sleep identification judgment condition;
the first preset action statistical time length is longer than the second preset action statistical time length, the first sleep monitoring period is shorter than the second sleep monitoring period, and the first sleep identification judgment condition is longer than the second sleep identification judgment condition.
8. An electronic device, comprising:
a processor; and
a memory having executable code that, when executed by the processor, causes the processor to perform the method of any of claims 1-6.
9. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the method of any of claims 1-6.
CN202111414968.5A 2021-11-25 2021-11-25 Method, electronic equipment and medium for shutdown based on WIFI channel state detection Active CN114576840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111414968.5A CN114576840B (en) 2021-11-25 2021-11-25 Method, electronic equipment and medium for shutdown based on WIFI channel state detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111414968.5A CN114576840B (en) 2021-11-25 2021-11-25 Method, electronic equipment and medium for shutdown based on WIFI channel state detection

Publications (2)

Publication Number Publication Date
CN114576840A CN114576840A (en) 2022-06-03
CN114576840B true CN114576840B (en) 2023-06-23

Family

ID=81770337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111414968.5A Active CN114576840B (en) 2021-11-25 2021-11-25 Method, electronic equipment and medium for shutdown based on WIFI channel state detection

Country Status (1)

Country Link
CN (1) CN114576840B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006167427A (en) * 2004-11-22 2006-06-29 Aisin Seiki Co Ltd Sleep information detection system
JP2007222276A (en) * 2006-02-22 2007-09-06 Tanita Corp Health management device
JP2009028352A (en) * 2007-07-27 2009-02-12 Daikin Ind Ltd Sleep information providing system
KR101255840B1 (en) * 2012-01-10 2013-04-17 중앙아이티엘 주식회사 Apparatus and method for control automatic switching of streetlight
JP2016067811A (en) * 2014-10-01 2016-05-09 セイコーエプソン株式会社 Biological information detection system, biological information detection apparatus, and biological information detection system control method
JP2016224479A (en) * 2015-05-26 2016-12-28 オムロンヘルスケア株式会社 Sleep management device, sleep management method, and sleep management program
WO2019228323A1 (en) * 2018-05-29 2019-12-05 华为技术有限公司 Illumination adjustment method and terminal
EP3731240A1 (en) * 2019-04-24 2020-10-28 Intuity Media Lab GmbH Non-invasive monitoring for assistive living systems
WO2021004043A1 (en) * 2019-07-05 2021-01-14 芜湖美的厨卫电器制造有限公司 Water heater and control method thereof and computer-readable storage medium
CN112988679A (en) * 2021-03-18 2021-06-18 北京大米科技有限公司 Log collection control method and device, storage medium and server
WO2021196989A1 (en) * 2020-04-01 2021-10-07 华为技术有限公司 Sleep state determination method and system, wearable device, and storage medium

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100332787B1 (en) * 1999-12-06 2002-04-18 구자홍 A apparatus and method for detecting change state of the inverter airconditioner
US6893405B2 (en) * 2002-01-22 2005-05-17 Medcare Flaga Hf Analysis of Sleep Apnea
CN103836759B (en) * 2012-11-20 2016-08-03 广东美的制冷设备有限公司 A kind of air conditioning system and sleep control method thereof and device
US20160259421A1 (en) * 2013-10-08 2016-09-08 University Of Washington Through Its Center For Commercialization Devices, systems, and methods for controlling devices using gestures
CN104165406B (en) * 2014-09-05 2017-02-15 新界泵业集团股份有限公司 Heating system of automatic energy-saving wall hanging stove and energy saving method thereof
US9794308B2 (en) * 2015-03-06 2017-10-17 Echostar Technologies L.L.C. Systems and methods for handling interruptions in receiving media content due to a change in wireless frequency channel
CN119033355A (en) * 2015-04-20 2024-11-29 瑞思迈传感器技术有限公司 Gesture recognition with sensors
CN105257140B (en) * 2015-09-24 2017-01-25 小米科技有限责任公司 Method and device for controlling intelligent door and window
CN106247527B (en) * 2016-07-27 2019-05-17 珠海格力电器股份有限公司 Method and device for controlling air conditioner at night by using night control mode
CN106073722A (en) * 2016-08-30 2016-11-09 孟玲 Health analysis system for monitoring sleep apnea syndrome
CN107951466A (en) * 2016-10-17 2018-04-24 珠海格力电器股份有限公司 Alarm control method, device and system
CN106839280B (en) * 2017-01-04 2020-02-21 青岛海尔空调器有限总公司 Air conditioner sleep control method
CN107256610A (en) * 2017-07-28 2017-10-17 上海斐讯数据通信技术有限公司 A kind of antitheft information notice method and device, server and burglary-resisting system
CN107947874B (en) * 2017-11-21 2020-10-30 太原理工大学 Indoor map semantic identification method based on WiFi channel state information
CN108992040A (en) * 2018-07-30 2018-12-14 深圳智芯数据服务有限公司 A kind of sleep quality state monitoring method and device
CN109067627A (en) * 2018-08-30 2018-12-21 Oppo广东移动通信有限公司 Appliances equipment control method, device, wearable device and storage medium
CN113842119A (en) * 2019-04-24 2021-12-28 中国计量大学上虞高等研究院有限公司 Sleep environment illumination condition identification method
WO2021092933A1 (en) * 2019-11-15 2021-05-20 Qualcomm Incorporated Techniques for a control channel wakeup signal
CN111288986B (en) * 2019-12-31 2022-04-12 中科彭州智慧产业创新中心有限公司 Motion recognition method and motion recognition device
CN111309137B (en) * 2020-02-18 2021-07-06 深圳云天励飞技术有限公司 Chip control method and device, chip and terminal equipment
CN111306714A (en) * 2020-03-03 2020-06-19 青岛海尔空调器有限总公司 Air conditioner and control method thereof
CN111912083A (en) * 2020-07-14 2020-11-10 广东以诺通讯有限公司 Air conditioner control method based on smart band
CN112163540B (en) * 2020-10-09 2024-01-19 上海第二工业大学 Gesture recognition method based on WiFi
CN113256954B (en) * 2021-05-10 2022-07-19 台州学院 Control method based on wireless intelligent equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006167427A (en) * 2004-11-22 2006-06-29 Aisin Seiki Co Ltd Sleep information detection system
JP2007222276A (en) * 2006-02-22 2007-09-06 Tanita Corp Health management device
JP2009028352A (en) * 2007-07-27 2009-02-12 Daikin Ind Ltd Sleep information providing system
KR101255840B1 (en) * 2012-01-10 2013-04-17 중앙아이티엘 주식회사 Apparatus and method for control automatic switching of streetlight
JP2016067811A (en) * 2014-10-01 2016-05-09 セイコーエプソン株式会社 Biological information detection system, biological information detection apparatus, and biological information detection system control method
JP2016224479A (en) * 2015-05-26 2016-12-28 オムロンヘルスケア株式会社 Sleep management device, sleep management method, and sleep management program
WO2019228323A1 (en) * 2018-05-29 2019-12-05 华为技术有限公司 Illumination adjustment method and terminal
EP3731240A1 (en) * 2019-04-24 2020-10-28 Intuity Media Lab GmbH Non-invasive monitoring for assistive living systems
WO2021004043A1 (en) * 2019-07-05 2021-01-14 芜湖美的厨卫电器制造有限公司 Water heater and control method thereof and computer-readable storage medium
WO2021196989A1 (en) * 2020-04-01 2021-10-07 华为技术有限公司 Sleep state determination method and system, wearable device, and storage medium
CN112988679A (en) * 2021-03-18 2021-06-18 北京大米科技有限公司 Log collection control method and device, storage medium and server

Also Published As

Publication number Publication date
CN114576840A (en) 2022-06-03

Similar Documents

Publication Publication Date Title
CN112268349B (en) Air conditioner, control method thereof, and computer-readable storage medium
CN112305923A (en) Control method of household appliance, control terminal and electronic device
CN111965991B (en) Authority adjusting method and device of intelligent control switch, intelligent control switch and storage medium
US20180046156A1 (en) Apparatus and method for controlling the noise level of appliances
CN110556107A (en) control method and system capable of automatically adjusting voice recognition sensitivity, air conditioner and readable storage medium
CN111870793A (en) Temperature pre-adjusting method and device, electronic equipment and readable storage medium
CN108253724A (en) A kind of refrigerator work mode control method and device, refrigerator
CN110910878B (en) Voice wake-up control method and device, storage medium and household appliance
CN114576840B (en) Method, electronic equipment and medium for shutdown based on WIFI channel state detection
CN112303845A (en) Multi-split air conditioner and control method and control device thereof
CN110749054B (en) Method and device for determining temperature change rate
CN112902389B (en) Method, device and equipment for defrosting air conditioner and storage medium
CN110736224B (en) Control method and device of intelligent household equipment, storage medium and processor
CN114992970B (en) Method and device for sending cleaning instruction, storage medium and electronic device
CN110864400A (en) Control method and device of air conditioning equipment and air conditioning equipment
CN114576816B (en) Air conditioner adjusting method and device based on infrared sensor
CN110941189A (en) Intelligent household system and control method thereof and readable storage medium
CN114187904B (en) Similarity threshold value acquisition method, voice home appliance and computer readable storage medium
CN113883665A (en) Air conditioner display screen control method and device, air conditioner and readable storage medium
CN115523586A (en) Method and device for controlling air conditioner, air conditioner and storage medium
CN111415191B (en) User classification method, device, electronic equipment and storage medium
CN114440427B (en) Air conditioner control method, air conditioner detection equipment and air conditioner
CN114067795B (en) Volume control method, volume control device and electronic equipment for smart home
CN111059722A (en) Control method and device of air conditioning equipment and server
CN114815635A (en) Computer readable storage medium, intelligent panel and voice interaction method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant