CN109062396B - Method and device for controlling equipment - Google Patents

Method and device for controlling equipment Download PDF

Info

Publication number
CN109062396B
CN109062396B CN201810818184.0A CN201810818184A CN109062396B CN 109062396 B CN109062396 B CN 109062396B CN 201810818184 A CN201810818184 A CN 201810818184A CN 109062396 B CN109062396 B CN 109062396B
Authority
CN
China
Prior art keywords
target device
information
period
usage
control rule
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
CN201810818184.0A
Other languages
Chinese (zh)
Other versions
CN109062396A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810818184.0A priority Critical patent/CN109062396B/en
Publication of CN109062396A publication Critical patent/CN109062396A/en
Application granted granted Critical
Publication of CN109062396B publication Critical patent/CN109062396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The embodiment of the application discloses a method and a device for controlling equipment. One embodiment of the method comprises: acquiring usage information of a target device, the usage information including usage period information including: the starting frequency of the target equipment is greater than at least one first period of information of a preset threshold value, and the starting frequency of the target equipment is less than or equal to at least one second period of information of the preset threshold value; determining a control rule set for controlling a component of the target device based on the usage information; and sending the determined control rule set to the target device to enable the target device to control the corresponding component of the target device based on the determined control rule set. The embodiment is beneficial to reducing the power consumption of the equipment, and the purposes of saving electric quantity and energy consumption are achieved.

Description

