CN112943664B - Fan control method, system, fan and computer readable storage medium - Google Patents

Fan control method, system, fan and computer readable storage medium Download PDF

Info

Publication number
CN112943664B
CN112943664B CN201911177153.2A CN201911177153A CN112943664B CN 112943664 B CN112943664 B CN 112943664B CN 201911177153 A CN201911177153 A CN 201911177153A CN 112943664 B CN112943664 B CN 112943664B
Authority
CN
China
Prior art keywords
fan
air supply
body temperature
user
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
CN201911177153.2A
Other languages
Chinese (zh)
Other versions
CN112943664A (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.)
Foshan Viomi Electrical Technology Co Ltd
Original Assignee
Foshan Viomi Electrical Technology Co Ltd
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 Foshan Viomi Electrical Technology Co Ltd filed Critical Foshan Viomi Electrical Technology Co Ltd
Priority to CN201911177153.2A priority Critical patent/CN112943664B/en
Publication of CN112943664A publication Critical patent/CN112943664A/en
Application granted granted Critical
Publication of CN112943664B publication Critical patent/CN112943664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/004Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids by varying driving speed
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/007Conjoint control of two or more different functions
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F05INDEXING SCHEMES RELATING TO ENGINES OR PUMPS IN VARIOUS SUBCLASSES OF CLASSES F01-F04
    • F05DINDEXING SCHEME FOR ASPECTS RELATING TO NON-POSITIVE-DISPLACEMENT MACHINES OR ENGINES, GAS-TURBINES OR JET-PROPULSION PLANTS
    • F05D2270/00Control
    • F05D2270/30Control parameters, e.g. input parameters
    • F05D2270/303Temperature
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F05INDEXING SCHEMES RELATING TO ENGINES OR PUMPS IN VARIOUS SUBCLASSES OF CLASSES F01-F04
    • F05DINDEXING SCHEME FOR ASPECTS RELATING TO NON-POSITIVE-DISPLACEMENT MACHINES OR ENGINES, GAS-TURBINES OR JET-PROPULSION PLANTS
    • F05D2270/00Control
    • F05D2270/30Control parameters, e.g. input parameters
    • F05D2270/313Air temperature
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B30/00Energy efficient heating, ventilation or air conditioning [HVAC]
    • Y02B30/70Efficient control or regulation technologies, e.g. for control of refrigerant flow, motor or heating

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Control Of Positive-Displacement Air Blowers (AREA)

Abstract

The application provides a fan control method, a system, a fan and a computer readable storage medium, wherein the method comprises the following steps: acquiring sign data of a user through wearable equipment, and determining whether the user is in a sleep state or not according to the sign data; when a user is in a sleep state, acquiring indoor temperature, and determining a target working mode of the fan according to the indoor temperature and the physical sign data; if the target working mode is a sleep mode and the fan blades of the fan are in a rotating state, controlling the fan blades of the fan to be in a static state so as to enable the fan to enter the sleep mode; if the target working mode is an air supply mode, determining air supply parameters of the fan according to the sign data and the indoor temperature; and controlling the fan blades of the fan to be in a rotating state according to the air supply parameters so as to enable the fan to enter a corresponding air supply mode. This application can intelligent control fan air supply, avoids the user to be awaken, cold awaken or catch a cold by heat.

Description

