Intelligent household electrical appliance control method and device, equipment and storage medium
Through the target subcarrier analysis of WiFi channel status information, the problem of smart home appliances not being able to be turned off automatically is solved, the accuracy of user existence judgments and power savings are achieved, cost reduction and privacy is ensured.
Patent Information
- Application Number
- CN202310822146.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-05
- Publication Date
- 2025-01-07
AI Technical Summary
The prior art is difficult to accurately determine whether the user is at home, which leads to the inability to automatically turn off smart home appliances, resulting in waste of electricity, and is costly and cannot guarantee privacy.
Human perception analysis is performed by target subcarriers based on WiFi channel status information to determine whether the user is in the room and automatically turn off smart home appliances when the user is not at home.
It achieves more accurate user existence judgment, saves power costs, reduces the cost of smart home appliance control, and ensures privacy.
Smart Images

Figure CN119276647A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and in particular to a smart home appliance control method, device, equipment and storage medium. Background Art
[0002] In recent years, wireless communication technology has become more mature, and more scholars have begun to pay attention to applications other than data transmission. Currently, WiFi, which has a very wide coverage, has attracted great attention. In addition to the daily data transmission function, WiFi signals can also tell us relevant information about WiFi channels. By sensing WiFi signals and studying the transmission characteristics of WiFi in wireless channels, such as RSSI (Received Signal Strength Indicator) and CSI (Channel State Information), we can detect environmental changes, such as the relative movement between the receiver and the transmitter, and the movement of people in the environment. Although a variety of wireless technologies are developing these applications, such as Bluetooth, UWB (Ultra-wideband), Zigbee, etc., WiFi signals are more concerned due to their existing wide coverage, simple configuration, and low cost.
[0003] The main channel features used in the current WiFi environment perception field are RSSI and CSI. RSSI measures the sum of the superposition of multipath propagation signals. It is very simple to obtain and has been widely used in WiFi-based indoor positioning research. However, RSSI is not stable enough and fluctuates greatly due to the multipath effect, which causes errors in the results. Generally speaking, there are abundant multipath propagations indoors due to the presence of obstacles such as furniture and walls, which makes it difficult to detect based on RSSI. Compared with the coarse-grained information RSSI at the MAC layer (Media Access Control), the fine-grained information CSI at the PHY layer (Physical Layer) is based on OFDM (Orthogonal Frequency Division Multiplexing) and can obtain the channel frequency response on each subcarrier. It has higher robustness and provides more stable and reliable amplitude information than RSSI, as well as phase information.
[0004] Users often forget to turn off smart home appliances, such as smart air conditioners and smart TVs, when they go out, resulting in a waste of electricity. Existing technology requires cameras to be installed throughout the house to determine whether someone is at home, which is both costly and unable to guarantee privacy.
[0005] Therefore, how to better determine whether the user is at home based on WiFi to control smart home appliances is a technical problem that needs to be solved urgently. The presence sensing function combined with mobile phone communication can realize automatic reminder to turn off home appliances when no one is at home. Summary of the invention
[0006] The present invention provides a smart home appliance control method, device, equipment and storage medium, which determines the target subcarrier of channel state information, performs human perception analysis more accurately according to the target subcarrier, accurately determines that the user is not in the room, and then turns off the smart home appliances, saves electricity costs, and realizes home intelligence.
[0007] In a first aspect, the present invention provides a smart home appliance control method, which is applied to a controller, wherein the controller is connected to the smart home appliance and the smart terminal through communication signals, and the smart terminal includes at least WiFi. The smart home appliance control method includes:
[0008] When the smart home appliance is powered on, a target subcarrier of the channel state information is determined based on WiFi;
[0009] determining, according to the target subcarrier, whether the user is in a room corresponding to the smart home appliance;
[0010] When it is determined that the user is not in the room, the operation information of the smart home appliance is sent to the smart terminal of the user, and a shutdown instruction fed back by the user according to the operation information is received;
[0011] The smart home appliance is turned off according to the turn-off instruction.
[0012] Preferably, according to a smart home appliance control method provided by the present invention, the WiFi at least includes a WiFi receiving end, a WiFi transmitting end, and a WiFi link composed of the WiFi receiving end and the WiFi transmitting end;
[0013] The determining of the target subcarrier of the channel state information based on WiFi includes:
[0014] Get the receiving distance between the user and the WiFi receiver, and get the sending distance between the user and the WiFi transmitter;
[0015] Based on the receiving distance and the sending distance, calculating the scattering attenuation between the user and the WiFi link, and calculating the mean square error of the subcarriers in the WiFi receiving end to the WiFi channel state information signal;
[0016] The target subcarrier is determined based on the scattering attenuation and the mean square error of the subcarriers.
[0017] Preferably, according to a smart home appliance control method provided by the present invention,
[0018] The calculating, based on the receiving distance and the sending distance, the scattering attenuation between the user and the WiFi link includes:
[0019] Get the user height of the user;
[0020] The distance between the highest point of the user height and the WiFi link is taken as the user effective height;
[0021] Calculate the user effective height, the receiving distance, the sending distance and the acquired WiFi wavelength to obtain an attenuation parameter;
[0022] The attenuation parameter is integrated and calculated to obtain the scattering attenuation between the user and the WiFi link.
[0023] Preferably, according to a smart home appliance control method provided by the present invention,
[0024] The calculating the mean square error of the subcarriers in the WiFi receiving end to the WiFi channel state information signal includes:
[0025] Obtain subcarrier parameters of a preset number of subcarriers, where the subcarrier parameters include at least a center subcarrier frequency, a subcarrier frequency of each subcarrier, and a standard deviation of an amplitude of each subcarrier;
[0026] The central subcarrier frequency, the subcarrier frequency of each subcarrier and the standard deviation of each subcarrier amplitude are cumulatively added and calculated to obtain the mean square error of the preset number of subcarriers.
[0027] Preferably, according to a smart home appliance control method provided by the present invention,
[0028] The determining a target subcarrier based on the scattering attenuation and the mean square error of the subcarriers includes:
[0029] Compare the receiving distance with a preset distance threshold to obtain a distance comparison result;
[0030] Determine a first channel state information subcarrier amplitude and a second channel state information subcarrier amplitude according to the distance comparison result;
[0031] Constructing a subcarrier set based on the first channel state information subcarrier amplitude, the second channel state information subcarrier amplitude, the scattering attenuation and the mean square error of a preset number of subcarriers;
[0032] The target subcarrier is acquired from the subcarrier set.
[0033] Preferably, according to a smart home appliance control method provided by the present invention,
[0034] The determining, according to the distance comparison result, the first channel state information subcarrier amplitude and the second channel state information subcarrier amplitude comprises:
[0035] When the distance comparison result indicates that the receiving distance is less than the distance threshold, determining the amplitude of the first channel state information subcarrier when the user is close to the WiFi receiving end;
[0036] When the distance comparison result indicates that the receiving distance is greater than or equal to the distance threshold, determine the second channel state information subcarrier amplitude when the user is far away from the WiFi receiving end.
[0037] In a second aspect, the present invention further provides a smart home appliance control device, which is applied to a controller, wherein the controller is connected to a smart home appliance and a smart terminal through communication signals, wherein the smart terminal at least includes WiFi, and the smart home appliance control device includes:
[0038] A determination module, used to determine a target subcarrier of channel state information based on WiFi when the smart home appliance is powered on and started;
[0039] A determination module, configured to determine whether the user is in a room corresponding to the smart home appliance according to the target subcarrier;
[0040] A sending module, configured to send the operation information of the smart home appliance to the smart terminal of the user when it is determined that the user is not in the room, and receive a shutdown instruction fed back by the user according to the operation information;
[0041] A shut down module is used to shut down the smart home appliance according to the shut down instruction.
[0042] In a third aspect, the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-described smart home appliance control methods are implemented.
[0043] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described smart home appliance control methods.
[0044] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned smart home appliance control methods.
[0045] The present invention provides a smart home appliance control method, device, equipment and storage medium. When the smart home appliance is powered on, the target subcarrier of the channel state information is determined based on WiFi; based on the target subcarrier, whether the user is in the room corresponding to the smart home appliance is judged; when it is determined that the user is not in the room, the operation information of the smart home appliance is sent to the user's smart terminal, and a shutdown instruction fed back by the user according to the operation information is received; and the smart home appliance is shut down according to the shutdown instruction. By determining the target subcarrier of the channel state information, human perception analysis can be performed more accurately based on the target subcarrier, and it can be accurately determined that the user is not in the room, and then the smart home appliance is shut down, saving electricity costs and realizing home intelligence. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 It is a flow chart of the intelligent home appliance control method provided by the present invention;
[0048] Figure 2 The present invention Figure 1 Schematic diagram of the process of step S100;
[0049] Figure 3 It is a structural schematic diagram of the intelligent home appliance control device provided by the present invention;
[0050] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0052] Combine the following Figure 1-Figure 4The present invention describes a smart home appliance control method, device, equipment and storage medium. The embodiments provided by the present invention determine the target subcarrier of the channel state information to more accurately perform human perception analysis based on the target subcarrier, accurately determine that the user is not in the room, and then turn off the smart home appliances, save electricity costs, and realize home intelligence.
[0053] like Figure 1 As shown, it is a schematic diagram of an implementation flow of a smart home appliance control method provided by an embodiment of the present invention. A smart home appliance control method may include but is not limited to steps S100 to S400.
[0054] S100, when the smart home appliance is powered on and started, determining a target subcarrier of channel state information based on WiFi;
[0055] S200, judging whether the user is in a room corresponding to the smart home appliance according to the target subcarrier;
[0056] S300, when it is determined that the user is not in the room, sending the operation information of the smart home appliance to the smart terminal of the user, and receiving a shutdown instruction fed back by the user according to the operation information;
[0057] S400: shut down the smart home appliance according to the shut down instruction.
[0058] It should be noted that the executor of a smart home appliance control method according to an embodiment of the present application may be a hardware device with data information processing capabilities and / or the necessary software required to drive the hardware device to work.
[0059] Optionally, the execution subject may include but is not limited to workstations, servers, computers, user terminals and other intelligent devices. Among them, user terminals include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, etc.
[0060] A smart home appliance control method provided by an embodiment of the present invention is applied to a controller, wherein the controller is connected to a smart home appliance and a smart terminal through communication signals, respectively, and the smart terminal includes at least WiFi.
[0061] The WiFi at least includes a WiFi receiving end, a WiFi transmitting end, and a WiFi link composed of the WiFi receiving end and the WiFi transmitting end.
[0062] Smart terminals include at least but are not limited to: smart phones, smart tablets, smart watches, etc.
[0063] WiFi is a mobile hotspot for smart terminals.
[0064] In step S100 of some embodiments, when the smart home appliance is powered on, a target subcarrier of channel state information is determined based on WiFi.
[0065] It can be understood that when the smart home appliance is powered on and started, the receiving distance between the user and the WiFi receiving end is first obtained, and the sending distance between the user and the WiFi sending end is obtained. Then, based on the receiving distance and the sending distance, the scattering attenuation between the user and the WiFi link is calculated, and the mean square error of the subcarriers in the WiFi receiving end to WiFi channel state information signal is calculated. Finally, based on the scattering attenuation and the mean square error of the subcarriers, the target subcarrier is determined.
[0066] In step S200 of some embodiments, it is determined whether the user is in the room corresponding to the smart home appliance based on the target subcarrier.
[0067] It can be understood that after executing step S100 and when the smart home appliance is powered on, after the step of determining the target subcarrier of the channel state information based on WiFi, the specific execution steps may be: obtaining the user's positioning information according to the determined target subcarrier, and obtaining the preset room map information, and performing matching processing according to the room map information and the user's positioning information. If the user's positioning information and the room map information match successfully, it means that the user is in the room corresponding to the smart home appliance.
[0068] On the contrary, if the user's positioning information and the room map information are not matched successfully, it means that the user is not in the room corresponding to the smart home appliance.
[0069] Furthermore, based on the location information of the smart home appliance and the room map information, the room location information of the smart home appliance is determined, and the room location information of the smart home appliance is matched with the positioning information of the user to determine whether the user is in the room corresponding to the smart home appliance based on the matching result.
[0070] In step S300 of some embodiments, when it is determined that the user is not in the room, the operation information of the smart home appliance is sent to the user's smart terminal, and a shutdown instruction fed back by the user based on the operation information is received.
[0071] It can be understood that after executing step S200 to determine whether the user is in the room corresponding to the smart home appliance according to the target subcarrier, the specific execution steps may be: when the user's positioning information and the room map information are not successfully matched and the user is not in the room corresponding to the smart home appliance, the operation information of the smart home appliance is sent to the user's smart terminal, and a shutdown instruction fed back by the user based on the operation information is received.
[0072] Smart home appliances include but are not limited to: smart air conditioners, smart TVs, smart speakers, etc.
[0073] The operation information of the smart home appliance includes at least but is not limited to: the operation mode of the smart home appliance, the operation time of the smart home appliance, the scheduled tasks of the smart home appliance, etc.
[0074] When the user is not in the room and the operation information of the smart home appliance is sent to the user's smart terminal, the user issues a shutdown instruction according to the operation information of the smart home appliance to shut down the operation of the smart home appliance according to the shutdown instruction.
[0075] In step S400 of some embodiments, the smart home appliance is turned off according to the shutdown instruction.
[0076] It can be understood that after executing step S300, when it is determined that the user is not in the room, the operation information of the smart home appliance is sent to the user's smart terminal, and the shutdown instruction given by the user based on the operation information is received, the specific execution steps may be: shutting down the operation of the smart home appliance according to the received shutdown instruction, thereby saving electricity resource costs.
[0077] In some embodiments, reference Figure 2 As shown, step S100 may also include but is not limited to steps S210 to S230.
[0078] S210, obtaining a receiving distance between the user and the WiFi receiving end, and obtaining a sending distance between the user and the WiFi sending end;
[0079] S220, calculating the scattering attenuation between the user and the WiFi link based on the receiving distance and the sending distance, and calculating the mean square error of the subcarriers in the WiFi receiving end to the WiFi channel state information signal;
[0080] S230: Determine the target subcarrier based on the scattering attenuation and the mean square error of the subcarriers.
[0081] In step S210 of some embodiments, a receiving distance between the user and the WiFi receiving end is obtained, and a sending distance between the user and the WiFi sending end is obtained.
[0082] It can be understood that, let the receiving distance between the user and the WiFi receiver be d ir , let the transmission distance d between the user and the WiFi transmitter it .
[0083] In step S220 of some embodiments, based on the receiving distance and the transmitting distance, the scattering attenuation between the user and the WiFi link is calculated, and the mean square error of the subcarriers in the WiFi receiving end to WiFi channel state information signal is calculated.
[0084] It can be understood that, based on the receiving distance and the sending distance, the specific execution steps of calculating the scattering attenuation between the user and the WiFi link may be: obtaining the user height of the user;
[0085] The distance between the highest point of the user height and the WiFi link is taken as the user effective height;
[0086] Calculate the user effective height, the receiving distance, the sending distance and the acquired WiFi wavelength to obtain an attenuation parameter;
[0087] The attenuation parameter is integrated and calculated to obtain the scattering attenuation between the user and the WiFi link.
[0088] Let the user's height be h1, and the distance between the highest point of the user's height and the WiFi link be the user's effective height. The user's effective height is h t .
[0089] It should be noted that a WiFi link is a link composed of a WiFi receiver and a WiFi transmitter.
[0090] The user effective height, the receiving distance, the sending distance and the acquired WiFi wavelength are calculated to obtain the calculation formula of the attenuation parameter v as follows:
[0091]
[0092] Where v is the attenuation parameter, λ is the WiFi wavelength, and d ir is the receiving distance between the user and the WiFi receiver, d it It is the transmission distance between the user and the WiFi transmitter.
[0093] The attenuation parameter is integrated and calculated to obtain the following calculation formula for the scattering attenuation between the user and the WiFi link:
[0094]
[0095] Among them, D rit For users with the WiFi link L rtThe scattering attenuation, v is the attenuation parameter, J represents the imaginary symbol, that is, i, which is not a variable, but just a symbol, and z is a temporary mathematical variable in the definite integral calculation, which has no meaning. After the definite integral calculation, z will disappear, that is, there is no z in the integral calculation result.
[0096] It can be further understood that the step of calculating the mean square error of subcarriers in the WiFi receiving end to WiFi channel state information signal may specifically be: obtaining subcarrier parameters of a preset number of subcarriers.
[0097] It should be noted that the subcarrier parameters include at least the center subcarrier frequency, the subcarrier frequency of each subcarrier, and the standard deviation of each subcarrier amplitude;
[0098] The central subcarrier frequency, the subcarrier frequency of each subcarrier and the standard deviation of each subcarrier amplitude are cumulatively added and calculated to obtain the mean square error of the preset number of subcarriers.
[0099] Let the preset number be M, the mean square error of the preset number of subcarriers be Δ, Δ is the mean square error of the M subcarriers in the WiFi receiving end to the WiFiCSI signal, and the specific calculation formula is as follows:
[0100]
[0101] Where, Δ is the mean square error of M subcarriers, f o is the center subcarrier frequency, f m is the frequency of the mth subcarrier, σ m is the standard deviation of the amplitude of each subcarrier when there is no one near the WiFi link.
[0102] In step S230 of some embodiments, the target subcarrier is determined based on the scattering attenuation and the mean square error of the subcarriers.
[0103] It can be understood that after executing step S220, the specific execution steps may be: comparing the receiving distance with a preset distance threshold to obtain a distance comparison result;
[0104] Determine a first channel state information subcarrier amplitude and a second channel state information subcarrier amplitude according to the distance comparison result;
[0105] Constructing a subcarrier set based on the first channel state information subcarrier amplitude, the second channel state information subcarrier amplitude, the scattering attenuation and the mean square error of a preset number of subcarriers;
[0106] The target subcarrier is acquired from the subcarrier set.
[0107] First, it should be noted that the channel state information subcarrier amplitude at least includes: a first channel state information subcarrier amplitude and a second channel state information subcarrier amplitude.
[0108] Furthermore, the receiving distance d between the user and the WiFi receiving end is ir The distance is compared with the preset distance threshold to obtain a distance comparison result.
[0109] When the distance comparison result indicates that the receiving distance is less than the distance threshold, the amplitude of the first channel state information subcarrier when the user is close to the WiFi receiving end is determined.
[0110] When the user is close to the WiFi receiving terminal or close to the WiFi link, the amplitude of each CSI subcarrier, that is, the amplitude of the first channel state information subcarrier is:
[0111] K={K1,K2,…,K M}
[0112] When the distance comparison result indicates that the receiving distance is greater than or equal to the distance threshold, determine the second channel state information subcarrier amplitude when the user is far away from the WiFi receiving end.
[0113] When the user is far away from the WiFi receiving terminal or the WiFi link, the amplitude of each CSI subcarrier, that is, the amplitude of the second channel state information subcarrier is:
[0114] I={I1,I2,…,I M}
[0115] Based on the first channel state information subcarrier amplitude, the second channel state information subcarrier amplitude, the scattering attenuation and the mean square error of a preset number of subcarriers, a subcarrier set is constructed, and the subcarrier set U is as follows:
[0116] U={j:|K j -I j |>Δ+D rit ,1≤j≤M}
[0117] Wherein, U is the subcarrier set, K is the amplitude of the first channel state information subcarrier, I is the amplitude of the second channel state information subcarrier, M is the preset number, Δ is the mean square error of M subcarriers, D rit For users with the WiFi link L rt The scattering is attenuated.
[0118] The target subcarrier is obtained from the subcarrier set, and then used for human perception analysis according to the target subcarrier, which can be used to determine the precise location information of the user. The above-determined target subcarrier is sensitive, stable, and highly reliable.
[0119] The present invention provides a smart home appliance control method, device, equipment and storage medium. When the smart home appliance is powered on, the target subcarrier of the channel state information is determined based on WiFi; based on the target subcarrier, whether the user is in the room corresponding to the smart home appliance is judged; when it is determined that the user is not in the room, the operation information of the smart home appliance is sent to the user's smart terminal, and a shutdown instruction fed back by the user according to the operation information is received; and the smart home appliance is shut down according to the shutdown instruction. By determining the target subcarrier of the channel state information, human perception analysis can be performed more accurately based on the target subcarrier, and it can be accurately determined that the user is not in the room, and then the smart home appliance is shut down, saving electricity costs and realizing home intelligence.
[0120] The smart home appliance control device provided by the present invention is described below. The smart home appliance control device described below and the smart home appliance control method described above can be referenced to each other.
[0121] like Figure 3 FIG. 1 is a schematic diagram of the structure of the intelligent home appliance control device provided by the present invention, wherein the intelligent home appliance control device comprises:
[0122] A determination module 310, configured to determine a target subcarrier of channel state information based on WiFi when the smart home appliance is powered on;
[0123] A determination module 320, configured to determine whether the user is in a room corresponding to the smart home appliance according to the target subcarrier;
[0124] The sending module 330 is used to send the operation information of the smart home appliance to the smart terminal of the user when it is determined that the user is not in the room, and receive a shutdown instruction fed back by the user according to the operation information;
[0125] The shut down module 340 is used to shut down the smart home appliance according to the shut down instruction.
[0126] Preferably, according to the smart home appliance control device provided by the present invention, the determination module 310 is specifically used to obtain the receiving distance between the user and the WiFi receiving end, and obtain the sending distance between the user and the WiFi sending end;
[0127] Based on the receiving distance and the sending distance, calculating the scattering attenuation between the user and the WiFi link, and calculating the mean square error of the subcarriers in the WiFi receiving end to the WiFi channel state information signal;
[0128] The target subcarrier is determined based on the scattering attenuation and the mean square error of the subcarriers.
[0129] Preferably, according to the smart home appliance control device provided by the present invention, the determination module 310 is specifically used to obtain the user height of the user;
[0130] The distance between the highest point of the user height and the WiFi link is taken as the user effective height;
[0131] Calculate the user effective height, the receiving distance, the sending distance and the acquired WiFi wavelength to obtain an attenuation parameter;
[0132] The attenuation parameter is integrated and calculated to obtain the scattering attenuation between the user and the WiFi link.
[0133] Preferably, according to the smart home appliance control device provided by the present invention, the determination module 310 is further specifically used to obtain subcarrier parameters of a preset number of subcarriers, wherein the subcarrier parameters at least include a center subcarrier frequency, a subcarrier frequency of each subcarrier, and a standard deviation of an amplitude of each subcarrier;
[0134] The central subcarrier frequency, the subcarrier frequency of each subcarrier and the standard deviation of each subcarrier amplitude are cumulatively added and calculated to obtain the mean square error of the preset number of subcarriers.
[0135] Preferably, according to the smart home appliance control device provided by the present invention, the determination module 310 is further configured to compare the receiving distance with a preset distance threshold to obtain a distance comparison result;
[0136] Determine a first channel state information subcarrier amplitude and a second channel state information subcarrier amplitude according to the distance comparison result;
[0137] Constructing a subcarrier set based on the first channel state information subcarrier amplitude, the second channel state information subcarrier amplitude, the scattering attenuation and the mean square error of a preset number of subcarriers;
[0138] The target subcarrier is acquired from the subcarrier set.
[0139] Preferably, according to the smart home appliance control device provided by the present invention, the channel state information subcarrier amplitude at least includes: a first channel state information subcarrier amplitude and a second channel state information subcarrier amplitude; the determination module 310 is further configured to determine the first channel state information subcarrier amplitude when the user is close to the WiFi receiving end when the distance comparison result indicates that the receiving distance is less than the distance threshold;
[0140] When the distance comparison result indicates that the receiving distance is greater than or equal to the distance threshold, determine the second channel state information subcarrier amplitude when the user is far away from the WiFi receiving end.
[0141] The present invention provides a smart home appliance control method, device, equipment and storage medium. When the smart home appliance is powered on, the target subcarrier of the channel state information is determined based on WiFi; based on the target subcarrier, whether the user is in the room corresponding to the smart home appliance is judged; when it is determined that the user is not in the room, the operation information of the smart home appliance is sent to the user's smart terminal, and a shutdown instruction fed back by the user according to the operation information is received; and the smart home appliance is shut down according to the shutdown instruction. By determining the target subcarrier of the channel state information, human perception analysis can be performed more accurately based on the target subcarrier, and it can be accurately determined that the user is not in the room, and then the smart home appliance is shut down, saving electricity costs and realizing home intelligence.
[0142] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the smart home appliance control method, which includes: when the smart home appliance is powered on and started, determining the target subcarrier of the channel state information based on WiFi; judging whether the user is in the room corresponding to the smart home appliance according to the target subcarrier; when it is judged that the user is not in the room, sending the operation information of the smart home appliance to the smart terminal of the user, and receiving the shutdown instruction fed back by the user according to the operation information; and shutting down the smart home appliance according to the shutdown instruction.
[0143] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0144] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the smart home appliance control method provided by the above methods, which method includes: when the smart home appliance is powered on and started, determining the target subcarrier of the channel state information based on WiFi; judging whether the user is in the room corresponding to the smart home appliance according to the target subcarrier; when it is determined that the user is not in the room, sending the operation information of the smart home appliance to the user's smart terminal, and receiving the shutdown instruction fed back by the user according to the operation information; and shutting down the smart home appliance according to the shutdown instruction.
[0145] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the smart home appliance control method provided by the above-mentioned methods, the method comprising: when the smart home appliance is powered on and started, determining the target subcarrier of the channel state information based on WiFi; judging whether the user is in the room corresponding to the smart home appliance according to the target subcarrier; when it is determined that the user is not in the room, sending the operation information of the smart home appliance to the smart terminal of the user, and receiving the shutdown instruction fed back by the user according to the operation information; and shutting down the smart home appliance according to the shutdown instruction.
[0146] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0148] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A smart home appliance control method, characterized in that: Applied to a controller, the controller is connected to a smart home appliance and a smart terminal respectively through communication signals, the smart terminal at least includes WiFi, and the smart home appliance control method includes: When the smart home appliance is powered on, a target subcarrier of the channel state information is determined based on WiFi; determining, according to the target subcarrier, whether the user is in a room corresponding to the smart home appliance; When it is determined that the user is not in the room, the operation information of the smart home appliance is sent to the smart terminal of the user, and a shutdown instruction fed back by the user according to the operation information is received; The smart home appliance is turned off according to the turn-off instruction.
2. The smart home appliance control method according to claim 1, characterized in that: The WiFi at least includes a WiFi receiving end, a WiFi transmitting end, and a WiFi link composed of the WiFi receiving end and the WiFi transmitting end; The determining of the target subcarrier of the channel state information based on WiFi includes: Get the receiving distance between the user and the WiFi receiver, and get the sending distance between the user and the WiFi transmitter; Based on the receiving distance and the sending distance, calculating the scattering attenuation between the user and the WiFi link, and calculating the mean square error of the subcarriers in the WiFi receiving end to the WiFi channel state information signal; The target subcarrier is determined based on the scattering attenuation and the mean square error of the subcarriers.
3. The smart home appliance control method according to claim 2, characterized in that: The calculating, based on the receiving distance and the sending distance, the scattering attenuation between the user and the WiFi link includes: Get the user height of the user; The distance between the highest point of the user height and the WiFi link is taken as the user effective height; Calculate the user effective height, the receiving distance, the sending distance and the acquired WiFi wavelength to obtain an attenuation parameter; The attenuation parameter is integrated and calculated to obtain the scattering attenuation between the user and the WiFi link.
4. The smart home appliance control method according to claim 2, characterized in that: The calculating the mean square error of the subcarriers in the WiFi receiving end to the WiFi channel state information signal includes: Obtain subcarrier parameters of a preset number of subcarriers, where the subcarrier parameters include at least a center subcarrier frequency, a subcarrier frequency of each subcarrier, and a standard deviation of an amplitude of each subcarrier; The central subcarrier frequency, the subcarrier frequency of each subcarrier and the standard deviation of each subcarrier amplitude are cumulatively added and calculated to obtain the mean square error of the preset number of subcarriers.
5. The intelligent home appliance control method according to claim 2, characterized in that: The determining a target subcarrier based on the scattering attenuation and the mean square error of the subcarriers includes: Compare the receiving distance with a preset distance threshold to obtain a distance comparison result; Determine a first channel state information subcarrier amplitude and a second channel state information subcarrier amplitude according to the distance comparison result; Constructing a subcarrier set based on the first channel state information subcarrier amplitude, the second channel state information subcarrier amplitude, the scattering attenuation and the mean square error of a preset number of subcarriers; The target subcarrier is acquired from the subcarrier set.
6. The intelligent home appliance control method according to claim 5, characterized in that: The determining, according to the distance comparison result, the first channel state information subcarrier amplitude and the second channel state information subcarrier amplitude comprises: When the distance comparison result indicates that the receiving distance is less than the distance threshold, determining the amplitude of the first channel state information subcarrier when the user is close to the WiFi receiving end; When the distance comparison result indicates that the receiving distance is greater than or equal to the distance threshold, determine the second channel state information subcarrier amplitude when the user is far away from the WiFi receiving end.
7. A smart home appliance control device, characterized in that: Applied to a controller, the controller is connected to a smart home appliance and a smart terminal through communication signals, the smart terminal at least includes WiFi, and the smart home appliance control device includes: A determination module, used to determine a target subcarrier of channel state information based on WiFi when the smart home appliance is powered on and started; A determination module, configured to determine whether the user is in a room corresponding to the smart home appliance according to the target subcarrier; A sending module, configured to send the operation information of the smart home appliance to the smart terminal of the user when it is determined that the user is not in the room, and receive a shutdown instruction fed back by the user according to the operation information; A shut down module is used to shut down the smart home appliance according to the shut down instruction.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the smart home appliance control method according to any one of claims 1 to 6 are implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the smart home appliance control method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the smart home appliance control method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Human body sensing method and device for air conditioner, air conditioner and storage medium
CN119983525A