Method and device for controlling equipment
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for controlling equipment.
Background
With the development of information technology, intelligent devices are enjoyed by more and more users. For convenience of use, users often set a long-term power-on or standby state for the artificial intelligence device. Thus, the power consumption of the intelligent device is increased, and the resource usage amount is increased.
The energy-saving method applied to the intelligent device generally achieves the purpose of energy saving of the intelligent device by reducing the power consumption of a chip arranged in the intelligent device and the like.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling equipment.
In a first aspect, an embodiment of the present application provides a method for controlling a device, including: acquiring usage information of a target device, the usage information including usage period information including: the starting frequency of the target equipment is greater than at least one first period of information of a preset threshold value, and the starting frequency of the target equipment is less than or equal to at least one second period of information of the preset threshold value; determining, based on the usage information, a set of control rules for controlling components of the target device, the set of control rules including the following control rules: in a time period corresponding to the first time period information, the part of the control target device keeps a conducting state; at least part of the components of the control target device keep the off state in the time period corresponding to the second time period information; and sending the determined control rule set to the target device to enable the target device to control the corresponding component of the target device based on the determined control rule set.
In some embodiments, the method further comprises: determining the use time period information of the equipment based on the obtained use information of the equipment in the equipment set in the preset time period; clustering the devices in the device set based on the use time period information of the devices to obtain a clustering result, wherein the clustering result is used for indicating the devices with the same use time period to be in the same class; and classifying the equipment to obtain at least one equipment category based on the clustering result, and setting a corresponding control rule group for each equipment category in the at least one equipment category.
In some embodiments, clustering devices in a set of devices based on usage period information for the devices includes: for a device in the set of devices, determining a usage period vector for the device, the usage period vector including a period component, the period component determined based on the usage period of the device and a number of uses within the usage period; and devices corresponding to the use period vectors with the similarity larger than a preset threshold value in the determined use period vectors are grouped into one type.
In some embodiments, determining a set of control rules for controlling a component of the target device based on the usage information comprises: predicting the device type of the target device based on the use information of the target device; and determining the control rule group corresponding to the predicted equipment category as the control rule group of the component for controlling the target equipment.
In some embodiments, after sending the determined set of control rules to the target device, the method further comprises: predicting the device class to which the target device belongs in response to detecting that the use period information of the target device changes; and determining the control rule group corresponding to the predicted equipment category as the control rule group of the component for controlling the target equipment.
In a second aspect, an embodiment of the present application provides an apparatus for controlling a device, including: an acquisition unit configured to acquire usage information of a target device, the usage information including usage period information including: the starting frequency of the target equipment is greater than at least one first period of information of a preset threshold value, and the starting frequency of the target equipment is less than or equal to at least one second period of information of the preset threshold value; a control rule set determination unit configured to determine a control rule set for controlling a component of the target device based on the usage information, the control rule set including the following control rules: in a time period corresponding to the first time period information, the part of the control target device keeps a conducting state; at least part of the components of the control target device keep the off state in the time period corresponding to the second time period information; a transmitting unit configured to transmit the determined control rule set to the target device to cause the target device to control a corresponding component of the target device based on the determined control rule set.
In some embodiments, the apparatus further comprises: a first usage period information determining unit configured to determine usage period information of devices based on the acquired usage information of the devices in the device set within the preset time period; the clustering unit is configured to cluster the devices in the device set based on the use time period information of the devices to obtain a clustering result, and the clustering result is used for indicating the devices with the same use time period to be in the same class; and the setting unit is configured to classify the equipment to obtain at least one equipment category based on the clustering result, and set a corresponding control rule group for each equipment category in the at least one equipment category.
In some embodiments, the clustering unit is further configured to: for a device in the set of devices, determining a usage period vector for the device, the usage period vector including a period component, the period component determined based on the usage period of the device and a number of uses within the usage period; and devices corresponding to the use period vectors with the similarity larger than a preset threshold value in the determined use period vectors are grouped into one type.
In some embodiments, the control rule set determining unit is further configured to: predicting the device type of the target device based on the use information of the target device; and determining the control rule group corresponding to the predicted equipment category as the control rule group of the component for controlling the target equipment.
In some embodiments, the apparatus further comprises: a prediction unit configured to predict a device class to which the target device belongs in response to detection of a change in the usage period information of the target device; a determination unit configured to determine a control rule group corresponding to the predicted device category as a control rule group for controlling a component of the target device.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement a method as in any embodiment of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method as in any embodiment of the first aspect.
According to the method and the device for controlling the equipment, the control rule group used for controlling the equipment is determined after the obtained use information of the equipment is analyzed, the selected control rule group is sent to the target equipment, so that the equipment can control parts corresponding to the target equipment according to the determined control rule group, the power consumption of certain parts can be shut down or reduced when the equipment is not used, the power consumption of the equipment is reduced, and the purpose of saving electric quantity or energy consumption is achieved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram that may be employed therein according to an embodiment of the present application;
FIG. 2 is a flow diagram of one embodiment of a method for controlling a device according to the present application;
FIG. 3 is a schematic diagram of one application scenario of a method for controlling a device according to the present application;
FIG. 4 is a flow chart of another embodiment of a method for controlling a device according to the present application;
FIG. 5 is a schematic block diagram of one embodiment of an apparatus for controlling a device according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing a server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
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 below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which a method for controlling a device or an apparatus for controlling a device of embodiments of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, a network 103, and a server 104. The network 103 serves as a medium for providing communication links between the terminal devices 101, 102 and the server 104. Network 103 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 101, 102 may interact with a server 104 over a network 103 for receiving or transmitting information or the like. Here, the terminal device 102 may be hardware or software. When the terminal device 102 is hardware, it may be a terminal device that controls each component of the terminal device itself with respect to the received control rule set. Here, the terminal device includes, but is not limited to, a smart audio, a smart phone, a tablet computer, a smart air conditioner, a smart refrigerator, a smart television, and the like. When the terminal device 102 is software, it can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 104 may be a server that provides various services (e.g., generates a control rule set), and for example, the server may perform various analysis processes on the acquired usage period information of the terminal devices 101 and 102, determine the control rule set of the components of the control device, and then transmit the control rule set to the terminal devices 101 and 102 so that the terminal devices 101 and 102 control their respective components according to the control rule set.
It is noted that the content-based methods provided by the embodiments of the present application are generally performed by the server 104. Accordingly, the means for controlling the device is typically provided in the server 104.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for controlling a device according to the present application is shown. The method for controlling the device comprises the following steps:
in step 201, usage information of the target device is obtained, and the usage information includes usage period information.
In the present embodiment, an execution subject (e.g., a server shown in fig. 1) of the method for controlling a device may acquire the usage information of the target device by a wired connection manner or a wireless connection manner. Here, the usage information may include usage frequency information of the target device by the user, may include usage state (e.g., on state, standby state) information, and when the target device is a device group (e.g., sound group), the usage information may further include frequency information of turning on sound groups in the sound group, frequency information of turning on the sound groups individually, and the like, and when the target device is a screen device and/or a sound device, the usage information may further include brightness information of a screen, size information of sound, and the like. Here, the usage period information may be recorded based on a display time of the terminal device for the target device. The target device may also record information of the user performing screen brightness adjustment and/or volume adjustment on the target device, and the like. The server for providing support to the target device may obtain other information of the target device.
In the present embodiment, the usage information further includes usage period information. The usage period information may include at least one first period information in which the turn-on frequency of the target device is greater than a preset threshold and at least one second period information in which the turn-on frequency of the target device is equal to or less than the preset threshold.
Generally, when the target device is turned on, the turn-on time may be recorded, and when the target device is turned off, the turn-off time may also be recorded. Accordingly, the target device stores therein an open time list recorded within a preset time period, and the execution main body may acquire the open time list of the target device, so that the usage period information of the target device may be acquired. Here, the usage period information is preset for the execution subject described above. For example, a cycle of days, and within a day, in units of hours, 24 periods may be divided. The time period may be divided by taking the week, month, year, etc. as a period, and is set according to the needs of the application scenario, which is not limited herein.
As an example, when the preset frequency threshold is 5 times, the target device is turned on more than 5 times in 6:00-7:00 and more than 5 times in 21:00-22:00 within a preset time period (e.g., within 5 days). So that 6:00-7:00 and 21:00-22:00 can be taken as the first period information and 7:01-20:59 and 22:01-5:59 can be taken as the second period information.
Based on the usage information, a set of control rules for controlling the target device is determined, step 202.
In this embodiment, the execution subject may determine a control rule group for controlling the target device according to the usage information of the target device acquired in step 201. Here, the control rule group may include a plurality of control rules. The control rules may include: in a time interval newly corresponding to the first time interval, the part of the control target device keeps a conducting state; at least part of the components of the control target device are kept in the off state in the period corresponding to the second period information. Here, the above-mentioned target control device may include a plurality of components, and generally, the plurality of components generally have different functions. By way of example, a computer may include a host, a display, and an input-output device, where the host may include a memory card, a central processing chip, a lithium battery, and so forth. The various components described above are typically required to remain in a conductive state when the target device is in use. The time that the target device is in the use state can be determined by determining the on time and the off time of the target device. Some users place the device in a powered off state when the target device is not in use, and some users typically place the device in a standby state for ease of reuse. When the equipment is in a shutdown state, all parts of the equipment can be in a shutdown state; when a device is in a standby state, components of the device that are associated with maintaining the standby state are typically placed in an on state and other components are placed in an off state. Thus, it is possible to determine whether the device sets the off state or the standby state in the period corresponding to the second period information, based on the usage information of the target device. The control rules in the control rule group may further include: and controlling the brightness of the display screen to reach the brightness corresponding to the screen brightness information of the target device acquired by the execution main body in the time period corresponding to the first time period information.
Step 203, sending the determined control rule set to the target device, so that the target device controls the corresponding component of the target device based on the determined control rule set.
In this embodiment, the execution subject may send the control rule set to the target device according to the control rule set determined in step 202. Therefore, the target device can control each component arranged on the execution main body based on the control rule set sent by the execution main body under the condition that the target device is not required to be in real-time communication connection with the execution main body, the occupied amount of network resources is reduced, meanwhile, each component of the target device can be controlled to be switched on or switched off based on the use habit of a user, the power consumption of each component on the target device is reduced, and the purpose of saving electric power is achieved.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario for controlling a device according to the present embodiment. In the application scenario of fig. 3, the server 302 obtains usage information of the stereo 301 within 7 days. Here, the usage information includes usage period information. In this type, the usage period information may be determined by the turn-on time. When the usage information of the sound 301 includes "6 o 'clock on 5 days in 7 days", "22 o' clock on 4 days in 7 days", "10 o 'clock on 1 day in 7 days", and "20 o' clock on 1 day in 7 days", it may be determined that the on frequency of the smart sound 3017 at 6 o 'clock is greater than the preset threshold 3, and the on frequency of the smart sound 3017 at 22 o' clock is greater than the preset threshold 3. Thus, usage period information within day of smart sound 3017 includes 6:00-7:00 and 21:00-22: 00. the server 302 may determine a set of control rules for controlling the components of the smart sound 301 based on the usage information. The set of control rules includes: in the following step 6:00-7:00 and 21:00-22:00 the components of the control audio 302 are kept in a conducting state; in the following step 7:01-20:59 and 22:01-5:59 controls some of the components of the audio 302 to remain closed.
According to the method and the device for controlling the equipment, the control rule group of the component used for controlling the equipment is determined after the obtained use information of the equipment is analyzed, and then the determined control rule group is sent to the target equipment, so that the target equipment controls the component corresponding to the target equipment according to the determined control rule group, the equipment can be turned off or standby when not in use, the screen brightness, the sound size and the like of the equipment are automatically adjusted according to the preference of a user when in use, the power consumption of the equipment is reduced, and the effect of saving power or reducing energy consumption is achieved.
With further reference to FIG. 4, a flow 400 of another embodiment of a method for controlling a device according to the present application is shown. The method for controlling the device comprises the following steps:
step 401, determining the usage period information of the device based on the acquired usage information of the devices in the device set in the preset time period.
In this embodiment, an execution subject (e.g., a server shown in fig. 1) of the method for controlling a device may acquire historical turn-on time information of devices in a device set within a preset time period through a wired connection manner or a wireless connection manner. Here, the devices in the set of devices may be devices of the same model. Here, the usage information may include screen brightness adjustment, volume adjustment, and the like. On time, off time. After the use information of the device is acquired, the execution main body may determine the use period information of the device according to the turn-on time and the turn-off time of the device. Here, the execution body may divide one time period into a plurality of periods and then compare the above-mentioned on time and off time with a plurality of periods divided in advance, thereby determining the usage period information of the above-mentioned device. Here, the time period may be, for example, one day, one month, one year, etc., without being particularly limited.
Step 402, clustering the devices in the device set based on the usage period information of the devices to obtain a clustering result.
In this embodiment, the execution subject may cluster the use times of the devices in the device set according to the use information of the devices in the device set, so as to obtain a clustering result. Specifically, the executing agent may divide the devices into a plurality of classes according to the usage periods by using a clustering algorithm, so as to obtain a clustering result of the devices of the plurality of classes. Here, the clustering result is used to indicate that devices having the same usage period are of the same class.
In some optional implementations, for a device in the set of devices, the execution subject may determine a usage period vector for the device, the usage period vector including a period component determined based on a usage period of the device and a number of times of usage in the usage period; and devices corresponding to the use period vectors with the similarity larger than a preset threshold value in the determined use period vectors are grouped into one type.
Specifically, for example, when the device is a smart audio device, for example, there are 100 smart audio devices in the device set. Before participating in clustering, the usage period of each smart sound can be represented by a vector. Assuming that a day is a period, each day is divided into 24 time periods in advance, and the time duration of each time period is 1 hour. For each intelligent sound, the using times of the intelligent sound in each time period in a week are counted according to the using time period of the intelligent sound in each day in the week. For example, a sound is 8: when the intelligent volume is used in the period of 00-9:00, the intelligent volume is 8: 7 of the number of uses in the period of 00-9: 00.
For each smart sound, the time period used during the week may be represented as a vector. In a vector corresponding to an intelligent sound, each component corresponds to a time period, and when the number of times of use of the intelligent sound in a time period is not 0, the value of the component corresponding to the time period is the number of times of use of the intelligent sound in the time period. When the number of times of use of the intelligent sound equipment in a time period is 0, the value of the component corresponding to the time period is 0.
Clustering may be performed from the vectors using a clustering algorithm, such as a multidimensional K-MEANS algorithm. Assuming that in the usage period vector corresponding to each of the 50 smart speakers, in 8: 00-9:00, 21:00-22:00, the values of the time interval components corresponding to the two time intervals are both greater than a preset threshold, and the values of the time interval components corresponding to other time intervals are both less than or equal to the preset threshold, so that the similarity between the use time interval vectors corresponding to the 50 sound devices is considered to be greater than the preset threshold, and the 50 intelligent sound devices can be determined to be used in the two time intervals in a centralized manner, so that the 50 intelligent sound devices can be gathered into one type.
Step 403, classifying the devices to obtain at least one device class based on the clustering result, and setting a corresponding control rule set for each device class in the at least one device class.
In this embodiment, according to the clustering result obtained in step 402, the executing entity may classify the devices having the same model as the device to obtain at least one device class, and then set a corresponding control rule group for each device class in the at least one device class. That is, devices having the same category are set to the same control rule group. Here, the same control rule group may include: in a time period corresponding to the first time period information, the part of the control equipment keeps a conducting state; at least part of the components of the control target device are kept in the off state in the period corresponding to the second period information. Here, at least one of the first period information and the second period information in the rule set is different according to different rule sets. Therefore, the execution main body can uniformly control the equipment with the same control rule group, so that the equipment accessed to the execution main body is uniformly managed, and the working efficiency of the execution main body is improved.
For example, the control rules in the set of control rules may be included in 8: in the time period of 00-9:00 and 21:00-22: and in the period of 00, all the components of the intelligent sound are kept to be in the power-on state. The control rules in the set of control rules may further include: at least a portion of the components are set to a powered-off state during periods 9:01-20:59 and during periods 22:01-7: 59.
Step 404, obtaining the usage information of the target device.
In the present embodiment, an execution subject (e.g., a server shown in fig. 1) of the method for controlling a device may acquire the usage information of the target device by a wired connection manner or a wireless connection manner. Here, the usage information may include frequency of use information of the target device by the user, and may include usage state (e.g., on state, standby state) information.
The usage information may further include usage period information. The usage period information may include at least one first period information in which the turn-on frequency of the target device is greater than a preset threshold and at least one second period information in which the turn-on frequency of the target device is equal to or less than the preset threshold.
Step 405, based on the usage information of the target device, predicts the device class to which the target device belongs.
The executing entity may further predict the device class determined in step 403 to which the target device belongs according to the usage information of the target device acquired in step 404.
For example, a user newly purchases one smart sound, and 100 smart sounds have been classified into several categories in advance. After obtaining data of a time period that the user newly purchases an intelligent sound box and turns on the electronic device within a week, the device category corresponding to the newly purchased intelligent sound box can be determined by using a clustering algorithm which can be classified, for example, a KNN (K-nearest neighbor KNN, K-nearest neighbor) classification algorithm.
In step 406, the control rule group corresponding to the predicted device type is determined as a control rule group for controlling the component of the target device.
Here, the execution body may determine a control rule set corresponding to the predicted device class according to a preset result and a control condition set corresponding to the device class determined in step 403.
Step 407, sending the determined control rule set to the target device, so that the target device controls the corresponding component of the target device based on the determined control rule set.
In this embodiment, the execution subject may send the control rule set to the target device according to the control rule set determined in step 202. Therefore, the target device can control each component arranged on the execution main body based on the control rule set sent by the execution main body under the condition that the target device is not required to be in real-time communication connection with the execution main body, the occupied amount of network resources is reduced, meanwhile, each component of the target device can be controlled to be switched on or switched off based on the use habit of a user, the power consumption of each component on the target device is reduced, and the purpose of saving electric power is achieved.
In some embodiments, after sending the determined set of control rules to the target device, the method further includes: determining usage period information of the target device based on a preset time interval; comparing the currently determined usage period information of the target device with previously stored usage period information of the target device to determine whether the usage period of the target device is changed; in response to detecting that the usage period of the target device changes, predicting a device class in at least one device class to which the target device belongs; based on the result of the prediction, a control rule group corresponding to the predicted control category is selected. Therefore, the working time of the target equipment can be dynamically adjusted better and the user experience is improved by acquiring the use habit of the user to the equipment in real time and updating the control rule set sent to the target equipment in real time.
As can be seen from fig. 4, unlike the real-time example shown in fig. 2, the present embodiment adds steps of obtaining a plurality of device classes by clustering the use periods of the devices, setting a control rule group for each device class, and determining a device class to which the target device belongs based on the use time of the target device, thereby determining a control rule group matching the target device. Meanwhile, the step of updating the control rule set of the target equipment in real time is added, so that the speed of setting the control rule set for the user is increased, the complexity of updating the control rule set of the target equipment in real time is reduced, and the improvement of user experience is facilitated.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for controlling a device, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the apparatus 500 for controlling a device of the present embodiment includes: an acquisition unit 501, a control rule set determination unit 502, and a transmission unit 503. An obtaining unit 501 configured to obtain usage information of a target device, the usage information including usage period information including: the starting frequency of the target equipment is greater than at least one first period of information of a preset threshold value, and the starting frequency of the target equipment is less than or equal to at least one second period of information of the preset threshold value; a control rule set determining unit 502 configured to determine a control rule set for controlling a component of the target device based on the usage information, the control rule set including the following control rules: in a time period corresponding to the first time period information, the part of the control target device keeps a conducting state; at least part of the components of the control target device keep the off state in the time period corresponding to the second time period information; a sending unit 503 configured to send the determined control rule set to the target device to cause the target device to control a corresponding component of the target device based on the determined control rule set.
In this embodiment, for specific processing of the obtaining unit 501, the control rule group determining unit 502, and the sending unit 503 in the apparatus 500 for controlling a device and beneficial effects brought by the specific processing, reference may be made to related descriptions of implementation manners of step 201, step 202, and step 203 in the corresponding embodiment of fig. 2, and details of the processing are not repeated here.
In some optional implementations of this embodiment, the apparatus 500 for controlling a device further includes: a first usage period information determination unit (not shown) configured to determine usage period information of devices based on the acquired usage information of the devices in the device set within the preset time period; a clustering unit (not shown) configured to cluster the devices in the device set based on the usage period information of the devices, resulting in a clustering result, wherein the clustering result is used for indicating that the devices with the same usage period are in the same class; and a setting unit (not shown) configured to classify the devices to obtain at least one device class based on the clustering result, and set a corresponding control rule group for each device class in the at least one device class.
In some optional implementations of this embodiment, the clustering unit is further configured to: for a device in the set of devices, determining a usage period vector for the device, the usage period vector including a period component, the period component determined based on the usage period of the device and a number of uses within the usage period; and devices corresponding to the use period vectors with the similarity larger than a preset threshold value in the determined use period vectors are grouped into one type.
In some optional implementations of the present embodiment, the control rule set determining unit 502 is further configured to: predicting the device type of the target device based on the use information of the target device; and determining the control rule group corresponding to the predicted equipment category as the control rule group of the component for controlling the target equipment.
In some optional implementations of this embodiment, the apparatus 500 for controlling a device further includes: a prediction unit (not shown) configured to predict a device class to which the target device belongs in response to detection of a change in the usage period information of the target device; a determination unit (not shown) configured to determine a control rule group corresponding to the predicted device category as a control rule group for controlling the component of the target device.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing the electronic device of an embodiment of the present application. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601. It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
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 various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a control rule set determination unit, and a transmission unit. The names of these units do not in some cases constitute a limitation on the unit itself, and for example, the search unit may also be described as a "unit that acquires usage information of the target device".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring usage information of a target device, the usage information including usage period information including: the starting frequency of the target equipment is greater than at least one first period of information of a preset threshold value, and the starting frequency of the target equipment is less than or equal to at least one second period of information of the preset threshold value; determining, based on the usage information, a set of control rules for controlling components of the target device, the set of control rules including the following control rules: in a time period corresponding to the first time period information, the part of the control target device keeps a conducting state; at least part of the components of the control target device keep the off state in the time period corresponding to the second time period information; and sending the determined control rule set to the target device to enable the target device to control the corresponding component of the target device based on the determined control rule set.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A method for controlling a device, comprising:
determining the use time period information of the equipment based on the obtained use information of the equipment in the equipment set in the preset time period;
clustering the devices in the device set based on the use time period information of the devices to obtain a clustering result, wherein the clustering result is used for indicating that the devices with the same use time period are in the same class;
classifying the equipment to obtain at least one equipment category based on the clustering result, and setting a corresponding control rule group for each equipment category in the at least one equipment category;
obtaining usage information of a target device, the usage information including usage period information including: the starting frequency of the target device is greater than at least one first period of information of a preset threshold value, and the starting frequency of the target device is less than or equal to at least one second period of information of the preset threshold value;
determining, based on the usage information, a set of control rules for controlling components of the target device, the set of control rules including the following control rules: controlling a component of the target device to keep a conducting state in a time period corresponding to the first time period information; controlling at least part of components of the target device to keep a turn-off state in a time period corresponding to the second time period information;
sending the determined control rule set to the target device to cause the target device to control the corresponding component of the target device based on the determined control rule set.
2. The method of claim 1, wherein the clustering devices of the set of devices based on usage period information for the devices comprises:
for a device in the set of devices, determining a usage period vector for the device, the usage period vector comprising a period component determined based on the usage period of the device and a number of uses within the usage period;
and devices corresponding to the use period vectors with the similarity larger than a preset threshold value in the determined use period vectors are grouped into one type.
3. The method of claim 1, wherein the determining, based on the usage information, a set of control rules for controlling components of the target device comprises:
predicting the device type of the target device based on the use information of the target device;
and determining the control rule group corresponding to the predicted equipment category as the control rule group of the component for controlling the target equipment.
4. The method of claim 1, wherein after the transmitting the determined set of control rules to the target device, the method further comprises:
predicting a device class to which the target device belongs in response to detecting that the usage period information of the target device changes;
and determining the control rule group corresponding to the predicted equipment category as the control rule group of the component for controlling the target equipment.
5. An apparatus for controlling a device, comprising:
an acquisition unit configured to acquire usage information of a target device, the usage information including usage period information including: the starting frequency of the target device is greater than at least one first period of information of a preset threshold value, and the starting frequency of the target device is less than or equal to at least one second period of information of the preset threshold value;
a control rule set determination unit configured to determine a control rule set for controlling a component of the target device based on the usage information, the control rule set including the following control rules: controlling a component of the target device to keep a conducting state in a time period corresponding to the first time period information; controlling at least part of components of the target device to keep a turn-off state in a time period corresponding to the second time period information;
a transmitting unit configured to transmit the determined control rule set to the target device to cause the target device to control a corresponding component of the target device based on the determined control rule set; the device further comprises:
a first usage period information determining unit configured to determine usage period information of devices based on the acquired usage information of the devices in the device set within the preset time period;
the clustering unit is configured to cluster the devices in the device set based on the use time period information of the devices to obtain a clustering result, and the clustering result is used for indicating that the devices with the same use time period are in the same class;
and the setting unit is configured to classify the equipment to obtain at least one equipment category based on the clustering result, and set a corresponding control rule group for each equipment category in the at least one equipment category.
6. The apparatus of claim 5, wherein the clustering unit is further configured to:
for a device in the set of devices, determining a usage period vector for the device, the usage period vector comprising a period component determined based on the usage period of the device and a number of uses within the usage period;
and devices corresponding to the use period vectors with the similarity larger than a preset threshold value in the determined use period vectors are grouped into one type.
7. The apparatus of claim 5, wherein the control rule set determination unit is further configured to:
predicting the device type of the target device based on the use information of the target device;
and determining the control rule group corresponding to the predicted equipment category as the control rule group of the component for controlling the target equipment.
8. The apparatus of claim 5, wherein the apparatus further comprises:
a prediction unit configured to predict a device class to which the target device belongs in response to detection of a change in the usage period information of the target device;
a determination unit configured to determine a control rule group corresponding to the predicted device category as a control rule group for controlling a component of the target device.
9. An electronic device, comprising:
one or more processors;
storage means having one or more programs stored thereon which, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN201810818184.0A 2018-07-24 2018-07-24 Method and device for controlling equipment Active CN109062396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810818184.0A CN109062396B (en) 2018-07-24 2018-07-24 Method and device for controlling equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810818184.0A CN109062396B (en) 2018-07-24 2018-07-24 Method and device for controlling equipment

