Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The present disclosure provides a control method for a socket.
As shown in fig. 1, in some embodiments, a control method for an outlet includes:
and S101, obtaining the equipment adjusting capacity of the electric equipment connected to the socket and the requirement adjusting capacity of the environment.
The device adjustment capability of the electric device refers to a function of the electric device. For example, when the electrical equipment is an air conditioner, the equipment conditioning capacity is to condition the temperature; when the air purifier of the electric equipment is used, the equipment adjusting capacity is to purify air; when the electric equipment is a humidifier, the equipment adjusting capacity is to improve the air humidity; when the powered device is a lighting device, the device adjustment capability is to adjust brightness.
The demand regulation capability of the environment refers to an action that is exerted on a space where electric equipment is used, in order for the environment of the space to become suitable. For example, when the actual ambient temperature is too high, the adjustment capability is required to lower the indoor ambient temperature; when the indoor air is too dry, the humidity of the indoor air is required to be improved by the adjusting capacity; when the room is too dark, the adjustment capability is required to increase the brightness in the room.
And step S102, matching the equipment adjusting capacity with the required adjusting capacity.
And S103, controlling the power-on and power-off state of the socket according to the matching result.
The power on/off state of the socket not only depends on the requirement adjusting capacity of the environment, but also depends on the equipment adjusting capacity, and the power on/off state of the socket is controlled to be in an idle state/working state depending on the electric equipment powered by the socket, so that the idle state/working state of the electric equipment is matched with the requirement adjusting capacity in the environment, and the adaptive environment capacity of the socket is improved.
As shown in fig. 2, in some embodiments, obtaining the demand conditioning capability in step S101 includes:
step S201, obtaining actual environment parameters.
The actual environmental parameters include an actual air quality parameter and an actual brightness. Wherein, actual air quality includes: actual ambient temperature, actual air humidity, actual oxygen content, actual carbon dioxide content, actual respirable particle concentration. The actual environment parameters can be obtained through an upper sensor arranged on the electric equipment, and can also be obtained through a third party through a network.
Step S202, determining the required adjusting capacity required for adjusting the actual environment parameters to the set environment parameters according to the set environment parameters and the actual environment parameters.
Setting the environmental parameters includes setting air quality and setting brightness. Wherein, setting the air quality comprises: setting ambient temperature, setting air humidity, setting oxygen content, setting carbon dioxide content, and setting inhalable particle concentration. Under the set environmental parameters, people can obtain better experience, or under the set environmental parameters, some electric equipment can stably run, or under the set environmental parameters, plants, animals or microorganisms have better growth environments. The setting environment parameter can be manually set and can be obtained by an algorithm in the prior art, and the detailed description is omitted here.
By obtaining the demand adjustment capability, the fitness of the socket and the environment is higher.
In some embodiments, the step S202 determines the required adjustment capability required to adjust the actual environmental parameter to the set environmental parameter according to the set environmental parameter and the actual environmental parameter, and includes:
taking the type of the environmental parameter as a demand regulation type of the demand regulation capability; and,
determining the demand regulating power of demand regulating capacity according to the environmental parameter difference value of the set environmental parameter and the actual environmental parameter;
the environment parameters comprise set environment parameters and actual environment parameters, and the difference value of the environment parameters is positively correlated with the required adjusting power.
The demand regulating capacity is determined in the two aspects of the demand regulating type and the demand regulating power, the accurate demand regulating capacity can be obtained, and the socket can conveniently judge the power on/off state of the electric equipment connected to the socket so as to adapt to the environment.
The types of the environmental parameters comprise an air quality type and a brightness type, and the air quality type comprises an ambient temperature type, an air quality type, an oxygen content type, a carbon dioxide type and an inhalable particle concentration type. The larger the difference between the set environmental parameter and the actual environmental parameter is, the larger the adjustment is, the more the actual environmental parameter needs to be adjusted, so that the actual environmental parameter can reach the set environmental parameter. The required adjustment power may be the power consumption of the electric equipment, the product of the power consumption of the electric equipment and the efficiency of the electric equipment, or a quantitative index of the function of the electric equipment, such as the cooling capacity of the air conditioner, the clean air quantity cadr (clean air delivery rate) of the air purifier, the flow rate of the oxygen generator, the concentration of the oxygen generator, the exhaust air quantity of the fresh air fan, and the like.
In some embodiments, determining the demand conditioning power for the demand conditioning capacity based on the environmental parameter difference between the set environmental parameter and the actual environmental parameter includes:
determining the required air quality adjusting power according to the air quality difference value of the actual air quality and the set air quality; or,
and determining the required brightness adjusting power according to the brightness difference value of the actual brightness and the set brightness.
Aiming at different actual environments, more accurate required regulation power can be obtained, and the socket can be conveniently matched with corresponding electric equipment.
As shown in fig. 3, in some embodiments, obtaining the device adjustment capability of the electric device connected to the socket in step S101 includes:
s301, request information for requesting to acquire the device adjusting capability is sent.
When the socket is directly connected to the electrical consumer, for example, wirelessly or in a wired manner, the controller of the socket may directly send request information for requesting to obtain the device adjustment capability to the controller of the electrical consumer.
When the socket and the electric equipment are connected to the same network, the controller of the socket can send request information to the network server, and the request information can also be directly sent to the controller of the electric equipment in the network.
And S302, receiving feedback information for expressing the equipment adjusting capability.
When the socket is directly connected with the electric equipment, the controller of the socket receives feedback information sent by the controller of the electric equipment, and then the equipment adjusting capacity in the feedback information can be extracted.
When the socket and the electric equipment are connected to the same network, the controller of the socket can receive feedback information from the network server and also can receive feedback information from the controller of the electric equipment.
The socket actively acquires the equipment adjusting capacity, the direct integrating degree of the socket and the electric equipment is improved, and the socket can conveniently select the appropriate electric equipment according to the environment requirement adjusting capacity.
In some embodiments, step S102 matches the device adjustment capability with the demand adjustment capability, including:
comparing the type of the adjusting capacity of the equipment with the type of the required adjusting capacity, if the type of the adjusting capacity of the equipment is the same as the type of the required adjusting capacity, successfully matching the types, and otherwise, failing to match the types; and,
obtaining a power difference value of the equipment adjusting power of the equipment adjusting capacity and the demand adjusting power of the demand adjusting capacity, wherein if the power difference value is within a set range, the power matching is successful, otherwise, the power matching is failed;
if the type matching is successful and the power matching is successful, the equipment adjusting capacity and the required adjusting capacity are successfully matched; otherwise, it fails.
Whether the equipment adjusting capacity and the demand adjusting capacity are matched or not is judged by utilizing the two judging conditions, so that the judging accuracy is improved, and the on-off state of the socket can be accurately controlled conveniently. The power difference value is within the set range, and represents that the difference between the device adjusting power and the required adjusting power is not much, including the condition that the device adjusting power is greater than the required adjusting power, the condition that the device adjusting power is equal to the required adjusting power, and the condition that the device adjusting power is less than the required adjusting power. The setting range may be a default value and may be set manually.
In some embodiments, obtaining a power difference between the device regulation power of the device regulation capability and the demand regulation power of the demand regulation capability comprises:
obtaining a power difference value between the equipment air quality adjusting power and the required air quality adjusting power; or,
and obtaining the power difference value of the device brightness adjusting power and the required brightness adjusting power.
In different application environments, different specific power difference values are obtained, and the application range of the control method is widened.
In some embodiments, controlling the power on/off state of the socket according to the matching result includes:
under the condition that the equipment adjusting capacity is successfully matched with the required adjusting capacity, controlling the socket to be in a power-on state; or,
under the condition that the matching of the equipment adjusting capacity and the required adjusting capacity fails, controlling the socket to be in a power-off state; or,
and under the condition that the matching of the equipment adjusting capacity and the demand adjusting capacity fails, controlling the socket to enter a reminding mode.
The equipment adjusting capacity and the demand adjusting capacity are successfully matched, which indicates that the current environment needs to be adjusted, the electric equipment connected with the socket can adjust the current environment, and the socket is controlled to supply power to the electric equipment, namely, the socket has the capacity of adapting to the environment; if it is failed to establish that the adjustment capability matches with the demand adjustment capability, it indicates that the current environment does not need the adjustment effect of consumer, then control socket does not supply power for this consumer, includes: the control socket does not supply power to the electric equipment all the time, and the control socket stops supplying power to the electric equipment, so that the noncoordination between the socket and the environment is reduced; although the environment does not need the adjusting function of one electric equipment, the user may need the electric equipment to work, so, under the condition that the matching of the equipment adjusting capacity and the demand adjusting capacity fails, the socket is controlled to enter a reminding mode, a reminder is sent to the user, and the intelligent effect of the socket is improved.
In some embodiments, controlling the power on/off state of the socket in step S103 includes:
controlling the power-on and power-off state of each jack on the socket; or,
the power on/off state of the whole socket is controlled.
Alternatively, the on-off state of the socket can be controlled by controlling the on-off state of the relay. The relay is switched on, and the socket is electrified; the relay is disconnected, and the socket is powered off. If a relay is arranged for each jack, the on-off point state of each jack can be controlled; if the relay is arranged on the input line of the socket, the on-off state of the whole socket can be controlled.
The embodiment of the disclosure provides a control device for a socket.
As shown in fig. 4, in some embodiments, a control device for an outlet includes:
a processor (processor) 40 and a memory (memory) 41, and may further include a Communication Interface (Communication Interface) 42 and a bus 43. The processor 40, the communication interface 42 and the memory 41 can communicate with each other through the bus 43. Communication interface 42 may be used for information transfer. The processor 40 may call the logic instructions in the memory 41 to execute the control method for the socket of the above-described embodiment.
In addition, the logic instructions in the memory 41 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 41 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 40 executes the functional application and data processing by executing the software program, instructions and modules stored in the memory 41, that is, implements the method in the above-described method embodiment.
The memory 41 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 41 may include a high-speed random access memory, and may also include a nonvolatile memory.
The disclosed embodiment provides a socket.
In some embodiments, the socket comprises a control device for the socket as described above.
The disclosed embodiments provide a computer-readable storage medium storing computer-executable instructions configured to perform the above-described control method for an outlet.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the above-described control method for an outlet.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling 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 method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of the disclosed embodiments includes the full ambit of the claims, as well as all available equivalents of the claims. As used in this application, although the terms "first," "second," etc. may be used in this application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, unless the meaning of the description changes, so long as all occurrences of the "first element" are renamed consistently and all occurrences of the "second element" are renamed consistently. The first and second elements are both elements, but may not be the same element. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would 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 may depend upon the particular application and design constraints imposed on the solution. 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 disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple 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. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure 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 flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.