Fan control method, system, fan and computer readable storage medium
Technical Field
The present disclosure relates to the field of fan control technologies, and in particular, to a fan control method, system, fan, and computer readable storage medium.
Background
At present, when the indoor temperature is higher, a user can select to use an air conditioner or a fan as an electric appliance for cooling, when the user sleeps, the user usually adjusts the gear of the fan to a proper gear or closes the fan at regular time, but in the sleeping process, the user can be waken up or be waken up, the user needs to manually adjust the fan, the user is extremely inconvenient to use, the fan cannot be intelligently adjusted, and the user experience is poor.
Disclosure of Invention
The main purpose of the present application is to provide a fan control method, system, fan and computer-readable storage medium, which aim to intelligently adjust the fan when a user is in a sleep state, so as to avoid the user from being awakened, cold or catching a cold, and improve user experience.
In a first aspect, the present application provides a fan control method, including:
acquiring sign data of a user through wearable equipment at preset time intervals, and determining whether the user is in a sleep state or not according to the sign data;
when a user is in a sleep state, acquiring indoor temperature, and determining a target working mode of the fan according to the indoor temperature and the physical sign data;
if the target working mode is a sleep mode and the fan blades of the fan are in a rotating state, controlling the fan blades of the fan to be in a static state so as to enable the fan to enter the sleep mode;
if the target working mode is an air supply mode, determining air supply parameters of the fan according to the sign data and the indoor temperature;
and controlling the fan blades of the fan to be in a rotating state according to the air supply parameters so as to enable the fan to enter a corresponding air supply mode.
In a second aspect, the present application further provides a fan control system, including a fan, a wearable device, and a master control device, wherein:
the wearable device is used for acquiring sign data of a user at preset time intervals and sending the sign data to the main control device;
the main control device is used for receiving the physical sign data sent by the wearable device and determining whether the user is in a sleep state or not according to the physical sign data;
the main control device is further configured to acquire an indoor temperature if the user is in a sleep state, and determine a target working mode of the fan according to the indoor temperature and the physical sign data;
the main control device is further configured to send a sleep instruction to the fan if the target operating mode is a sleep mode and the fan blades of the fan are in a rotating state;
the fan is used for receiving the sleep instruction and controlling fan blades of the fan to be in a static state according to the sleep instruction so as to enable the fan to be in a sleep mode;
the main control equipment is also used for determining the air supply parameters of the fan according to the sign data and the indoor temperature if the target working mode is the air supply mode, generating corresponding air supply control instructions according to the air supply parameters and sending the air supply control instructions to the fan;
the fan is also used for receiving the air supply control instruction sent by the master control equipment and controlling the fan blades of the fan to be in a rotating state according to the air supply control instruction so as to enable the fan to be in an air supply mode.
In a third aspect, the present application further provides a fan comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the fan control method as described above.
In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the fan control method as described above.
The application provides a fan control method, a system, a fan and a computer readable storage medium, and the fan is controlled to supply air based on physical sign data and indoor temperature of a user when the user is in a sleep state, so that the user can be prevented from being awakened by heat, awakened by cold or catching a cold, the air supply parameter of the fan does not need to be manually adjusted by the user, and the user experience is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a fan embodying embodiments of the present application;
fig. 2 is a schematic flow chart illustrating a fan control method according to an embodiment of the present disclosure;
FIG. 3 is a schematic block diagram of a fan control system provided by an embodiment of the present application;
fig. 4 is a block diagram schematically illustrating a structure of a fan according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a fan in the embodiment of the present application, and as shown in fig. 1, the fan 100 includes a fan head 101, a base 102, and a support rod 103, one end of the support rod 103 is connected to the fan head 101, and the other end of the support rod 103 is connected to the base 102, the fan 100 further includes a first motor and a second motor (not shown in the figure), the first motor is used for controlling the fan head 101 to rotate in a yaw direction, a rotation range of the yaw direction is a first preset rotation range, the second motor is used for controlling the fan head 101 to rotate in a pitch direction, and a rotation range of the pitch direction is a second preset rotation range. It should be noted that the first preset rotation range and the second preset rotation range may be set based on actual situations, and the present application is not limited to this. Optionally, the first predetermined range of rotation is 0-360 ° and the second predetermined range of rotation is 30-150 °.
The fan further comprises a temperature sensor and a processor (not shown in the figure), wherein the temperature sensor is used for collecting the indoor temperature of an indoor area where the fan is located and sending the indoor temperature to the processor, the processor is used for determining whether the user is in a sleep state according to the physical sign data of the user, and when the user is in the sleep state, the target working mode of the fan is determined according to the indoor temperature and the physical sign data; if the target working mode is the sleep mode and the fan blades of the fan are in a rotating state, controlling the fan blades of the fan to be in a static state so as to enable the fan to enter the sleep mode; if the target working mode is an air supply mode, determining air supply parameters of the fan according to the physical sign data and the indoor temperature; and controlling the fan blades of the fan to be in a rotating state according to the air supply parameters so as to enable the fan to enter a corresponding air supply mode.
The Processor may be a Central Processing Unit (CPU), or may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable gate array (FPGA) or other Programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments and features of the embodiments described below can be combined with each other without conflict.
Referring to fig. 2, fig. 2 is a flowchart illustrating a fan control method according to an embodiment of the present disclosure.
As shown in fig. 2, the fan control method includes steps S101 to S105.
S101, acquiring sign data of a user through wearable equipment, and determining whether the user is in a sleep state or not according to the sign data.
The wearable device is worn by a user, the wearable device is in communication connection with the fan through Bluetooth or WiFi and the like, the wearable device collects sign data of the user at preset intervals and sends the sign data to the fan, and the fan determines whether the user is in a sleep state or not according to the sign data. Wherein, this wearable equipment includes intelligent bracelet, intelligent armlet and intelligent necklace, and this sign data include user's rhythm of the heart, body temperature, pulse and blood pressure etc. at different moments. It should be noted that the preset time may be set based on actual situations, and the present application is not limited to this.
In one embodiment, a heart rate variation curve and a body temperature variation curve of a user are generated according to heart rate information and body temperature information in the physical sign data; and determining whether the user is in a sleep state or not according to the heart rate change curve and the body temperature change curve. The heart rate information comprises heart rates of users at different moments, the body temperature information comprises body temperatures of the users at different moments, namely, heart rate variation curves of the users are generated according to the heart rates of the users at different moments, and body temperature variation curves of the users are generated according to the body temperatures of the users at different moments. Whether the user is in the sleep state or not can be accurately determined through the heart rate change curve and the body temperature change curve.
Specifically, the heart rate change condition of the user is determined according to the heart rate change curve, and the body temperature change condition of the user is determined according to the body temperature change curve; if the heart rate change condition is that the heart rate of the user is gradually reduced and is kept unchanged within a preset heart rate range, and the body temperature change condition is that the body temperature of the user is gradually reduced and is kept unchanged within a preset temperature range, it can be determined that the user is in a sleep state. It should be noted that the preset heart rate range and the preset temperature range can be obtained based on experiments, and the present application is not limited to this. Optionally, the heart rate range and the body temperature range of the user when sleeping can be determined according to the collected physical sign data, so as to set the preset heart rate range and the preset temperature range.
In one embodiment, a preset heart rate change curve and a preset body temperature change curve are obtained, the similarity between the heart rate change curve and the preset heart rate change curve is calculated and recorded as a first similarity, and the similarity between the body temperature change curve and the preset body temperature change curve is calculated and recorded as a second similarity; and determining whether the first similarity and the second similarity are greater than or equal to a preset similarity threshold, and if the first similarity and the second similarity are greater than or equal to the preset similarity threshold, determining that the user is in a sleep state. It should be noted that the preset heart rate variation curve, the preset body temperature variation curve, and the preset similarity threshold may be set based on actual conditions, which is not specifically limited in the present application.
And calculating the similarity between the heart rate change curve and the preset heart rate change curve as a first similarity, and calculating the similarity between the body temperature change curve and the preset body temperature change curve as a second similarity through a cosine similarity calculation formula or a Pearson correlation coefficient calculation formula.
And S102, when the user is in a sleep state, acquiring indoor temperature, and determining a target working mode of the fan according to the indoor temperature and the physical sign data.
When a user is in a sleep state, the indoor temperature is collected through the temperature sensor, and the target working mode of the fan is determined according to the indoor temperature and the physical sign data. The working modes of the fan comprise a sleep mode and an air supply mode, wherein the fan blades in the sleep mode are in a static state, and the fan blades in the air supply mode are in a rotating state.
In one embodiment, the current body temperature of the user is obtained from the physical sign data, and whether the indoor temperature is less than or equal to the preset temperature and whether the current body temperature is less than or equal to the preset body temperature are determined; if the indoor temperature is less than or equal to the preset temperature and the current body temperature is less than or equal to the preset body temperature, determining that the target working mode of the fan is the sleep mode; and if the indoor temperature is higher than the preset temperature and the current body temperature is higher than the preset body temperature, determining that the target working mode of the fan is the air supply mode. It should be noted that the preset temperature and the preset body temperature may be set based on actual situations, which is not specifically limited in this application.
Step S103, if the target working mode is the sleep mode and the fan blades of the fan are in a rotating state, controlling the fan blades of the fan to be in a static state so as to enable the fan to enter the sleep mode.
If the target working mode of the fan is the sleep mode and the fan blades of the fan are in the rotating state, namely the fan in the air supply mode needs to be converted into the sleep mode, the fan blades of the fan are controlled to be in the static state, so that the fan enters the sleep mode. The fan blade in the dormant mode is in a static state, and the fan blade in the air supply mode is in a rotating state. When the body temperature of the user is lowered and the indoor temperature is low, the fan is turned off, and the user can be prevented from catching a cold or being awakened by cold.
And step S104, if the target working mode is an air supply mode, determining air supply parameters of the fan according to the physical sign data and the indoor temperature.
And if the target working mode of the fan is an air supply mode, determining air supply parameters of the fan according to the physical sign data and the indoor temperature of the user. The air supply parameters comprise an air supply gear, an air supply angle of the fan head in the vertical direction and an air supply angle of the fan head in the horizontal direction. It can be understood that the air supply gear is used for adjusting the air speed of the fan, i.e. the rotating speed of the fan blades, the higher the air supply gear is, the faster the rotating speed of the fan blades is, and the lower the air supply gear is, the slower the rotating speed of the fan blades is; the air supply angle of the fan head in the horizontal direction is used for adjusting the air supply direction of the fan in the horizontal direction, and the air supply angle of the fan head in the vertical direction is used for adjusting the air supply direction of the fan in the vertical direction.
In one embodiment, the air supply gear of the fan is determined according to the indoor temperature; and determining the air supply angle of the fan according to the body temperature information in the physical sign data, namely acquiring the current body temperature of the user from the body temperature information, taking the first preset air supply angle as the air supply angle of the fan if the current body temperature of the user is greater than a preset body temperature threshold value, and taking the second preset air supply angle as the air supply angle of the fan if the current body temperature of the user is less than or equal to the preset body temperature threshold value. It can be understood that, when the air supply angle of the fan is the first preset air supply angle, the user is in the air supply range of the fan, that is, the user feels a large amount of air, and when the air supply angle of the fan is the second preset air supply angle, the user is near the air supply range of the fan, that is, the user feels a small amount of air.
The air supply gear determination mode specifically comprises the following steps: determining the temperature range of the indoor temperature, and acquiring a mapping relation table between the prestored temperature range and an air supply gear; and inquiring the mapping relation table, acquiring an air supply gear corresponding to the temperature range, and taking the air supply gear corresponding to the temperature range as an air supply gear of the fan. It should be noted that the mapping table between the temperature range and the air blowing gear may be set based on actual conditions, and the present application is not limited to this.
In one embodiment, the relative height and the relative distance between a user and the fan are obtained, and the pitch angle of the fan head of the fan is determined according to the relative height and the relative distance; if the current body temperature of the user in the body temperature information is larger than a preset body temperature threshold value, taking the pitch angle as the air supply angle of the fan in the vertical direction; and if the current body temperature of the user in the body temperature information is less than or equal to the preset body temperature threshold value, calculating the sum of the pitch angle and the preset pitch angle, and taking the sum of the pitch angle and the preset pitch angle as the air supply angle of the fan in the vertical direction.
Specifically, the fan acquires an image of the environment around the fan through a camera to obtain a target image, wherein the target image comprises a user; and determining the image distance of the user according to the target image, determining the horizontal distance of the user relative to the fan according to the relation among the focal distance, the image distance and the object distance and the focal distance and the image distance of the camera, and taking the horizontal distance as the relative distance between the user and the fan.
Specifically, if the relative height is h, the relative distance is d, and the pitch angle is θ, the pitch angle of the fan head can be calculated according to the formula θ = arctan (h/d). The determination method of the relative height between the user and the fan specifically comprises the following steps: acquiring a preset height value and acquiring the current height of the fan; and calculating a difference value between the preset height value and the current height, and taking the absolute value of the difference value as the relative height of the user and the fan.
In one embodiment, position information of a user relative to the fan is acquired, and a yaw angle of a fan head of the fan is determined according to the position information; if the current body temperature of the user in the body temperature information is larger than a preset body temperature threshold value, taking the yaw angle as the air supply angle of the fan in the horizontal direction; and if the current body temperature of the user in the body temperature information is less than or equal to a preset body temperature threshold value, calculating the sum of the yaw angle and the preset yaw angle, and taking the sum of the yaw angle and the preset yaw angle as the air supply angle of the fan in the horizontal direction. The yaw angle determination method specifically comprises the following steps: and acquiring a mapping relation table between pre-stored position information and a yaw angle, inquiring the mapping relation table, acquiring the yaw angle corresponding to the position information, and taking the yaw angle corresponding to the position information as the yaw angle of the fan head of the fan.
Specifically, the fan acquires an image of the environment around the fan through the camera to obtain a target image and acquire the focal length of the camera; determining the image distance of a user according to the target image, and determining the horizontal distance of the user relative to the fan according to the relation among the focal distance, the image distance and the object distance, the focal distance of the camera and the image distance of the user; determining a horizontal included angle between the user and the camera according to the image distance of the user and the focal length of the camera; establishing a rectangular coordinate system by taking the position of the camera as a coordinate origin, the forward direction of the camera as an X axis and the right direction of the camera as a Y axis; and determining the position coordinates of the user in the rectangular coordinate system according to the horizontal distance between the user and the fan and the horizontal included angle between the user and the camera, and taking the position coordinates of the user in the rectangular coordinate system as the position information of the user relative to the fan.
And S105, controlling the fan blades of the fan to be in a rotating state according to the air supply parameters so as to enable the fan to enter a corresponding air supply mode.
After the air supply parameters are determined, controlling the fan blades of the fan to be in a rotating state according to the air supply parameters so as to enable the fan to enter a corresponding air supply mode, namely when the target working mode of the fan is the air supply mode and the fan blades of the fan are in the rotating state, adjusting the fan according to the air supply parameters so as to enable the fan to enter the air supply mode corresponding to the air supply parameters, and when the target working mode of the fan is the air supply mode and the fan blades of the fan are in a static state, starting the fan and adjusting the fan according to the air supply parameters so as to enable the fan to enter the air supply mode corresponding to the air supply parameters.
In one embodiment, if the user is not in the sleep state, the position information of the user relative to the fan is acquired, the air supply track of the fan is determined according to the position information, and air is supplied according to the air supply track. Specifically, according to the position information, a yaw angle of the fan head is determined, a difference between the yaw angle and a preset yaw angle and a sum of the yaw angle and the preset yaw angle are calculated, then the difference between the yaw angle and the preset yaw angle is used as an air supply track starting point, the sum of the yaw angle and the preset yaw angle is used as an air supply track ending point, an air supply track is obtained, and the fan circularly and repeatedly supplies air according to the air supply track.
According to the fan control method provided by the embodiment, when the user is in the sleep state, the fan is controlled to supply air based on the physical sign data and the indoor temperature of the user, the user can be prevented from being awakened, awakened or cooled, the air supply parameter of the fan does not need to be manually adjusted by the user, and the user experience is greatly improved.
Referring to fig. 3, fig. 3 is a schematic block diagram of a fan control system according to an embodiment of the present disclosure.
As shown in fig. 3, the fan control system 200 includes: fan 201, master control device 202 and wearable device 203, wherein:
the wearable device 203 is configured to collect sign data of a user at preset time intervals, and send the sign data to the main control device 202;
the main control device 202 is configured to receive the sign data sent by the wearable device, and determine whether the user is in a sleep state according to the sign data;
the main control device 202 is further configured to obtain an indoor temperature if the user is in a sleep state, and determine a target working mode of the fan according to the indoor temperature and the physical sign data;
the main control device 202 is further configured to send a sleep instruction to the fan if the target operating mode is a sleep mode and the fan blades of the fan are in a rotating state;
the fan 201 is configured to receive the sleep instruction, and control the fan blades of the fan to be in a static state according to the sleep instruction, so that the fan is in a sleep mode;
the main control device 202 is further configured to, if the target operating mode is an air supply mode, determine an air supply parameter of the fan according to the sign data and the indoor temperature, generate a corresponding air supply control instruction according to the air supply parameter, and send the air supply control instruction to the fan;
the fan 201 is further configured to receive an air supply control instruction sent by the main control device, and control blades of the fan to be in a rotating state according to the air supply control instruction, so that the fan is in an air supply mode.
Further, the master device 202 is further configured to:
generating a heart rate change curve and a body temperature change curve of the user according to the heart rate information and the body temperature information in the physical sign data;
and determining whether the user is in a sleep state or not according to the heart rate change curve and the body temperature change curve.
Further, the master device 202 is further configured to:
acquiring the current body temperature of the user from the sign data, and determining whether the indoor temperature is less than or equal to a preset temperature and whether the current body temperature is less than or equal to the preset body temperature;
if the indoor temperature is less than or equal to a preset temperature and the current body temperature is less than or equal to a preset body temperature, determining that the target working mode of the fan is a sleep mode;
and if the indoor temperature is higher than the preset temperature and the current body temperature is higher than the preset body temperature, determining that the target working mode of the fan is an air supply mode.
Further, the master device 202 is further configured to:
determining an air supply gear of the fan according to the indoor temperature, wherein the air supply gear is used for controlling the air speed of the fan; and
and determining the air supply angle of the fan according to the body temperature information in the physical sign data, wherein the air supply angle is used for controlling the wind direction of the fan.
Further, the master device 202 is further configured to:
acquiring the relative height and the relative distance between the user and a fan, and determining the pitch angle of the fan head of the fan according to the relative height and the relative distance;
if the current body temperature of the user in the body temperature information is larger than a preset body temperature threshold value, taking the pitch angle as the air supply angle of the fan in the vertical direction;
and if the current body temperature of the user in the body temperature information is less than or equal to a preset body temperature threshold value, calculating the sum of the pitch angle and a preset pitch angle, and taking the sum of the pitch angle and the preset pitch angle as the air supply angle of the fan in the vertical direction.
Further, the master device 202 is further configured to:
acquiring position information of a user relative to the fan, and determining a yaw angle of a fan head of the fan according to the position information;
if the current body temperature of the user in the body temperature information is larger than a preset body temperature threshold value, taking the yaw angle as the air supply angle of the fan in the horizontal direction;
and if the current body temperature of the user in the body temperature information is less than or equal to a preset body temperature threshold value, calculating the sum of the yaw angle and a preset yaw angle, and taking the sum of the yaw angle and the preset yaw angle as the air supply angle of the fan in the horizontal direction.
Further, the master device 202 is further configured to:
if the user is not in a sleep state, acquiring position information of the user relative to the fan, and determining an air supply track of the fan according to the position information;
the fan 201 is also configured to supply air according to the air supply trajectory.
It should be noted that, as is clear to those skilled in the art, for convenience and simplicity of description, in the specific working process of the fan control system described above, reference may be made to the corresponding process in the foregoing embodiment of the fan control method, and details are not described herein again.
Referring to fig. 4, fig. 4 is a schematic block diagram of a fan according to an embodiment of the present disclosure.
As shown in fig. 4, the fan 300 includes a processor 302, a memory 303, which may include a non-volatile storage medium and an internal memory, and a communication interface 304 connected by a system bus 301.
The non-volatile storage medium may store a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any of the fan control methods.
The processor is used to provide computing and control capabilities to support the operation of the entire fan.
The memory provides an environment for execution of a computer program in the non-volatile storage medium, which when executed by the processor, causes the processor to perform any of the fan control methods.
The communication interface 304 is used for communication. It will be understood by those skilled in the art that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the fans to which the present application applies, and a particular fan may include more or fewer components than shown, or some components may be combined, or have a different arrangement of components.
It should be understood that the bus 301 is, for example, an I2C (Inter-Integrated Circuit) bus, the Memory 303 may be a Flash chip, a Read-Only Memory (ROM) magnetic disk, an optical disk, a usb disk, or a removable hard disk, the Processor 302 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, digital Signal Processors (DSP), application Specific Integrated Circuits (ASIC), field Programmable Gate Arrays (FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute the computer program stored in the memory to perform the steps of:
acquiring sign data of a user through wearable equipment, and determining whether the user is in a sleep state or not according to the sign data;
when a user is in a sleep state, acquiring indoor temperature, and determining a target working mode of the fan according to the indoor temperature and the physical sign data;
if the target working mode is a sleep mode and the fan blades of the fan are in a rotating state, controlling the fan blades of the fan to be in a static state so as to enable the fan to enter the sleep mode;
if the target working mode is an air supply mode, determining air supply parameters of the fan according to the sign data and the indoor temperature;
and controlling the fan blades of the fan to be in a rotating state according to the air supply parameters so as to enable the fan to enter a corresponding air supply mode.
In one embodiment, when determining whether the user is in a sleep state according to the physical sign data, the processor is configured to:
generating a heart rate change curve and a body temperature change curve of the user according to the heart rate information and the body temperature information in the physical sign data;
and determining whether the user is in a sleep state or not according to the heart rate change curve and the body temperature change curve.
In one embodiment, when determining the target operating mode of the fan according to the indoor temperature and the physical sign data, the processor is configured to:
acquiring the current body temperature of the user from the sign data, and determining whether the indoor temperature is less than or equal to a preset temperature and whether the current body temperature is less than or equal to the preset body temperature;
if the indoor temperature is less than or equal to a preset temperature and the current body temperature is less than or equal to a preset body temperature, determining that the target working mode of the fan is a sleep mode;
and if the indoor temperature is higher than the preset temperature and the current body temperature is higher than the preset body temperature, determining that the target working mode of the fan is an air supply mode.
In one embodiment, the processor, when determining the blowing parameter of the fan according to the sign data and the indoor temperature, is configured to:
determining an air supply gear of the fan according to the indoor temperature, wherein the air supply gear is used for controlling the air speed of the fan; and
and determining the air supply angle of the fan according to the body temperature information in the physical sign data, wherein the air supply angle is used for controlling the wind direction of the fan.
In one embodiment, the processor, when determining the blowing angle of the fan according to the body temperature information in the vital sign data, is configured to:
acquiring the relative height and the relative distance between the user and a fan, and determining the pitch angle of the fan head of the fan according to the relative height and the relative distance;
if the current body temperature of the user in the body temperature information is larger than a preset body temperature threshold value, taking the pitch angle as the air supply angle of the fan in the vertical direction;
and if the current body temperature of the user in the body temperature information is less than or equal to a preset body temperature threshold value, calculating the sum of the pitch angle and a preset pitch angle, and taking the sum of the pitch angle and the preset pitch angle as the air supply angle of the fan in the vertical direction.
In one embodiment, when determining the blowing angle of the fan according to the body temperature information in the physical sign data, the processor is configured to:
acquiring position information of a user relative to the fan, and determining a yaw angle of a fan head of the fan according to the position information;
if the current body temperature of the user in the body temperature information is larger than a preset body temperature threshold value, taking the yaw angle as the air supply angle of the fan in the horizontal direction;
and if the current body temperature of the user in the body temperature information is less than or equal to a preset body temperature threshold value, calculating the sum of the yaw angle and a preset yaw angle, and taking the sum of the yaw angle and the preset yaw angle as the air supply angle of the fan in the horizontal direction.
In one embodiment, the processor, after enabling determining whether the user is in a sleep state based on the vital sign data, is further configured to enable:
and if the user is not in the sleep state, acquiring the position information of the user relative to the fan, determining the air supply track of the fan according to the position information, and supplying air according to the air supply track.
It should be noted that, as is clear to those skilled in the art, for convenience and simplicity of description, the specific working process of the fan described above may refer to the corresponding process in the foregoing embodiment of the fan control method, and details are not described herein again.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed, a method implemented by the computer program may refer to the various embodiments of the fan control method of the present application.
The computer readable storage medium may be an internal storage unit of the fan described in the foregoing embodiment, for example, a hard disk or a memory of the fan. The computer readable storage medium may also be an external storage device of the fan, such as a plug-in hard disk provided on the fan, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification 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 in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments. The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A fan control method is characterized by being applied to a fan and comprising the following steps:
acquiring sign data of a user through wearable equipment, and determining whether the user is in a sleep state or not according to the sign data;
when a user is in a sleep state, acquiring indoor temperature, and determining a target working mode of the fan according to the indoor temperature and the physical sign data;
if the target working mode is a sleep mode and the fan blades of the fan are in a rotating state, controlling the fan blades of the fan to be in a static state so as to enable the fan to enter the sleep mode;
if the target working mode is an air supply mode, determining an air supply gear of the fan according to the indoor temperature, wherein the air supply gear is used for controlling the air speed of the fan; and
determining an air supply angle of the fan according to body temperature information in the physical sign data, wherein the air supply angle is used for controlling the wind direction of the fan;
controlling the fan blades of the fan to be in a rotating state according to the air supply gear and the air supply angle so as to enable the fan to enter a corresponding air supply mode;
wherein, according to the body temperature information in the physical sign data, determining the air supply angle of the fan comprises: acquiring the relative height and the relative distance between the user and a fan, and determining the pitch angle of the fan head of the fan according to the relative height and the relative distance; if the current body temperature of the user in the body temperature information is larger than a preset body temperature threshold value, taking the pitch angle as the air supply angle of the fan in the vertical direction; and if the current body temperature of the user in the body temperature information is less than or equal to a preset body temperature threshold value, calculating the sum of the pitch angle and a preset pitch angle, and taking the sum of the pitch angle and the preset pitch angle as the air supply angle of the fan in the vertical direction.
2. The method of claim 1, wherein the determining whether the user is asleep based on the vital sign data comprises:
generating a heart rate change curve and a body temperature change curve of the user according to the heart rate information and the body temperature information in the physical sign data;
and determining whether the user is in a sleep state or not according to the heart rate change curve and the body temperature change curve.
3. The method of claim 1, wherein determining the target operating mode of the fan based on the indoor temperature and the vital sign data comprises:
acquiring the current body temperature of the user from the sign data, and determining whether the indoor temperature is less than or equal to a preset temperature and whether the current body temperature is less than or equal to the preset body temperature;
if the indoor temperature is less than or equal to a preset temperature and the current body temperature is less than or equal to a preset body temperature, determining that the target working mode of the fan is a sleep mode;
and if the indoor temperature is higher than the preset temperature and the current body temperature is higher than the preset body temperature, determining that the target working mode of the fan is an air supply mode.
4. The fan control method according to claim 1, wherein the determining an air blowing angle of the fan according to the body temperature information in the vital sign data includes:
acquiring position information of a user relative to the fan, and determining a yaw angle of a fan head of the fan according to the position information;
if the current body temperature of the user in the body temperature information is larger than a preset body temperature threshold value, taking the yaw angle as the air supply angle of the fan in the horizontal direction;
if the current body temperature of the user in the body temperature information is smaller than or equal to a preset body temperature threshold value, calculating the sum of the yaw angle and a preset yaw angle, and taking the sum of the yaw angle and the preset yaw angle as the air supply angle of the fan in the horizontal direction.
5. The fan control method according to any one of claims 1 to 3, wherein the determining whether the user is in a sleep state according to the vital sign data further comprises:
and if the user is not in the sleep state, acquiring the position information of the user relative to the fan, determining the air supply track of the fan according to the position information, and supplying air according to the air supply track.
6. A fan control system, comprising a fan, a wearable device, and a master control device, wherein:
the wearable device is used for acquiring sign data of a user at preset time intervals and sending the sign data to the main control device;
the main control device is used for receiving the physical sign data sent by the wearable device and determining whether the user is in a sleep state according to the physical sign data;
the main control device is further configured to acquire an indoor temperature if the user is in a sleep state, and determine a target working mode of the fan according to the indoor temperature and the physical sign data;
the main control device is further configured to send a sleep instruction to the fan if the target operating mode is a sleep mode and the fan blades of the fan are in a rotating state;
the fan is used for receiving the sleep instruction and controlling fan blades of the fan to be in a static state according to the sleep instruction so as to enable the fan to be in a sleep mode;
the main control device is further configured to determine, according to the indoor temperature, an air supply gear of the fan and determine, according to the body temperature information in the physical sign data, an air supply angle of the fan if the target operating mode is an air supply mode, where determining, according to the body temperature information in the physical sign data, the air supply angle of the fan includes: acquiring the relative height and the relative distance between the user and a fan, and determining the pitch angle of the fan head of the fan according to the relative height and the relative distance; if the current body temperature of the user in the body temperature information is larger than a preset body temperature threshold value, taking the pitch angle as the air supply angle of the fan in the vertical direction; if the current body temperature of the user in the body temperature information is less than or equal to a preset body temperature threshold value, calculating the sum of the pitch angle and a preset pitch angle, and taking the sum of the pitch angle and the preset pitch angle as the air supply angle of the fan in the vertical direction;
generating a corresponding air supply control instruction according to the air supply gear and the air supply angle, and sending the air supply control instruction to the fan;
the fan is also used for receiving an air supply control instruction sent by the main control equipment and controlling fan blades of the fan to be in a rotating state according to the air supply control instruction so as to enable the fan to be in an air supply mode.
7. A fan, characterized in that the fan comprises a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, carries out the steps of the fan control method according to any one of claims 1 to 5.
8. A computer-readable storage medium, having a computer program stored thereon, wherein the computer program, when being executed by a processor, carries out the steps of the fan control method according to any one of claims 1 to 5.
CN201911177153.2A 2019-11-26 2019-11-26 Fan control method, system, fan and computer readable storage medium Active CN112943664B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911177153.2A CN112943664B (en) 2019-11-26 2019-11-26 Fan control method, system, fan and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911177153.2A CN112943664B (en) 2019-11-26 2019-11-26 Fan control method, system, fan and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112943664A CN112943664A (en) 2021-06-11
CN112943664B true CN112943664B (en) 2022-12-13

Family

ID=76225203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911177153.2A Active CN112943664B (en) 2019-11-26 2019-11-26 Fan control method, system, fan and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112943664B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000325182A (en) * 1999-05-20 2000-11-28 Kazuo Kuroiwa Chill and cold-caught-while-asleep solving sound sleep fan
CN102865240B (en) * 2011-07-07 2015-06-03 艾美特电器(深圳)有限公司 Intelligent mobile tower fan and control method thereof
CN202520595U (en) * 2012-01-17 2012-11-07 河海大学 Intelligent electric fan self-adaptive to sleep of human body
CN106032927B (en) * 2015-03-11 2019-03-15 广东美的制冷设备有限公司 The control method and control device of air conditioner
CN105650020A (en) * 2016-02-29 2016-06-08 广东美的环境电器制造有限公司 Fan and control system and method for fan
CN107956725A (en) * 2017-12-06 2018-04-24 温四妹 A kind of intelligence adjusts fan

Also Published As

Publication number Publication date
CN112943664A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN108571804B (en) Air conditioner, parameter adjusting method and device thereof and readable storage medium
US10206573B2 (en) Method of obtaining biometric information in electronic device and electronic device for the same
EP2716988A2 (en) Air conditioning control system, air conditioning control method and program
CN110740525B (en) Method for controlling electric blanket, device for controlling electric blanket and electronic equipment
CN110749061A (en) Air conditioner, air conditioner control method and device and readable storage medium
CN113432286B (en) Control method and control device for air conditioner and air conditioner
CN113639449B (en) Method and device for controlling air conditioner and air conditioner
CN112855594A (en) Air supply control method, fan and computer readable storage medium
CN112855595B (en) Fan control method, fan and storage medium
CN110579003A (en) control method and device of intelligent air conditioner, server and storage medium
CN112943664B (en) Fan control method, system, fan and computer readable storage medium
CN112944640B (en) Air supply adjusting method, system, fan and computer readable storage medium
CN112902321A (en) Control method for air supply device, air supply system, and storage medium
CN113932428B (en) Control method, control device and server for household appliances
CN112922875B (en) Method for adjusting wind speed of fan, fan and computer readable storage medium
CN112922886A (en) Air supply adjusting method, system, fan and computer readable storage medium
CN112922864B (en) Fan air supply adjusting method, fan and computer readable storage medium
WO2023005350A1 (en) Air conditioner control method and apparatus, air conditioner, and storage medium
CN112855593A (en) Fan control method, fan, intelligent temperature control system and storage medium
CN112922891B (en) Fan control method, fan, air supply system and storage medium
CN112925406A (en) Fan air supply control method, system, fan and computer readable storage medium
CN112901543B (en) Air supply control method, system, fan and computer readable storage medium
CN112904745A (en) Fan control method, fan and computer readable storage medium
CN113494474A (en) Circulation fan control method, circulation fan and computer readable storage medium
CN110736179A (en) air conditioner control method and device and air conditioner

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