Publications (2)

Publication Number Publication Date
CN109062396A CN109062396A (en) 2018-12-21
CN109062396B true CN109062396B (en) 2020-01-21

Family

ID=64836338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810818184.0A Active CN109062396B (en) 2018-07-24 2018-07-24 Method and device for controlling equipment

Country Status (1)

Country Link
CN (1) CN109062396B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175064A (en) * 2019-05-29 2019-08-27 广东美的制冷设备有限公司 Control interface display methods, device and remote control equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN102165755B (en) * 2008-09-24 2015-02-11 西门子企业通讯有限责任两合公司 Method, telephone, telecommunication system and device for controlling power consumption of a telephone
CN104706318A (en) * 2013-12-16 2015-06-17 中国移动通信集团公司 Sleep analysis method and device
CN105810194A (en) * 2016-05-11 2016-07-27 北京奇虎科技有限公司 Voice control information acquisition method under standby state and intelligent terminal
CN105824392A (en) * 2015-11-26 2016-08-03 维沃移动通信有限公司 Application program management method and terminal
CN106383450A (en) * 2016-11-10 2017-02-08 北京工商大学 Smart home user behavior analyzing system and smart home user behavior analyzing method based on big data
CN106455024A (en) * 2016-10-20 2017-02-22 上海摩软通讯技术有限公司 Method for automatically adjusting communication frequency, and terminal equipment
CN107306283A (en) * 2016-04-20 2017-10-31 中兴通讯股份有限公司 A kind of method of data synchronization and device
CN107566599A (en) * 2016-06-30 2018-01-09 张家港保税区鑫和成国际贸易有限公司 A kind of WIFI to close a terminal automatically method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5459393B2 (en) * 2010-11-18 2014-04-02 富士通株式会社 Multi-core processor system, control program, and control method
CN102956009B (en) * 2011-08-16 2017-03-01 阿里巴巴集团控股有限公司 A kind of electronic commerce information based on user behavior recommends method and apparatus
CN104462593B (en) * 2014-12-29 2018-07-31 北京奇虎科技有限公司 A kind of method and apparatus that the push of user individual message related to resources is provided
CN104865927A (en) * 2015-03-27 2015-08-26 北京海尔广科数字技术有限公司 Method and apparatus for constructing user model, and equipment control method and apparatus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102165755B (en) * 2008-09-24 2015-02-11 西门子企业通讯有限责任两合公司 Method, telephone, telecommunication system and device for controlling power consumption of a telephone
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN104706318A (en) * 2013-12-16 2015-06-17 中国移动通信集团公司 Sleep analysis method and device
CN105824392A (en) * 2015-11-26 2016-08-03 维沃移动通信有限公司 Application program management method and terminal
CN107306283A (en) * 2016-04-20 2017-10-31 中兴通讯股份有限公司 A kind of method of data synchronization and device
CN105810194A (en) * 2016-05-11 2016-07-27 北京奇虎科技有限公司 Voice control information acquisition method under standby state and intelligent terminal
CN107566599A (en) * 2016-06-30 2018-01-09 张家港保税区鑫和成国际贸易有限公司 A kind of WIFI to close a terminal automatically method
CN106455024A (en) * 2016-10-20 2017-02-22 上海摩软通讯技术有限公司 Method for automatically adjusting communication frequency, and terminal equipment
CN106383450A (en) * 2016-11-10 2017-02-08 北京工商大学 Smart home user behavior analyzing system and smart home user behavior analyzing method based on big data

