Control method and system for environmental comfort, electronic equipment and storage mediumTechnical Field
The invention relates to the technical field of smart home, in particular to a method and a system for controlling environmental comfort, electronic equipment and a storage medium.
Background
At present, the intelligent development is faster and faster, and our home life also gradually moves to intelligent home. The intelligent home has a lot of requirements and ideas, and the pursuit of the family becoming more and more intelligent is the pursuit of the intelligent home. At present, in order to achieve the aim, more and more electric appliances enter the family life, and the functions of each electric appliance are more and more abundant, but the adjustment of the comfort of the environment needs multiple electric appliances which cannot be linked with each other, the response degree of the change of the environment is low, the automatic control and adjustment of the comfort of the environment under the linkage of the multiple electric appliances cannot be achieved, even if the linkage of a few electric appliances is achieved, the repeated intervention and operation of a user are also needed, the automation degree is low, and the user experience is poor.
Therefore, it is desirable to provide an environmental comfort control method, system, electronic device, and storage medium to solve the disadvantages of the related art.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a control method and system for environmental comfort, an electronic device and a storage medium.
A method of controlling environmental comfort, the method comprising the steps of:
obtaining a plurality of parameters within an environment;
respectively comparing each parameter with a corresponding preset range to determine the abnormal degree of each parameter, and determining an adjusting strategy according to the abnormal degrees of all the parameters;
and determining a control command according to the adjusting strategy and the adjusting equipment map.
Further, the obtaining a plurality of parameters within the environment comprises:
respectively obtaining the temperature, the humidity, the PM2.5 concentration, the noise level, the carbon dioxide concentration, the air flow rate and the fresh air volume in the environment.
Further, the respectively comparing each parameter with the corresponding preset range to determine the degree of abnormality of each parameter includes:
if the parameter is in the corresponding preset range, the abnormal degree of the parameter is 0;
if the parameter is higher than the upper limit N indexing percentage values of the corresponding preset range, the abnormal degree of the parameter is N, wherein N is a positive integer greater than or equal to 1;
and if the parameter is lower than the lower limit N indexing percentage values of the corresponding preset range, the abnormal degree of the parameter is-N, wherein N is a positive integer greater than or equal to 1.
Further, the graduation percentage value is 1%, 5%, 10%, 15% or 20%;
if the difference value between the percentage value of the parameter higher than the upper limit of the corresponding preset range and the N division percentage values is minimum, the parameter is higher than the upper limit of the corresponding preset range by the N division percentage values;
and if the difference value between the percentage value of the parameter lower than the lower limit of the corresponding preset range and the N indexing percentage values is minimum, the parameter is lower than the lower limit of the corresponding preset range by the N indexing percentage values.
Further, the determining the adjustment strategy according to the abnormal degrees of all the parameters includes:
removing the parameter with the abnormal degree of 0;
sorting the rest parameters from large to small according to the absolute values of the abnormal degrees of the rest parameters;
and determining an adjusting strategy of which the adjusting modes are sorted according to the priority according to the adjusting modes corresponding to the sorted parameters.
Further, the determining the control instruction according to the adjusting strategy and the adjusting device map comprises:
searching equipment and an operation mode corresponding to each adjusting mode in the adjusting strategy from an adjusting equipment map;
and correspondingly sequencing the plurality of devices and the operation modes according to the priority order of the adjusting mode to form a control instruction.
Further, the determining the control instruction according to the adjusting strategy and the adjusting device map further comprises:
grouping the equipment and the operation mode in the control instruction according to the equipment, wherein the equipment and the operation mode in each group are the same and the operation mode is different;
and comparing whether the running mode conflict exists between each device and the running mode in each group, and if so, removing the devices and the running modes which are ranked later according to the ranking of the devices and the running modes in the control instruction.
Further, the determining the control instruction according to the adjusting strategy and the adjusting device map further comprises:
and respectively sending each device and the operation mode to the corresponding device to request the device to operate in the operation mode.
Based on the same inventive concept, the invention also provides an environmental comfort control system, which comprises:
an acquisition module to acquire a plurality of parameters within an environment;
the adjusting module is used for respectively comparing each parameter with the corresponding preset range to determine the abnormal degree of each parameter and determining an adjusting strategy according to the abnormal degrees of all the parameters;
an instruction module to determine a control instruction based on the adjustment strategy and the adjustment device map.
Further, the control system further includes:
and the storage module is used for storing the preset range and the adjusting equipment map corresponding to each parameter.
Based on the same inventive concept, the invention also provides an electronic device, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the control program stored in the memory to realize the control method.
Based on the same inventive concept, the present invention also provides a storage medium storing one or more programs, which are executable by one or more processors to implement the control method.
Compared with the closest prior art, the technical scheme of the invention has the following advantages:
the control method for environmental comfort provided by the technical scheme of the invention comprises the steps of obtaining a plurality of parameters in an environment, determining the abnormal degree of each parameter according to the preset range of each parameter, determining the parameters with deviation according to the abnormal degree, generating corresponding adjustment strategies according to the parameters with deviation, determining specific control instructions according to the adjustment strategies through an equipment map, analyzing the abnormal degree of each parameter, generating correction strategies according to the parameters with deviation, generating specific control instructions by utilizing the equipment map, enabling the control instructions to start corresponding equipment to be linked, adjusting the parameters with deviation to recover the parameters to be normal, enabling the whole process to run automatically, enabling the equipment to automatically detect and control under the condition of no need of human intervention, enabling the environment to be comfortable, and the linkage of all equipment in the environment is realized, the response is quicker, the regulation efficiency is higher, the effect is better, the intervention and the operation of a user are avoided, and the user experience is improved.
Drawings
Fig. 1 is a flow chart of a method for controlling environmental comfort provided by the present invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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 only partial embodiments of the present application, but not all embodiments. 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.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "inner", "middle", "outer", "front", "rear", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
Furthermore, the terms "disposed," "connected," and "secured" are to be construed broadly. For example, "connected" may be a fixed connection, a detachable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail with reference to the accompanying fig. 1 in conjunction with an embodiment. Fig. 1 is a flow chart of a method for controlling environmental comfort provided by the present invention.
Example 1
The invention provides a control method of environmental comfort, which comprises the following steps:
s1, obtaining a plurality of parameters in the environment;
the acquired parameters mainly comprise the temperature, the humidity, the PM2.5 concentration, the noise level, the carbon dioxide concentration, the air flow rate and the fresh air volume in the environment, the specific requirements are acquired by various sensors arranged in the environment, for example, the temperature needs to be acquired by a temperature sensor and uploaded to a corresponding module in the control system, the humidity needs to be acquired by a humidity sensor and uploaded to a responding module in the control system, the PM2.5 needs to be acquired by a dust sensor and uploaded to a corresponding module in the control system, the noise needs to be acquired by an acoustic wave sensor and uploaded to a responding module in the control system, the carbon dioxide concentration needs to be acquired by a carbon dioxide concentration sensor and uploaded to a corresponding module in the control system, and the fresh air volume needs to be acquired by an air velocity sensor and uploaded to a responding module in the control system;
s2, respectively comparing each parameter with the corresponding preset range to determine the abnormal degree of each parameter, and determining an adjusting strategy according to the abnormal degrees of all the parameters;
specifically, a user can set a preset range of each parameter as required, if the parameter is in the corresponding preset range, the abnormal degree of the parameter is 0, if the parameter is higher than the upper limit N division percentage values of the corresponding preset range, the abnormal degree of the parameter is N, where N is a positive integer greater than or equal to 1, and if the parameter is lower than the lower limit N division percentage values of the corresponding preset range, the abnormal degree of the parameter is-N, where N is a positive integer greater than or equal to 1; the graduation percentage value is the difference value between two adjacent grades of the abnormal degree, and can be set as 1%, 5%, 10%, 15% or 20%, and can also be set as other reasonable percentages; when the parameter is higher than the upper limit of the preset range or lower than the lower limit of the preset range, the parameter does not accurately fall on the point of integral multiple of the graduation percentage value every time, and when the parameter does not fall on the integral multiple of any graduation percentage value, the parameter is determined according to the following rules: if the parameter is higher than the upper limit of the corresponding preset range by the smallest difference value between the N division percentage values and the percentage value, the parameter is higher than the upper limit of the corresponding preset range by the N division percentage values, if the parameter is lower than the lower limit of the corresponding preset range by the smallest difference value between the N division percentage values and the percentage value, the parameter is lower than the lower limit of the corresponding preset range by the N division percentage values, for example, if the division percentage value is 5%, the parameter is higher than the upper limit of the corresponding preset range by 28%, the parameter is closest to 5% × 6, so that the upper limit of the parameter higher than the preset range by 6 is determined, that is, the abnormal degree is 6, of course, there is also a case that the parameter is higher than the upper limit of the preset range or lower than the lower limit of the preset range by the percentage value falls at the midpoint of two integral multiples of the division percentage value, at this time, the abnormal degree is directly determined to be 0, after the parameters are further slightly changed, the abnormal degree of the parameters is determined again; after determining the abnormal degree of each parameter, further determining an adjustment strategy according to the abnormal degree of all the parameters, specifically, removing the parameter with the abnormal degree of 0, namely removing the normal parameter, then sequencing the rest of the parameters from large to small according to the absolute value of the abnormal degree, wherein the absolute value of the abnormal degree represents the degree of the abnormal degree, sequencing the parameters from large to small according to the absolute value, namely the abnormal degree is the largest, and sequencing the rest of the parameters to the abnormal degree with the minimum degree in sequence, wherein the parameter corresponding to the abnormal degree closer to the front is the greater necessity of adjustment, and finally determining the adjustment strategy in which the adjustment modes are sequenced according to the priority according to the adjustment modes corresponding to the sequenced parameters, each parameter corresponds to an adjustment mode after the abnormality occurs, and the adjustment mode is the mode in which the parameter is adjusted from the abnormality to the normal mode, for example, if the temperature is higher than the preset temperature, the adjustment mode is to lower the temperature, if the humidity is lower than the preset humidity, the adjustment mode is to increase the humidity, and so on, the sequence of all the adjustment modes corresponds to the sequence of the parameters, that is, the first parameter is ranked, the corresponding adjustment mode is ranked first, the second parameter is ranked, the corresponding adjustment mode is ranked second, and so on, until the adjustment mode corresponding to the last parameter, the higher the previous adjustment mode is, the higher the priority is, the higher the necessity of adjustment is required.
S3, determining a control instruction according to the adjusting strategy and the adjusting device map;
specifically, in the process of determining the control instruction, equipment and an operation mode corresponding to each adjustment mode in the adjustment strategy are searched from an adjustment equipment map, and then the equipment and the operation modes are correspondingly ordered according to the priority order of the adjustment modes to form the control instruction; the device map comprises a plurality of devices, each device has a plurality of operation modes, the operation modes of different devices are intersected in a regulation mode, so that the corresponding device and operation mode can be determined through the regulation mode, for example, a dehumidification mode of an air conditioner, a closing mode of a humidifier and an opening mode of a dehumidifier are intersected in the dehumidification regulation mode, a wind speed reduction mode of the air conditioner and a downshifting mode of a fan are intersected in the noise reduction regulation mode, a cooling mode of the air conditioner, an opening mode of the fan, a closing mode of a curtain and an air supply mode of an air purifier are intersected in the cooling regulation mode, the humidification mode of the air conditioner, the opening mode of the humidifier and the closing mode of the dehumidifier are intersected in the humidification regulation mode, and the purification mode of the air purifier is corresponding to the air purification regulation mode; the sequence of the adjusting mode can generate a sequence of corresponding equipment and an operation mode through an equipment map, and the sequence is used as a control instruction; the control instruction needs further precision processing, specifically, the equipment and the operation mode in the control instruction are grouped according to the equipment, and the equipment and each equipment in the operation mode in each group are the same as the equipment in the operation mode, and the operation modes are different; then comparing each device and operation mode in each group to determine whether there is operation mode conflict, if yes, removing the device and operation mode after the sequence according to the sequence of the device and operation mode in the control instruction, for example, the sequence of the adjusting mode is: the method comprises the following steps that (1) dehumidification and cooling are carried out, the equipment and the operation mode are grouped into a dehumidification mode of an air conditioner, a closing mode of a humidifier, an opening mode of a dehumidifier, a refrigeration mode of the air conditioner, an opening mode of a fan, a closing mode of a curtain and an air supply mode of an air purifier, the dehumidification mode of the air conditioner and the refrigeration mode of the air conditioner are combined into a group after grouping, and the rest of the dehumidification mode and the refrigeration mode of the air conditioner are independently grouped; the step of determining the control command further includes executing the command, specifically, each device and the operation mode are respectively sent to the corresponding device to request the device to operate in the operation mode, after the device receives the request, the corresponding function and mode are automatically triggered, after a period of operation, when one of the abnormal parameters is adjusted normally, the control command is regenerated due to the change of the abnormal degree, and the new control command suspends the adjustment mode corresponding to the normal parameter, so that the device stops the operation of the function and mode.
In the embodiment, by acquiring a plurality of parameters in the environment, determining the abnormal degree of each parameter according to the preset range of each parameter, determining the parameter with deviation according to the abnormal degree, generating a corresponding adjusting strategy according to the parameter with deviation, determining a specific control instruction according to the equipment map according to the adjusting strategy, analyzing the abnormal degree of each parameter, generating a correcting strategy according to the parameter with deviation, further generating a specific control instruction by using the equipment map, enabling the control instruction to start corresponding equipment to be linked, adjusting the parameter with deviation, enabling the equipment to return to normal, automatically operating the whole process, automatically detecting and controlling the equipment without human intervention, enabling the environment to be comfortable, and realizing the linkage of all equipment in the environment, the response is quicker, the regulation efficiency is higher, the effect is better, the intervention and the operation of a user are avoided, and the user experience is improved.
Example 2
Based on the same inventive concept, the invention also provides an environmental comfort control system, which comprises:
an acquisition module to acquire a plurality of parameters within an environment;
the adjusting module is used for respectively comparing each parameter with the corresponding preset range to determine the abnormal degree of each parameter and determining an adjusting strategy according to the abnormal degrees of all the parameters;
an instruction module to determine a control instruction based on the adjustment strategy and the adjustment device map.
In some embodiments of the invention, the control system further comprises:
and the storage module is used for storing the preset range and the adjusting equipment map corresponding to each parameter.
Example 3
Based on the same inventive concept, the invention also provides an electronic device, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the control program stored in the memory to realize the control method.
Example 4
Based on the same inventive concept, the present invention also provides a storage medium storing one or more programs, which are executable by one or more processors to implement the control method.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It is to be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.