Device control method, device, system and computer readable storage medium
By receiving and processing mode fields in the intelligent control of the device and adjusting the target mode according to the operation results, the problem that the device operation mode is not related to the previous mode is solved, and smarter device control is achieved.
Patent Information
- Application Number
- CN202010765941.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-31
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2040-07-31
AI Technical Summary
The existing intelligent control technology of equipment is relatively single, and the device operation mode is not related to the previous mode, resulting in the device operation rigidly and lack of intelligent control.
In the energy-saving mode, by receiving the mode fields reported by the target device, determining the target mode, and adjusting the target mode according to the operation results of the current mode, controlling the device to switch the operating mode, including obtaining the running time and power consumption to determine the execution time and power consumption to realize intelligent mode switching.
Through intelligent mode switching, the device no longer rigidly executes the target mode, but adjusts according to the operation results of the previous mode to achieve smarter operation, improving the intelligence and efficiency of device control.
Smart Images

Figure CN112327639B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a device control method, apparatus, system and computer-readable storage medium. Background Art
[0002] With the development of Internet of Things technology, equipment intelligent control technology is becoming more and more mature. For example, home appliances such as air conditioners can set corresponding operating modes according to actual needs for intelligent control, so that the air conditioner can be started and shut down according to different operating modes.
[0003] However, the current intelligent control technology for equipment is not smart enough, and the operating mode of the equipment is relatively simple. Common equipment operations are only turning the operating mode on and off, such as starting and shutting down the air conditioner; or switching between different operating modes, such as switching between the heating mode and the cooling mode of the air conditioner.
[0004] That is, there is no further development on the operation mode, so that the operation mode of the current device is not related to the previous operation mode, so that the device only operates according to the established operation mode, which is relatively rigid. Summary of the invention
[0005] The main purpose of the present invention is to provide a device control method, device, system and computer-readable storage medium, aiming to realize intelligent control of the device.
[0006] To achieve the above object, the present invention provides a device control method, which comprises the following steps:
[0007] In the energy-saving mode, if a mode field reported by a target device is received, a target mode corresponding to the mode field is determined, the mode field includes a value indicating a mode in which the target device is to run, and the target mode is a mode in which the target device is to run;
[0008] Determining whether a current mode of the target device is consistent with the target mode;
[0009] If they are inconsistent, the operation result of the target device in the current mode is obtained, and the target device is controlled to switch to the target mode based on the operation result.
[0010] Preferably, if the target mode is a quantitative mode, then if there is inconsistency, the step of obtaining the operation result of the target device in the current mode, and controlling the target device to switch to the target mode operation based on the operation result includes:
[0011] If they are inconsistent, obtaining the operation result of the target device in the current mode, wherein the operation result includes the operation time and power consumption;
[0012] Determining the execution time of the target mode and the target power consumption based on the running time and the power consumption;
[0013] Based on the execution time and the target power consumption, the target device is controlled to switch to the target mode for operation.
[0014] Preferably, the step of determining the execution time and target power consumption of the target mode based on the running time and the power consumption includes:
[0015] determining a mode time and a mode power consumption of the target mode, and determining whether the mode time includes the running time;
[0016] If so, the execution time of the target mode is determined based on the running time and the mode time, and the target power consumption of the target mode is determined based on the power consumption and the mode power consumption.
[0017] Preferably, after the step of controlling the target device to switch to the target mode of operation based on the execution time and the target power consumption, the device control method further comprises:
[0018] If the target mode is finished, determining the duration of the target mode based on the execution time;
[0019] During the duration, the target device is controlled to operate according to the target mode.
[0020] Preferably, if the target mode ends, the step of determining the duration of the target mode based on the execution time includes:
[0021] If the target mode ends, the continuation start time of the target mode is determined based on the execution time, and the continuation end time of the target mode is determined based on a preset continuation duration, wherein the preset continuation duration is the duration corresponding to the execution time;
[0022] Based on the continuation start time and the continuation end time, a continuation time of the target mode is determined.
[0023] Preferably, if there is inconsistency, the step of obtaining the operation result of the target device in the current mode, and controlling the target device to switch to the target mode based on the operation result includes:
[0024] If they are inconsistent, obtaining the operation result of the target device in the current mode and determining the user terminal corresponding to the target device;
[0025] The operation result is sent to the user terminal, and the target device is controlled to switch to the target mode operation.
[0026] Preferably, the step of determining whether the current mode of the target device is consistent with the target mode comprises:
[0027] Determine the device ID of the target device, and determine a record field corresponding to the device ID in a preset operation record table, wherein the record field is used to represent a mode field;
[0028] Determine whether the record field is consistent with the mode field, wherein if not, determine that the current mode of the target device is inconsistent with the target mode.
[0029] In addition, to achieve the above object, the present invention further provides a device control device, the device control device comprising:
[0030] A receiving module, configured to, in the energy-saving mode, determine a target mode corresponding to the mode field if a mode field reported by the target device is received, wherein the mode field includes a value indicating a mode in which the target device is to run, and the target mode is a mode in which the target device is to run;
[0031] A determination module, used to determine whether the current mode of the target device is consistent with the target mode;
[0032] The switching module is used to obtain the operation result of the target device in the current mode if there is inconsistency, and control the target device to switch to the target mode based on the operation result.
[0033] Preferably, if the target mode is a quantitative mode, the switching module is further used to:
[0034] If they are inconsistent, obtaining the operation result of the target device in the current mode, wherein the operation result includes the operation time and power consumption;
[0035] Determining the execution time of the target mode and the target power consumption based on the running time and the power consumption;
[0036] Based on the execution time and the target power consumption, the target device is controlled to switch to the target mode for operation.
[0037] Preferably, the switching module is further used for:
[0038] determining a mode time and a mode power consumption of the target mode, and determining whether the mode time includes the running time;
[0039] If so, the execution time of the target mode is determined based on the running time and the mode time, and the target power consumption of the target mode is determined based on the power consumption and the mode power consumption.
[0040] Preferably, the equipment control device further comprises a continuation module, and the continuation module is used for:
[0041] If the target mode is finished, determining the duration of the target mode based on the execution time;
[0042] During the duration, the target device is controlled to operate according to the target mode.
[0043] Preferably, the continuation module is also used for:
[0044] If the target mode ends, the continuation start time of the target mode is determined based on the execution time, and the continuation end time of the target mode is determined based on a preset continuation duration, wherein the preset continuation duration is the duration corresponding to the execution time;
[0045] Based on the continuation start time and the continuation end time, a continuation time of the target mode is determined.
[0046] Preferably, the switching module is further used for:
[0047] If they are inconsistent, obtaining the operation result of the target device in the current mode and determining the user terminal corresponding to the target device;
[0048] The operation result is sent to the user terminal, and the target device is controlled to switch to the target mode operation.
[0049] Preferably, the determining module is further used for:
[0050] Determine the device ID of the target device, and determine a record field corresponding to the device ID in a preset operation record table, wherein the record field is used to represent a mode field;
[0051] Determine whether the record field is consistent with the mode field, wherein if not, determine that the current mode of the target device is inconsistent with the target mode.
[0052] In addition, to achieve the above-mentioned purpose, the present invention also provides a device control system, which includes: a memory, a processor, and a device control program stored in the memory and executable on the processor, and the device control program implements the steps of the device control method described above when executed by the processor.
[0053] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a device control program is stored, and when the device control program is executed by a processor, the steps of the device control method described above are implemented.
[0054] The device control method proposed in the present invention, in energy-saving mode, if a mode field reported by a target device is received, then the target mode corresponding to the mode field is determined; whether the current mode of the target device is consistent with the target mode is determined; if not, the operation result of the target device in the current mode is obtained, and based on the operation result, the target device is controlled to switch to the target mode. The present invention switches modes according to the mode field in energy-saving mode, and can adjust the target mode to be switched according to the operation result of the previous mode during the switching process, so that the device no longer rigidly executes the target mode to be switched, but operates more intelligently according to the adjusted target mode, thereby realizing intelligent control of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a schematic diagram of the system structure of the hardware operating environment involved in the embodiment of the present invention;
[0056] Figure 2 It is a flowchart of the first embodiment of the device control method of the present invention.
[0057] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0058] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0059] like Figure 1 As shown, Figure 1 It is a schematic diagram of the system structure of the hardware operating environment involved in the embodiment of the present invention.
[0060] The system of the embodiment of the present invention includes a terminal or a server device.
[0061] like Figure 1As shown, the system may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0062] Those skilled in the art will understand that Figure 1 The system structure shown in the figure does not constitute a limitation of the system, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0063] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control program.
[0064] Among them, the operating system is a program that manages and controls the device control system and software resources, and supports the operation of the network communication module, user interface module, device control program and other programs or software; the network communication module is used to manage and control the network interface 1002; the user interface module is used to manage and control the user interface 1003.
[0065] exist Figure 1 In the device control system shown, the device control system calls the device control program stored in the memory 1005 through the processor 1001, and executes the operations in each embodiment of the following device control method.
[0066] Based on the above hardware structure, an embodiment of the device control method of the present invention is proposed.
[0067] Reference Figure 2 , Figure 2 This is a flow chart of a first embodiment of a device control method of the present invention, the method comprising:
[0068] Step S10, in the energy-saving mode, if a mode field reported by the target device is received, determining a target mode corresponding to the mode field, wherein the mode field includes a value indicating a mode in which the target device is to run, and the target mode is a mode in which the target device is to run;
[0069] Step S20, determining whether the current mode of the target device is consistent with the target mode;
[0070] Step S30: If they are inconsistent, the operation result of the target device in the current mode is obtained, and based on the operation result, the target device is controlled to switch to the target mode for operation.
[0071] The device control method of this embodiment is applied to a device control system, which includes a terminal or server device. For the convenience of description, the device control system is referred to as a control system. The control system of this embodiment connects multiple devices wirelessly or wired, where the devices can specifically be air conditioners, lamps, refrigerators, etc. For the convenience of description, in the following description, the target device is described as an air conditioner.
[0072] It should be noted that the control system has preset dual energy-saving modes, namely ECO (energy-saving mode) and advancedECOMode (advanced energy-saving mode). Among them, the advancedECOMode mode is a further development of the ECO mode. The advancedECOMode mode includes sub-modes such as quantitative mode, quota mode and constant temperature mode. Each sub-mode corresponds to a mode field. For example, the mode field of the quantitative mode is 1, indicating a money-saving mode with fixed power consumption; the mode field of the quota mode is 2, indicating a power-saving mode with a fixed operating frequency; the mode field of the constant temperature mode is 3, indicating an energy-saving mode with a fixed temperature, etc.
[0073] The control system of this embodiment controls the target device to operate in the ECO mode through the mode field, and during the operation, adjusts the current target mode according to the operation result of the previous mode, so that the device can operate more intelligently according to the target mode.
[0074] The following is a detailed description of each step:
[0075] Step S10, in energy saving mode, if a mode field reported by the target device is received, the target mode corresponding to the mode field is determined, the mode field includes a value indicating the mode in which the target device is about to run, and the target mode is the mode in which the target device is about to run.
[0076] In this embodiment, in the energy-saving mode, the control system detects in real time whether the target device reports the mode field. It is understandable that the user can control the target device under the control system, specifically by connecting to the target device through a mobile terminal such as a mobile phone or a remote controller, and sending a control instruction to the target device through the mobile terminal. For example, if the user sends a quantitative mode start request to the air conditioner through the remote controller, the target device, that is, the air conditioner, will send the mode field corresponding to the quantitative mode to the control system according to the start request.
[0077] Therefore, in energy-saving mode, if the control system receives the mode field reported by the target device, it means that the user has controlled the target device. The control system first determines the target mode corresponding to the mode field, that is, determines the mode that the user wants to control the target device to run.
[0078] In one embodiment, the mode field corresponds to the mode one by one. As mentioned above, 1 represents the quantitative mode; 2 represents the fixed-rate mode; 3 represents the fixed-temperature mode, and so on.
[0079] In one embodiment, in order to adapt to the user's operational needs in different time periods, when determining the target mode corresponding to the mode field, the current time period, such as day or night, must also be considered. That is, after receiving the mode field reported by the target device, the control system determines the time period in which the current receiving time is located, and then determines the corresponding target mode based on the mode field and the time period in which the current receiving time is located. That is, the target mode corresponds to the mode field and the time period.
[0080] In one embodiment, in order to adapt to the operational needs of different users, when determining the target mode corresponding to the mode field, the identity of the current user, such as children and adults, etc., must also be considered. That is, after receiving the mode field reported by the target device, the control system determines the identity of the current user corresponding to the target device, and then determines the corresponding target mode based on the mode field and the identity of the current user, that is, the target mode corresponds to the mode field and the identity of the current user, etc.
[0081] Step S20, determining whether the current mode of the target device is consistent with the target mode.
[0082] In this embodiment, after determining the target mode corresponding to the mode field, that is, the mode desired by the user, the control system determines whether the current mode of the target device is consistent with the target mode, where the current mode is the mode in which the target device is currently running, that is, determines whether the mode in which the target device is currently running is the mode desired by the user.
[0083] Specifically, in one embodiment, step S20 includes:
[0084] Step a1, determining the device ID of the target device, and determining a record field corresponding to the device ID in a preset operation record table, wherein the record field is used to represent a mode field;
[0085] In one embodiment, an operation record table (save_money_can_see_start_info) is preset in the control system. In this table, the operation mode of the target device will be recorded in real time, specifically recording the device ID of the target device and the mode field corresponding to the current operation mode of the target device, wherein the mode field is represented by a record field in the operation record table.
[0086] Therefore, the control device may first determine the device ID of the target device, and then find the record of the target device in the operation record table according to the device ID, thereby reading the record field of the record.
[0087] It should be noted that when the control system controls the target device to switch modes, the mode field corresponding to the switched mode will be updated to the operation record table in real time. In addition, the operation record table can also record the operation time corresponding to the mode.
[0088] Step a2, determining whether the record field is consistent with the mode field, wherein if not, determining that the current mode of the target device is inconsistent with the target mode.
[0089] Then, the received mode field is compared with the record field to determine whether the record field and the mode field are consistent. If not, it is determined that the current mode of the target device is inconsistent with the target mode, that is, the current operating mode of the target device is not what the user wants.
[0090] In one embodiment, if the record field is consistent with the mode field, it is determined that the current mode of the target device is consistent with the target mode. At this time, the control system does not control the target device, so that the target device maintains the original mode.
[0091] In one embodiment, if the record field is consistent with the mode field, it is determined that the current mode of the target device is consistent with the target mode. At this time, the control system resets the original mode, that is, controls the operation of the target device according to the execution conditions corresponding to the target mode. For example, the original mode is to run for 8 hours at a fixed operating frequency, and it has been running for 2 hours. If the target mode corresponding to the currently received mode field is consistent with the current mode of the target device, the current mode is reset, and the operating mode that was originally scheduled to end after another 6 hours is reset to run for 8 hours, etc.
[0092] Step S30: If they are inconsistent, the operation result of the target device in the current mode is obtained, and based on the operation result, the target device is controlled to switch to the target mode for operation.
[0093] In this embodiment, if the control system determines that the current mode of the target device is inconsistent with the target mode, that is, the current mode of the target device is not what the user wants, then the operation result of the target device in the current operation mode is obtained, wherein the operation result includes the operation time, power consumption, and consumption amount, etc. That is, when the target device is in operation, the control system will obtain the operation status of the target device.
[0094] Then, the control system adjusts the target mode according to the operating result of the target device in the current mode, and then controls the target device to switch to the target mode for operation.
[0095] In one embodiment, if the target mode is a quantitative mode, step S30 includes:
[0096] Step b1, if they are inconsistent, obtaining the operation result of the target device in the current mode, wherein the operation result includes the operation time and power consumption;
[0097] In one embodiment, if it is determined that the current mode of the target device is inconsistent with the target mode, the operation result of the target device in the current mode is obtained, wherein the operation result includes the operation time, power consumption and consumption amount, etc. The operation time specifically includes the operation start time and the operation duration, etc.
[0098] Step b2, determining the execution time and target power consumption of the target mode based on the running time and the power consumption;
[0099] Then, based on the running time and power consumption of the target device in the current mode, the execution time and target power consumption of the target mode are determined, wherein the execution time includes the execution start time and the execution duration. Specifically, the end time corresponding to the running time of the target device in the current mode is determined as the execution start time of the target mode, and the preset execution duration corresponding to the target mode is used as the execution duration.
[0100] Then, the target power consumption of the target mode is obtained by subtracting the power consumption of the target device in the current mode from the total power consumption corresponding to the energy-saving mode.
[0101] Further, in one embodiment, step b2 includes:
[0102] Step b21, determining the mode time and mode power consumption of the target mode, and determining whether the mode time includes the running time;
[0103] Step b22: If yes, determine the execution time of the target mode based on the running time and the mode time, and determine the target power consumption of the target mode based on the power consumption and the mode power consumption.
[0104] That is, in one embodiment, the control system first determines the mode time of the target mode and the mode power consumption, wherein the mode time includes the mode start time and the mode duration, such as the air conditioner consumes one yuan per night, that is, the mode time of the air conditioner is from 12 o'clock in the evening to 8 o'clock in the morning, and the mode power consumption is 0.77 degrees (calculated at 1.3 yuan per degree). And determine whether the running time of the target device in the current mode is included in the mode time, such as whether it is between 12 o'clock in the evening and 8 o'clock in the morning.
[0105] If yes, the execution time of the target mode is determined according to the running time and mode time of the target device in the current mode, wherein the execution time includes the execution start time and the execution duration.
[0106] Specifically, the end time of the target device in the current mode is determined based on the operation start time and the operation duration. Then, the end time is subtracted from the mode start time to obtain the operation duration. Then, the operation duration is subtracted from the mode duration to obtain the new mode duration of the target mode, that is, the execution duration. The end time is the execution start time. As in the above example, the operation time of the target device in the current mode is from 12 o'clock in the evening to 3 o'clock in the morning, that is, the end time is 3 o'clock in the morning. After the mode start time of 12 o'clock in the evening, the subtraction of the two is 3 hours of operation duration. Then 8-3=5 hours is used to obtain the new mode duration of the target mode. Therefore, the execution time of the target mode is 3 o'clock in the morning, and it is executed for 5 hours.
[0107] Next, the target power consumption of the target mode is determined based on the power consumption of the target device in the current mode and the mode power consumption. Specifically, the target power consumption can be obtained by subtracting the mode power consumption from the power consumption. For example, in the above example, if the power consumption of the target device in the current mode is 0.5 degrees, then the target power consumption = 0.77-0.5 = 0.27 degrees.
[0108] Step b3: Based on the execution time and the target power consumption, control the target device to switch to the target mode of operation.
[0109] Finally, according to the adjusted execution time and target power consumption of the target mode, the target device is controlled to switch to the target mode. Specifically, the operating frequency of the target device can be determined according to the target power consumption, and the target device can be controlled to run at the operating frequency for the execution time.
[0110] Further, in one embodiment, step S30 includes:
[0111] Step c1: if not consistent, obtaining the operation result of the target device in the current mode and determining the user terminal corresponding to the target device;
[0112] In one embodiment, if it is determined that the current mode of the target device is inconsistent with the target mode, the operation result of the target device in the current mode is obtained, and at the same time, the user terminal corresponding to the target device is determined.
[0113] Step c2, sending the operation result to the user terminal, and controlling the target device to switch to the target mode operation.
[0114] Then, the running result is sent to the user terminal, and the target device is controlled to switch the running mode to the target mode.
[0115] It should be noted that the user terminal can be the user terminal of the current user, that is, the terminal used by the current user to control the target device; it can also be a user terminal additionally bound to the target device. For example, if the target device is an air conditioner, the air conditioner is bound to the homeowner's terminal, the homeowner's son controls the air conditioner, and the control system sends the operating results of the air conditioner to the homeowner's terminal.
[0116] In the energy-saving mode, if the mode field reported by the target device is received, the target mode corresponding to the mode field is determined; whether the current mode of the target device is consistent with the target mode is determined; if not, the operation result of the target device in the current mode is obtained, and the target device is controlled to switch to the target mode based on the operation result. The present invention switches modes according to the mode field in the energy-saving mode, and can adjust the target mode to be switched according to the operation result of the previous mode during the switching process, so that the device no longer rigidly executes the target mode to be switched, but runs more intelligently according to the adjusted target mode, thereby realizing intelligent control of the device.
[0117] Furthermore, based on the first embodiment of the device control method of the present invention, a second embodiment of the device control method of the present invention is proposed.
[0118] The difference between the second embodiment of the device control method and the first embodiment of the device control method is that after step b3, the device control method further includes:
[0119] Step d, if the target mode is finished, determining the duration of the target mode based on the execution time;
[0120] Step e: controlling the target device to operate according to the target mode during the duration.
[0121] In this embodiment, after the target mode operation is completed, the control system starts the intelligent continuation operation, so that the target device continues to operate according to the target mode. The user does not need to repeat the operation and can continue to enjoy the operation service brought by the target mode, thereby improving the intelligence of device control.
[0122] The following is a detailed description of each step:
[0123] Step d: If the target mode ends, the duration of the target mode is determined based on the execution time.
[0124] In this embodiment, if the control system detects that the target mode has ended, that is, the target device has run for a certain period of time in the target mode, then the target mode has been terminated. During this process, no mode field of other modes has been received, indicating that the user has defaulted to the target mode. Therefore, in order to enable the target device to continue to run in accordance with the target mode and allow the user to continue to enjoy the operating services of the target device, the control system does not shut it down, but chooses to continue.
[0125] Specifically, step d includes:
[0126] Step d1, if the target mode ends, determining the continuation start time of the target mode based on the execution time, and determining the continuation end time of the target mode based on a preset continuation duration, wherein the preset continuation duration is the duration corresponding to the execution time;
[0127] Step d2, determining the duration of the target mode based on the duration start time and the duration end time.
[0128] The continuation time of the target mode is determined according to the execution time of the target device in the target mode. The specific continuation logic may be: the continuation start time is the same as the execution start time of the target mode, and then the date is changed to the date of the next day; the continuation end time is the continuation start time postponed by a preset time, wherein the preset time may be consistent with the execution time, and then the continuation time of the target mode is determined according to the continuation start time and the continuation end time.
[0129] If the user turns on the target mode from 3 a.m. to 8 a.m. on July 6, and does not switch to other modes in the meantime, indicating that the user approves the target mode, then after the target mode ends, the target device will be automatically controlled to enter the target mode from 3 a.m. to 8 a.m. on July 7 without the need for user control.
[0130] Of course, the continuation time may also be continued at the beginning of the end of the target mode, that is, the continuation start time of the target mode may be the end time of the target mode, etc.
[0131] Step e: controlling the target device to operate according to the target mode during the duration.
[0132] In this embodiment, after determining the duration of the target mode, the control system controls the target device to continue operating according to the target mode within the duration.
[0133] In this embodiment, after the target mode operation is completed, the control system starts the intelligent continuation operation, so that the target device continues to operate according to the target mode. The user does not need to repeat the operation and can continue to enjoy the operation service brought by the target mode, thereby improving the intelligence of device control.
[0134] The present invention also provides a device control device. The device control device of the present invention comprises:
[0135] A receiving module, configured to, in the energy-saving mode, determine a target mode corresponding to the mode field if a mode field reported by the target device is received, wherein the mode field includes a value indicating a mode in which the target device is to run, and the target mode is a mode in which the target device is to run;
[0136] A determination module, used to determine whether the current mode of the target device is consistent with the target mode;
[0137] The switching module is used to obtain the operation result of the target device in the current mode if there is inconsistency, and control the target device to switch to the target mode based on the operation result.
[0138] Preferably, if the target mode is a quantitative mode, the switching module is further used to:
[0139] If they are inconsistent, obtaining the operation result of the target device in the current mode, wherein the operation result includes the operation time and power consumption;
[0140] Determining the execution time of the target mode and the target power consumption based on the running time and the power consumption;
[0141] Based on the execution time and the target power consumption, the target device is controlled to switch to the target mode for operation.
[0142] Preferably, the switching module is further used for:
[0143] determining a mode time and a mode power consumption of the target mode, and determining whether the mode time includes the running time;
[0144] If so, the execution time of the target mode is determined based on the running time and the mode time, and the target power consumption of the target mode is determined based on the power consumption and the mode power consumption.
[0145] Preferably, the equipment control device further comprises a continuation module, and the continuation module is used for:
[0146] If the target mode is finished, determining the duration of the target mode based on the execution time;
[0147] During the duration, the target device is controlled to operate according to the target mode.
[0148] Preferably, the continuation module is also used for:
[0149] If the target mode ends, the continuation start time of the target mode is determined based on the execution time, and the continuation end time of the target mode is determined based on a preset continuation duration, wherein the preset continuation duration is the duration corresponding to the execution time;
[0150] Based on the continuation start time and the continuation end time, a continuation time of the target mode is determined.
[0151] Preferably, the switching module is further used for:
[0152] If they are inconsistent, obtaining the operation result of the target device in the current mode and determining the user terminal corresponding to the target device;
[0153] The operation result is sent to the user terminal, and the target device is controlled to switch to the target mode operation.
[0154] Preferably, the determining module is further used for:
[0155] Determine the device ID of the target device, and determine a record field corresponding to the device ID in a preset operation record table, wherein the record field is used to represent a mode field;
[0156] Determine whether the record field is consistent with the mode field, wherein if not, determine that the current mode of the target device is inconsistent with the target mode.
[0157] The present invention also provides a computer-readable storage medium.
[0158] The computer-readable storage medium of the present invention stores a device control program, and when the device control program is executed by a processor, the steps of the device control method described above are implemented.
[0159] Among them, the method implemented when the device control program running on the processor is executed can refer to the various embodiments of the device control method of the present invention, and will not be repeated here.
[0160] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0161] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0162] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0163] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A device control method, characterized in that: The device control method comprises the following steps: In the energy-saving mode, if a mode field reported by a target device is received, a target mode corresponding to the mode field is determined, the mode field includes a value indicating a mode in which the target device is to run, and the target mode is a mode in which the target device is to run; Determining whether a current mode of the target device is consistent with the target mode; If they are consistent, reset the current mode; If they are inconsistent, obtaining the operation result of the target device in the current mode, and controlling the target device to switch to the target mode based on the operation result; Wherein, the target mode is a quantitative mode, and the step of obtaining the operation result of the target device in the current mode and controlling the target device to switch to the target mode based on the operation result includes: Obtaining the operation result of the target device in the current mode, wherein the operation result includes the operation time and power consumption; Determining the execution time and target power consumption of the target mode based on the running time and the power consumption; Based on the execution time and the target power consumption, controlling the target device to switch to the target mode of operation; Wherein, the step of determining the execution time and target power consumption of the target mode based on the running time and the power consumption comprises: determining a mode time and a mode power consumption of the target mode, and determining whether the mode time includes the operating time; If so, determining the execution time of the target mode based on the running time and the mode time, and determining the target power consumption of the target mode based on the power consumption and the mode power consumption, wherein the execution time includes the execution start time and the execution duration; The step of determining the execution time of the target mode based on the running time and the mode time, and determining the target power consumption of the target mode based on the power consumption and the mode power consumption includes: Determining the end time corresponding to the running time of the target device in the current mode as the execution start time of the target mode; Determine the end time of the target device in the current mode according to the running start time and the running duration of the current mode, obtain the running duration of the current mode according to the end time and the running start time, and determine the execution duration of the target mode according to the mode duration and the running duration of the current mode; The target power consumption of the target mode is obtained by subtracting the power consumption of the target device in the current mode from the total power consumption corresponding to the energy-saving mode.
2. The device control method according to claim 1, characterized in that: After the step of controlling the target device to switch to the target mode of operation based on the execution time and the target power consumption, the device control method further includes: If the target mode is finished, determining the duration of the target mode based on the execution time; During the duration, the target device is controlled to operate according to the target mode.
3. The device control method according to claim 2, characterized in that: If the target mode ends, the step of determining the duration of the target mode based on the execution time includes: If the target mode ends, the continuation start time of the target mode is determined based on the execution time, and the continuation end time of the target mode is determined based on a preset continuation duration, wherein the preset continuation duration is the duration corresponding to the execution time; Based on the continuation start time and the continuation end time, a continuation time of the target mode is determined.
4. The device control method according to claim 1, characterized in that: If the operation result of the target device in the current mode is inconsistent, the step of obtaining the operation result of the target device in the current mode, and controlling the target device to switch to the target mode based on the operation result includes: If they are inconsistent, obtaining the operation result of the target device in the current mode and determining the user terminal corresponding to the target device; The operation result is sent to the user terminal, and the target device is controlled to switch to the target mode operation.
5. The device control method according to any one of claims 1 to 4, characterized in that: The step of determining whether the current mode of the target device is consistent with the target mode comprises: Determine the device ID of the target device, and determine a record field corresponding to the device ID in a preset operation record table, wherein the record field is used to represent a mode field; Determine whether the record field is consistent with the mode field, wherein if not, determine that the current mode of the target device is inconsistent with the target mode.
6. A device control device, characterized in that: The equipment control device comprises: A receiving module, configured to, in the energy-saving mode, determine a target mode corresponding to the mode field if a mode field reported by the target device is received, wherein the mode field includes a value indicating a mode in which the target device is to run, and the target mode is a mode in which the target device is to run; A determination module, used to determine whether the current mode of the target device is consistent with the target mode; A switching module, configured to reset the current mode if the two modes are consistent; if the two modes are inconsistent, obtain the operation result of the target device in the current mode, and control the target device to switch to the target mode based on the operation result; Wherein, the target mode is a quantitative mode, and the switching module is specifically used for: Obtaining the operation result of the target device in the current mode, wherein the operation result includes the operation time and power consumption; Determining the execution time of the target mode and the target power consumption based on the running time and the power consumption; Based on the execution time and the target power consumption, controlling the target device to switch to the target mode of operation; Wherein, the switching module is also used for: determining a mode time and a mode power consumption of the target mode, and determining whether the mode time includes the running time; If so, determining the execution time of the target mode based on the running time and the mode time, and determining the target power consumption of the target mode based on the power consumption and the mode power consumption, wherein the execution time includes the execution start time and the execution duration; Wherein, the switching module is also used for: Determining the end time corresponding to the running time of the target device in the current mode as the execution start time of the target mode; Determine the end time of the target device in the current mode according to the running start time and the running duration of the current mode, obtain the running duration of the current mode according to the end time and the running start time, and determine the execution duration of the target mode according to the mode duration and the running duration of the current mode; The target power consumption of the target mode is obtained by subtracting the power consumption of the target device in the current mode from the total power consumption corresponding to the energy-saving mode.
7. A device control system, characterized in that: The device control system includes a memory, a processor, and a device control program stored in the memory and executable on the processor. When the device control program is executed by the processor, the steps of the device control method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a device control program, and when the device control program is executed by a processor, the steps of the device control method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Energy-saving control method and device for frequency conversion air conditioner
CN103206767A
Electric quantity control method, internet of things terminal and internet of things server
CN104125274A
Visualization electric energy control method and system based on intelligent air conditioner and storage medium
CN108131781A
Application program control method and device, terminal and computer readable storage medium
CN110187753A
Power consumption based hot water dispenser control method, device and hot water dispenser
CN110513874A