Also Published As

Publication number Publication date
CN109062396A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
US11616845B2 (en) Electrical meter for determining a power main of a smart plug
CN108536650B (en) Method and device for generating gradient lifting tree model
CN108337358B (en) Application cleaning method and device, storage medium and electronic equipment
CN107704070B (en) Application cleaning method and device, storage medium and electronic equipment
CN111611478B (en) Information recommendation method and device and electronic equipment
WO2019062405A1 (en) Application program processing method and apparatus, storage medium, and electronic device
CN109324902B (en) Method for adjusting working frequency of mobile terminal, mobile terminal and storage medium
CN106484848B (en) Application recommendation method and device
US20180217654A1 (en) Power-saving processing method, device, mobile terminal and cloud server
CN107870810B (en) Application cleaning method and device, storage medium and electronic equipment
CN107748697B (en) Application closing method and device, storage medium and electronic equipment
CN112333596B (en) Earphone equalizer adjustment method, device, server and medium
WO2019062416A1 (en) Application cleaning method and apparatus, storage medium and electronic device
WO2019120007A1 (en) Method and apparatus for predicting user gender, and electronic device
CN111340220A (en) Method and apparatus for training a predictive model
CN107861769B (en) Application cleaning method and device, storage medium and electronic equipment
CN113728294B (en) Power consumption control and scheme generation method, device, system and storage medium
CN107807730B (en) Using method for cleaning, device, storage medium and electronic equipment
WO2019062404A1 (en) Application program processing method and apparatus, storage medium, and electronic device
CN111505944B (en) Energy-saving control strategy learning method, and method and device for realizing air conditioning energy control
CN115826729A (en) Hard disk power management method, device, electronic equipment, medium and product
CN109062396B (en) Method and device for controlling equipment
CN117236805B (en) Power equipment control method, device, electronic equipment and computer readable medium
CN107870809B (en) Application closing method and device, storage medium and electronic equipment
CN112306406A (en) Intelligent storage automatic grading method and device, storage medium and electronic equipment

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