Device control method and apparatus, energy-saving device, electronic device, and storage medium

By acquiring and comparing the current values ​​of electrical devices, the power supply strategy is determined and control operations are executed, which solves the problem of minimal current consumption of devices in standby mode, reduces electricity costs, and improves user experience.

CN116068931BActive Publication Date: 2026-02-13GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211544858.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2026-02-13
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

In household electrical appliances, there are devices that are not frequently used that continue to consume a small amount of current in standby mode, leading to increased electricity costs and a poor user experience.

Method used

By acquiring the current value of the target device, the target current value is determined, and based on the comparison results, the control strategy of the power supply circuit is determined, and corresponding control operations are executed, such as maintaining power supply or cutting off power supply.

Benefits of technology

It enables accurate control of the power supply circuit of the target device, reduces electricity costs, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116068931B_ABST
    Figure CN116068931B_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to a device control method and device, an energy-saving device, an electronic device and a storage medium. The method comprises: obtaining a current current value of a target device and determining a target current value of the target device; comparing the current current value with the target current value; determining a control strategy for a power supply circuit of the target device according to the comparison result; and performing a corresponding control operation on the power supply circuit according to the control strategy. Thus, the current current value of the target device can be detected, and the corresponding control strategy can be determined according to the comparison result between the current current value and the target current value. The power supply circuit of the target device can be effectively controlled according to the current state of the target device, the power consumption cost can be saved, and the experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of smart home, and in particular to a device control method and device, an energy-saving device, an electronic device, and a storage medium. BACKGROUND

[0002] With the development of science and technology, various electrical devices are widely used in many families, such as microwave ovens, induction cookers, kettles, and range hoods. At present, people usually directly connect the plugs of electrical devices to sockets to ensure normal power supply of the electrical devices. However, among the electrical devices connected to the sockets, there may be some devices that are not frequently used. Moreover, for electrical devices with huge standby power consumption, such as washing machines and induction cookers, a small amount of current may be consumed when the electrical devices are in a standby state, which leads to an increase in power consumption and poor user experience. SUMMARY

[0003] In view of this, to solve the technical problem that among the electrical devices connected to the sockets, there may be some devices that are not frequently used, and for electrical devices with huge standby power consumption, such as washing machines and induction cookers, a small amount of current may be consumed when the electrical devices are in a standby state, which leads to an increase in power consumption and poor user experience, embodiments of the present application provide a device control method and device, an energy-saving device, an electronic device, and a storage medium.

[0004] In a first aspect, an embodiment of the present application provides a device control method, which comprises:

[0005] obtaining a current current value of a target device and determining a target current value of the target device;

[0006] comparing the current current value with the target current value;

[0007] determining a control strategy for a power supply circuit of the target device according to a comparison result;

[0008] performing a corresponding control operation on the power supply circuit according to the control strategy.

[0009] In an optional embodiment, the obtaining of the current current value of the target device and the determination of the target current value of the target device comprise:

[0010] collecting the current current value of the target device according to a preset current sampling period;

[0011] storing the current current value in a preset current queue;

[0012] determining the target current value of the target device according to current values in the current queue.

[0013] In an optional implementation, before the step of storing the current current value into the preset current queue, the method further comprises:

[0014] determining a target number of current values stored in the current queue;

[0015] comparing the target number with a preset number threshold;

[0016] in a case that the target number is equal to the number threshold, determining a sampling time of each current value in the current queue;

[0017] removing a current value with the earliest sampling time from the current queue, and performing the step of storing the current current value into the preset current queue.

[0018] In an optional implementation, the method further comprises:

[0019] in a case that the target number is less than the number threshold, storing the current current value into the preset current queue;

[0020] determining a current number of current values stored in the current queue;

[0021] comparing the current number with the number threshold;

[0022] if the current number is less than the number threshold, performing the step of collecting the current current value of the target device according to the preset current sampling period;

[0023] if the current number is equal to the number threshold, performing the step of determining the target current value of the target device according to the current values in the current queue.

[0024] In an optional implementation, after the step of storing the current current value into the preset current queue, the method further comprises:

[0025] determining a target number of current values stored in the current queue;

[0026] comparing the target number with a preset number threshold;

[0027] in a case that the target number is equal to the number threshold, performing the step of determining the target current value of the target device according to the current values in the current queue;

[0028] in a case that the target number is less than the number threshold, performing the step of collecting the current current value of the target device according to the preset current sampling period.

[0029] In an optional implementation, the method further comprises:

[0030] In a case where the target quantity is greater than the quantity threshold, determining sampling time points of each current value in the current queue;

[0031] According to the sampling time points, sorting the current values stored in the current queue, and selecting top N current values to form a current set, N being a positive integer;

[0032] The determining of the target current value of the target device according to the current values in the current queue comprises:

[0033] Determining the target current value of the target device according to the current values in the current set.

[0034] In an optional implementation, the determining of the target current value of the target device according to the current values in the current queue comprises:

[0035] Determining an average value of the current values in the current queue, and determining a product of the average value and a preset proportion as the target current value of the target device.

[0036] In an optional implementation, the determining of the control strategy of the power supply circuit of the target device according to the comparison result comprises:

[0037] If the current current value is greater than or equal to the target current value, determining that the control strategy of the power supply circuit of the target device is to maintain power supply;

[0038] If the current current value is less than the target current value, determining that the control strategy of the power supply circuit of the target device is to cut off power supply.

[0039] In an optional implementation, the performing of the corresponding control operation on the power supply circuit according to the control strategy comprises:

[0040] In a case where the control strategy is to maintain power supply, performing a control operation of maintaining power supply on the power supply circuit of the target device;

[0041] In a case where the control strategy is to cut off power supply, performing a control operation of cutting off power supply on the power supply circuit of the target device, wherein the power supply circuit of the target device is cut off by a switching device.

[0042] In an optional implementation, after the performing of the control operation of cutting off power supply on the power supply circuit of the target device, the method further comprises:

[0043] When the switching device is detected to be closed, turning on the power supply circuit of the target device.

[0044] In a second aspect, the embodiments of the present application provide an energy-saving device, comprising: a power management module, a micro-control module; wherein the power management module is configured to supply power to the micro-control module and the target device; and the micro-control module is configured to execute the device control method in any one of claims 1-10.

[0045] The first input end of the power management module is connected with the first end of an alternating current power supply, and the second input end of the power management module is connected with the second end of the alternating current power supply.

[0046] The first output end of the power management module is connected with the first input end of the micro-control module, the second output end of the power management module is connected with the second input end of the micro-control module, and the receiving end of the power management module is connected with the output end of the micro-control module.

[0047] The third output end of the power management module is connected with the first input end of the target device, and the fourth output end of the power management module is connected with the second input end of the target device.

[0048] In an optional embodiment, the power management module comprises a power supply unit and a control unit.

[0049] The power supply unit is configured to convert the alternating current power supply into a direct current power supply and supply power to the micro-control module.

[0050] The control unit is configured to supply power to the target device, receive a control signal from the micro-control unit, and control the power supply circuit of the target device according to the control signal.

[0051] The first input end of the power supply unit is connected with the first end of the alternating current power supply, and the second input end of the power supply unit is connected with the second end of the alternating current power supply.

[0052] The first output end of the power supply unit is connected with the first input end of the micro-control module, and the second output end of the power supply unit is connected with the second input end of the micro-control module.

[0053] The first input end of the control unit is connected with the first end of the alternating current power supply, and the second input end of the control unit is connected with the second end of the alternating current power supply.

[0054] The first output end of the control unit is connected with the first input end of the target device, and the second output end of the control unit is connected with the second input end of the target device.

[0055] The receiving end of the control unit is connected with the output end of the micro control module, the sixth input end of the control unit is connected with the power supply, and the seventh output end of the control unit is connected with the ground wire.

[0056] In an optional embodiment, the power supply unit comprises a first resistor, a first capacitor, a first diode, a second diode, a third diode, a fourth diode, a fifth diode and a second capacitor.

[0057] The first end of the first resistor is connected with the first end of the first capacitor, and the second end of the first resistor is connected with the second end of the first capacitor; the first end of the first capacitor is connected with the second end of the alternating current power supply, and the second end of the first capacitor is connected with the input end of the first diode.

[0058] The output end of the first diode, the output end of the third diode, the output end of the fifth diode and the first end of the second capacitor are all connected with the first input end of the micro control module.

[0059] The input end of the first diode is connected with the output end of the second diode, and the input end of the third diode is connected with the output end of the fourth diode.

[0060] The input end of the second diode, the input end of the fourth diode, the input end of the fifth diode and the second end of the second capacitor are all connected with the second input end of the micro control module.

[0061] In an optional embodiment, the control unit comprises a current detection subunit and a circuit control subunit.

[0062] The current detection subunit is configured to detect the current of the target device.

[0063] The current detection subunit comprises a second resistor, a sixth diode and a third resistor.

[0064] The output end of the sixth diode is connected with the first end of the third resistor, the input end of the sixth diode is connected with the first end of the second resistor, and the second end of the second resistor is connected with the second end of the third resistor.

[0065] The first end of the third resistor is connected with the second end of the alternating current power supply, and the second end of the third resistor is connected with the second end of the target device.

[0066] The circuit control subunit is configured to receive the control signal of the micro control module and control the power supply circuit of the target device.

[0067] The circuit control subunit comprises a fourth resistor, a relay, and a switching device; the relay comprises a coil and a contact group, wherein a first contact in the contact group is connected to the second end of the AC power supply, and a second contact in the contact group is connected to the first input end of the target device; a first input end of the coil in the relay is connected to a first end of the switching device, and a second input end of the coil is connected to a power supply;

[0068] A second end of the switching device is connected to a first end of the fourth resistor, and a third end of the switching device is connected to a ground wire.

[0069] A second end of the fourth resistor is connected to an output end of the micro-control module.

[0070] In an optional implementation, the energy-saving device further comprises a switch control module; the switch control module is configured to control the power supply circuit of the target device when detecting a triggering operation of a target object on the switch control module; and the switch control module is connected to the micro-control module.

[0071] In a third aspect, an embodiment of the present application provides a device control apparatus, which comprises:

[0072] a current determination module configured to acquire a current current value of a target device and determine a target current value of the target device;

[0073] a current comparison module configured to compare the current current value with the target current value;

[0074] a strategy determination module configured to determine a control strategy for a power supply circuit of the target device according to a comparison result;

[0075] an operation execution module configured to perform a corresponding control operation on the power supply circuit according to the control strategy.

[0076] In a fourth aspect, an embodiment of the present application provides an electronic device, which comprises a processor and a memory; the processor is configured to execute a device control program stored in the memory, so as to implement the device control method in any one of the first aspect.

[0077] In a fifth aspect, an embodiment of the present application provides a storage medium, which stores one or more programs; the one or more programs can be executed by one or more processors, so as to implement the device control method in any one of the first aspect.

[0078] The technical scheme provided by the embodiment of the present application comprises the following steps: obtaining a current current value of a target device, determining a target current value of the target device, comparing the current current value with the target current value, determining a control strategy of a power supply circuit of the target device according to a comparison result, and performing a corresponding control operation on the power supply circuit according to the control strategy. In this way, the target current value can be determined in real time by the current current value of the target device, and the adaptability and usability of the environment and the cut-off condition of the power supply circuit of the target device are improved. By comparing the current current value with the target current value, the control strategy that is adapted to the current current value of the target device can be determined, and the control accuracy of the power supply circuit of the target device is improved by performing the control operation on the power supply circuit of the target device according to the determined control strategy. In this way, the power supply circuit of the target device can be accurately controlled according to the control strategy whether the target device is in a standby state or not, the consumption of the power cost is reduced, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS

[0079] Figure 1 An architecture schematic diagram of an energy-saving device is shown for the embodiment of the present application.

[0080] Figure 2 A structure schematic diagram of a switch control module is shown for the embodiment of the present application.

[0081] Figure 3 A circuit structure schematic diagram of a power management module is shown for the embodiment of the present application.

[0082] Figure 4 A circuit structure schematic diagram of another power management module is shown for the embodiment of the present application.

[0083] Figure 5 An embodiment flowchart of a device control method is provided for the embodiment of the present application.

[0084] Figure 6 An embodiment flowchart of another device control method is provided for the embodiment of the present application.

[0085] Figure 7 An embodiment flowchart of still another device control method is provided for the embodiment of the present application.

[0086] Figure 8 An embodiment flowchart of still another device control method is provided for the embodiment of the present application.

[0087] Figure 9 An embodiment block diagram of a device control apparatus is provided for the embodiment of the present application.

[0088] Figure 10 A structure schematic diagram of an electronic device is provided for the embodiment of the present application. DETAILED DESCRIPTION

[0089] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0090] In order to facilitate the understanding of the embodiments of the present application, the architecture of the energy-saving device involved in the present application will be first illustrated as follows:

[0091] Referring to Figure 1 , the architecture of an energy-saving device shown in the embodiments of the present application is shown. As Figure 1 indicated, the energy-saving device 10 includes a power management module 11, a micro control module 12 and a switch control module 13. The micro control module 12 can be used to execute the device control method as described below. Figures 5-8

[0092] The target device 14 can be a hardware device providing services. When the device is hardware, it includes but is not limited to smart air conditioners, smart televisions, smart refrigerators, robotic vacuum cleaners and other smart devices.

[0093] The power management module 11 is connected to an alternating current power supply (for example, 220V / AC). Specifically, a first input end of the power management module 11 is connected to a first end of the alternating current power supply, and a second input end of the power management module 11 is connected to a second end of the alternating current power supply. A third output end of the power management module 11 of the power management module is connected to a first input end of the target device 14, and a fourth output end of the power management module 11 is connected to a second input end of the target device 14. Thus, a power supply circuit of the target device 14 is formed between the alternating current power supply, the power management module and the target device.

[0094] It can be known that the input end of the alternating current power supply includes an L end and an N end, wherein L represents a zero line and N represents a fire line. The first end and the second end of the alternating current power supply can be the L end or the N end, which is not limited in the embodiments of the present application.

[0095] The power management module 11 is also connected to the micro control module 12, for supplying power to the micro control module 12 and receiving the control signal sent by the micro control module 12. The micro control module can be a module providing control services to the power management module 11, which can be an MCU (Microcontroller Unit, micro control unit), also known as a single-chip microcomputer, which is not limited.

[0096] ​Specifically, the first output end of the power management module 11 is connected with the first input end of the micro control module 12, and the second output end of the power management module 11 is connected with the second input end of the micro control module 12, for supplying power to the micro control module 12. Wherein, assuming that the first output end of the power management module 11 is positive, and the second output end is negative. Then, correspondingly, the first input end of the micro control module 12 is positive, and the second input end is negative.

[0097] The receiving end of the power management module 11 is also connected with the output end of the micro control module 12, for receiving the control signal sent by the micro control module 12, and controlling the power supply circuit of the target device 14.

[0098] The micro control module 12 is also connected with the switch control module 13, for receiving the control signal sent by the switch control module 13 when detecting the trigger operation of the target object to the switch control module, and controlling the power supply circuit of the target device accordingly.

[0099] Wherein, the switch control module 13 provides a convenient way for the target object to re-conduct the power supply circuit of the target device 14 which is cut off. The switch control module 13 can be a capacitive button, for example Figure 2 As shown in the structure diagram of a switch control module shown in the embodiment of the present application. In actual operation, the target object can press the capacitive button (for example Figure 2 Touch switch) to re-conduct the power supply circuit of the target device which is cut off.

[0100] Specifically, the target object can perform trigger operation (such as click, double click, press, etc.) on the switch control module 13, and generate control signal when detecting the trigger operation of the target object, to re-conduct the power supply circuit of the target device which is cut off according to the control signal. In this way, for the target object, only through simple operation mode can conveniently realize the conduction of the power supply circuit of the target device. In addition, the number and type of the switch control module are not limited in the embodiment of the present application.

[0101] Optionally, the third input end of the micro control module 12 is connected with the first output end of the switch control module 13, and the fourth input end of the micro control module 12 is connected with the second output end of the switch control module 13, to form a loop. The number of connection ports between the micro control module and the switch control module is not limited in the embodiment of the present application.

[0102] It should be noted that the connection mode and the number of connection ports between the above modules are only schematic, and in practice, the connection mode and the number of connection ports between the modules can be adjusted according to actual needs, and the embodiment of the present application does not limit this.

[0103] Referring to Figure 3 , a circuit structure schematic diagram of a power management module is shown in the embodiment of the present application. As Figure 3 shown, the power management module 11 includes a power supply unit 110 and a control unit 120.

[0104] Specifically, the power supply unit 110 is connected with an AC power supply. Specifically, a first input end of the power supply unit 110 is connected with a first end of the AC power supply, and a second input end of the power supply unit 110 is connected with a second end of the AC power supply.

[0105] The power supply unit 110 is also connected with the micro control module 12, for supplying power to the micro control module 12. Specifically, a first output end of the power supply unit 110 is connected with a first input end of the micro control module 12, and a second output end of the power supply unit 110 is connected with a second input end of the micro control module 12.

[0106] The control unit 120 is connected with the AC power supply. Specifically, a first input end of the control unit 120 is connected with a first end of the AC power supply, and a second input end of the control unit 120 is connected with a second end of the AC power supply.

[0107] The control unit 120 is also connected with the target device 14, and the AC power supply supplies power to the target device 14 through the control unit 120. Specifically, a first output end of the control unit 120 is connected with a first input end of the target device 14, and a second output end of the control unit 120 is connected with a second input end of the target device 14.

[0108] The control unit 120 is also connected with the micro control module 12, for receiving the control signal of the micro control module 12, and turning on or turning off the power supply circuit of the target device. Specifically, a receiving end of the control unit 120 is connected with an output end of the micro control module 12.

[0109] In addition, a third input end of the control unit 120 is connected with a power supply, and a third output end of the control unit 120 is connected with a ground wire. In this way, the normal operation of the target device connected with the control unit can be ensured, and safety can be ensured.

[0110] Referring to Figure 4 , another circuit structure schematic diagram of a power management module is shown in the embodiment of the present application. As Figure 4 shown, the connection relationship between each electrical element in the circuit of the power supply unit and the control unit in the power management module is specifically shown.

[0111] In practice, taking a low-power MCU as an example, in order to make the low-power MCU work normally in the circuit, the alternating current power supply in the circuit can be converted into a direct current power supply for the low-power MCU to work normally. Specifically, in the embodiment of the application, the alternating current power supply input from the input end is converted into a direct current power supply by the capacitor voltage reduction circuit (i.e. the power supply unit) and output to the low-power MCU from the output end.

[0112] Specifically, the power supply unit 110 includes a first resistor R1, a first capacitor C1, a first diode VD1, a second diode VD2, a third diode VD3, a fourth diode VD4, a fifth diode VD5, and a second capacitor C2.

[0113] In the embodiment of the application, the first resistor R1 and the first capacitor C1 form a resistor-capacitor circuit for limiting the size of the current in the circuit. The first diode VD1, the second diode VD2, the third diode VD3, and the fourth diode VD4 are bridge rectifier diodes, which form a full-bridge rectifier circuit for converting alternating current power supply into direct current power supply. The fifth diode VD5 and the second capacitor C2 are used to stabilize the voltage provided by the full-bridge rectifier circuit and ensure that the components in the circuit will not be burned out due to excessive voltage. The first capacitor C1 can be a voltage reduction capacitor for reducing the voltage of the alternating current power supply, and the first resistor R1 can be a bleeder resistor or other types of ordinary resistors, which are not limited. After the low-voltage alternating current is obtained by the first capacitor C1, the low-voltage alternating current passes through the full-bridge rectifier circuit composed of VD1 to VD4 bridge rectifier diodes to generate low-voltage direct current. At this time, the direct current ripple, voltage reference, and current size cannot meet the working conditions of most MCU chips. Therefore, the low-voltage direct current can pass through the fifth diode VD5 and the second capacitor C2 to achieve voltage filtering and stable output voltage. In this process, the fifth diode VD5 can be a voltage stabilizing diode VDS. Figure 4 The second capacitor C2 can be a filter capacitor.

[0114] The connection relationship between the above-mentioned components in the circuit of the power supply unit 110 is that the first end of the first resistor R1 is connected to the first end of the first capacitor C1, and the second end of the first resistor R1 is connected to the second end of the first capacitor C1; the first end of the first capacitor C1 is connected to the second end of the alternating current power supply, and the second end of the first capacitor C1 is connected to the input end of the first diode.

[0115] The output end of the first diode VD1, the output end of the third diode VD3, the output end of the fifth diode VD5, and the first end of the second capacitor C2 are all connected to the first input end of the micro control module 12.

[0116] The input end of the first diode VD1 is connected with the output end of the second diode VD2, and the input end of the third diode VD3 is connected with the output end of the fourth diode VD4.

[0117] The input end of the second diode VD2, the input end of the fourth diode VD4, the input end of the fifth diode VD5 and the second end of the second capacitor C2 are connected with the second input end of the micro control module 12.

[0118] The control unit 120 includes a current detection subunit 1201 and a circuit control subunit 1202. The current detection subunit 1201 is configured to detect the current value of the target device. The current detection subunit 1201 includes a second resistor R2, a sixth diode VD6 and a third resistor R3, which are configured to detect the current value in the circuit, i.e. the current value of the target device 14.

[0119] The sixth diode VD6 is configured to limit the current direction, the second resistor R2 is a current detection resistor configured to detect the current value flowing through the second resistor R2, and the third resistor R3 is configured to shunt the second resistor R2 to prevent the second resistor R2 from being burned out by excessive current.

[0120] The connection relationship between the above-mentioned components in the circuit of the current detection subunit 1201 is that the output end of the sixth diode VD6 is connected with the first end of the third resistor R3, the input end of the sixth diode VD6 is connected with the first end of the second resistor R2, and the second end of the second resistor R2 is connected with the second end of the third resistor R3. The first end of the third resistor R3 is connected with the second end of the AC power supply, and the second end of the third resistor R3 is connected with the second end of the target device 14.

[0121] The circuit control subunit is configured to receive the control signal of the micro control module and control the power supply circuit of the target device. Specifically, the circuit control subunit includes a relay J, a fourth resistor R4 and a switching device Q. As shown in FIG. 2, the fourth resistor R4 and the switching device Q form a driving circuit of the relay J. The driving circuit controls the opening or closing of the relay by changing the I / O (Input / Output) and the switching device (i.e. opening or closing), thereby indirectly controlling the switching on or off of the power supply circuit of the target device 14. Figure 4

[0122] The relay J includes a coil and a contact group. The first contact in the contact group is connected with the second end of the AC power supply, and the second contact in the contact group is connected with the first input end of the target device 14. The first input end of the coil in the relay J is connected with the first end of the switching device Q, and the second input end of the coil is connected with a power supply (e.g. Power shown in the figure).

[0123] ​The second end of the switch device Q is connected with the first end of the fourth resistor R4, and the third end of the switch device Q is connected with the ground wire. Figure 4 As shown in the figure, the second end of the fourth resistor R4 is connected with the I / O end, wherein the I / O end is the third end of the micro control module 12.

[0124] As can be seen from the above description, in order to ensure the normal operation of the target device connected with the control unit and ensure safety, the switch device Q needs to be connected with the ground wire in addition to being used as a circuit switch to control the on-off of the power supply circuit. In this way, the switch device can be a transistor, such as an NPN transistor or a PNP transistor, which can convert a weak electrical signal into a signal of a certain intensity and amplify the current. Taking the switch device as a transistor as an example, the first end of the switch device Q can be the base, the third end of the switch device Q can be the emitter, and the second end of the switch device Q can be the collector.

[0125] It should also be understood that in the embodiment of the present application, the relay can be essentially a kind of switch device, and its principle is to control the switching of the contact through charging and discharging of the coil, which is a typical small signal current control device for large current load. When driving the relay to work, a direct current voltage needs to be applied to the coil of the relay. Since the coil resistance is generally not large, a relatively large driving current is required. Therefore, the relay cannot be directly driven by the I / O of the single-chip microcomputer, and therefore an integrated IC or a transistor can be used to drive the relay to work. We need to control the on-off of the transistor through the MCU, and then control the on-off of the relay coil through the on-off of the transistor.

[0126] The device control method provided by the present application will be further explained and described below in conjunction with specific embodiments and the accompanying drawings, and the embodiments do not constitute a limitation on the embodiments of the present application.

[0127] Referring to Figure 5 , an embodiment flowchart of a device control method provided by the embodiment of the present application is provided. As an embodiment, the flowchart can be applied to the micro control module 12 in the energy saving device 10 as shown in the figure. Figure 1 As shown in the figure, the flowchart can include the following steps: Figure 5

[0128] Step 501, obtaining the current current value of the target device and determining the target current value of the target device.

[0129] The current current value or the target current value can be 20A (ampere), 30A, etc., and the embodiment of the present application does not limit this.

[0130] ​In practice, there is a standby state (i.e. non-use state) of the power consumption equipment in daily life, still consumes part of the current, which leads to the increase of the cost of electricity in life. Therefore, in the embodiment of the present application, the current value (hereinafter referred to as the current current value) of the target device is detected, which is compared with the current threshold (hereinafter referred to as the target current value) to determine whether the target device is in standby state, and further determine whether to cut off the power supply circuit of the target device.

[0131] From the above Figure 4 It can be seen from the description that, in the embodiment of the present application, the current detection subunit of the control unit in the power management module acquires the current current value of the target device connected to the circuit.

[0132] In an embodiment, the resistance and voltage of the second resistor can be determined, and the current value (hereinafter referred to as the first current value) flowing through the second resistor is determined by using Ohm's law; the current value (hereinafter referred to as the second current value) of the third resistor is determined by using a preset current inference algorithm, and the sum of the first current value of the second resistor and the second current value of the third resistor is the current current value of the target device.

[0133] Optionally, a voltage sampling circuit or a voltage sampling device can be provided for the second resistor to determine the voltage of the second resistor. It should be noted that the embodiment of the present application does not make specific restrictions on the determination method and calculation method of the first current value of the second resistor and the second current value of the third resistor.

[0134] In the embodiment of the present application, after obtaining the current current value of the target device, the target current value of the target device can be determined according to the current current value, so that the target current value of the target device can be updated in real time in different stages or situations, and the adaptability of the cut-off condition of the power supply circuit of the target device is improved.

[0135] As for how to determine the target current value of the target device, please refer to the related description of the following Figure 6 Or Figure 7 The detailed description is not given here.

[0136] Step 502, compare the current current value with the target current value.

[0137] Step 503, according to the comparison result, determine the control strategy of the power supply circuit of the target device.

[0138] The following describes steps 502 and 503:

[0139] As can be seen from the above description, in order to accurately determine whether the target device is in standby mode and whether the power supply circuit of the target device needs to be cut off, after determining the current current value and the target current value of the target device in the embodiments of the present invention, the current current value and the target current value of the target device can be compared, so as to determine the control strategy for the power supply circuit of the target device based on the comparison result.

[0140] The aforementioned control strategy is used to compare the current current value of the target device with the target current value and to plan in advance whether the power supply circuit of the target device is turned on or off. It can keep the power supply circuit of the target device on or off without making specific restrictions.

[0141] For details on determining the control strategy for the power supply circuit of the target device based on the comparison results, please refer to the following: Figure 6 or Figure 7 The process described in the diagram will not be detailed here.

[0142] Step 504: Perform corresponding control operations on the power supply circuit according to the control strategy.

[0143] Referring to the descriptions of steps 502 and 503 above, after determining the control strategy for the power supply circuit of the target device based on the comparison result between the current value and the target current value, corresponding control operations can be performed on the power supply circuit according to the control strategy. Here, the control operation is used to control the power supply circuit of the target device, which can be to keep the power supply circuit of the target device on or to cut off the power supply circuit of the target device, without specific limitations.

[0144] This concludes the process. Figure 5 The process described is as follows.

[0145] pass Figure 5 As shown in the flowchart, in the technical solution of this invention, the current current value of the target device is obtained, and the target current value of the target device is determined. The current current value is compared with the target current value, and based on the comparison result, a control strategy for the power supply circuit of the target device is determined. Then, corresponding control operations are performed on the power supply circuit according to the control strategy. In this way, the target current value can be determined in real time using the current current value of the target device, improving the adaptability and availability of the power supply circuit disconnection conditions of the target device. Furthermore, by comparing the current current value with the target current value, a control strategy adapted to the current current value of the target device can be determined. Performing control operations on the power supply circuit of the target device according to the determined control strategy improves the accuracy of the control of the power supply circuit. Thus, regardless of whether the target device is in standby mode, the power supply circuit of the target device can be accurately controlled according to the control strategy, reducing electricity costs and improving the user experience.

[0146] Referring to Figure 6 , an embodiment flowchart of another device control method provided by the present application is shown. The flowchart can include the following steps: Figure 6 In Figure 5 , a detailed description is given of how to control the power supply circuit of the target device according to the current value of the target device. As shown in Figure 6 , the flowchart can include the following steps:

[0147] Step 601: Collect the current value of the target device according to a preset current sampling period.

[0148] The current sampling period represents the collection period of the current value of the target device in the power supply circuit, and can be 3 seconds, 1 minute, etc. The current sampling period can be set by the target object, the designer or the manufacturer, and the present application does not limit this. In the present application, the current value of the target device can be collected according to the preset current sampling period.

[0149] In addition, to improve the collection efficiency of the current value of the target device and facilitate subsequent calculation, the current sampling accuracy, sampling circuit reference voltage, etc. can also be set in advance, and the present application does not limit this.

[0150] Step 602: Determine the target number of current values stored in the current queue.

[0151] Step 603: Compare the target number with a preset number threshold. If the target number is equal to the number threshold, execute step 604; if the target number is less than the number threshold, execute step 606 and step 607.

[0152] Step 604: Determine the sampling time of each current value in the current queue.

[0153] Step 605: Remove the current value with the earliest sampling time from the current queue, and execute step 606 and step 609.

[0154] The following describes steps 602 to 605:

[0155] In the present application, after the current value of the target device is obtained, the current value can be stored in a preset current queue for subsequent viewing or use. The current queue is used to store the collected current value of the target device and can include at least one current value. In the case where there are multiple current values of the target device in the current queue, the current values stored in the current queue can be a sequence of current values sorted according to the sampling time, and the present application does not limit this.

[0156] In an embodiment, in order to improve the target current value as the cut-off criterion of the power supply circuit of the target device, a certain number (hereinafter referred to as a number threshold) of the sampled current values of the target device can be selected to determine the target current value according to the sampled current values. Thus, the current storage space of the current queue can be fixed, i.e., the current queue can fixedly store the number threshold of current values.

[0157] In the embodiment of the present application, the target number of the current values stored in the current queue can be determined first, and the target number is compared with the preset number threshold to determine whether the target number of the current values stored in the current queue meets the number requirement for determining the target current value and whether the current queue can still store the current current value of the target device.

[0158] Specifically, in the case where the target number of the current values is equal to the preset number threshold, it is indicated that the current storage space of the current queue is full at this time, and in order to successfully store the current current value of the target device into the current queue, one current value stored in the current queue can be removed, and thus the step of storing the current current value into the preset current queue, i.e., step 606, can be performed.

[0159] Optionally, since the sampling time of the current value is closer to the current time, the control strategy of the power supply circuit of the target device is more accurate. Thus, the sampling time of each current value in the current queue can be determined, and the current value with the earliest sampling time can be removed from the current queue, and then step 606 can be continuously performed.

[0160] For example, it is assumed that the number threshold is 5, the current current value of the target device is I, and the corresponding sampling time is 08:51, and it is assumed that the association between the current values and the sampling times of the current values in the current queue is shown in Table 1 below:

[0161] Table 1

[0162] Current queue Current value Sampling instant First current value I1 08:01 Second current value I2 08:11 Third current value I3 08:21 Fourth current value I4 08:31 Fifth current value I5 08:41

[0163] As can be seen from Table 1 above, the target number of the current values stored in the current queue is 5, and according to the above description, the target number is compared with the preset number threshold to determine that the target number is equal to the preset number threshold. At this time, according to Table 1 above, the sampling time of each current value in the current queue can be determined, and thus it can be determined that the current value with the earliest sampling time in the current queue is the first current value, and the corresponding sampling time is 08:01. The first current value can be removed from the current queue, and then step 606 can be continuously performed.

[0164] Thus, it can be determined that the current queue always stores the number threshold of current values, and the sampling time of the number threshold of current values is within the current period, and the reliability of the target number can be ensured.

[0165] In the case that the target number of the current values stored in the current queue is less than the preset number threshold, it indicates that the current storage space of the current queue is not full, the target number of the current values stored in the current queue does not meet the number requirement for determining the target current value, and the current queue can still store the current current value of the target device. Thus, the current current value of the target device can be stored in the preset current queue, i.e., step 606 is performed.

[0166] Step 606: storing the current current value in the preset current queue.

[0167] Step 607: determining the current number of the current values stored in the current queue.

[0168] Step 608: comparing the current number with the number threshold, if the current number is less than the number threshold, step 601 is performed; if the current number is equal to the number threshold, step 609 is performed.

[0169] Step 609: determining the target current value of the target device according to the current values in the current queue.

[0170] The steps 606 to 609 are described as follows:

[0171] According to the above description, in the embodiment of the present application, the target number of the current values stored in the current queue is compared with the preset number threshold, to determine whether the target number meets the number requirement for determining the target current value, and whether the current queue can still store the current current value of the target device.

[0172] In the embodiment of the present application, in the case that the target number of the current values is less than the preset number threshold, it indicates that the current storage space of the current queue is not full, thus, the current current value can be stored in the preset current queue, i.e., step 606 is performed.

[0173] In an embodiment, since there is still the case that the number of the current values in the current queue does not meet the number requirement for determining the target current value, after the current current value is stored in the preset current queue, the current number of the current values stored in the current queue can be determined again. The current number of the current values is compared with the preset number threshold, to determine whether the number of the current values stored in the current queue meets the number requirement for determining the target current value according to the comparison result.

[0174] Specifically, in a case that the current number of the current values stored in the current queue is less than the preset number threshold, it indicates that the current storage space of the current queue is not full, and does not meet the number requirement of determining the target current value. Thus, the step 601 can be continued to be executed in the next sampling period, that is, the current current value of the target device is collected according to the preset current sampling period, and the target number of the current values stored in the current queue is compared with the preset number threshold again, which will not be repeated here.

[0175] In a case that the current number of the current values stored in the current queue is equal to the preset number threshold, it indicates that the current storage space of the current queue is not full, and meets the number requirement of determining the target current value. Thus, the target current value of the target device can be determined according to the current stored current values in the current queue.

[0176] Optionally, the implementation manner of determining the target current value of the target device according to the current values in the current queue is specifically that an average value of the current values in the current queue is determined, and the target current value of the target device is determined as a product of the average value and a preset proportion. The preset proportion can be set by the object or the designer, and is not limited.

[0177] For example, taking the current values stored in the current queue shown in the above table 1 as an example, assuming that the fifth current value is the current current value of the target device, and the preset proportion is 5%, then according to the above description, the average value of the current values in the current queue is The target current value can be determined as the product of the average value and the preset proportion, that is,

[0178] The step 610, the current current value is compared with the target current value, if the current current value is greater than or equal to the target current value, the step 611 is executed; if the current current value is less than the target current value, the step 613 is executed.

[0179] The step 611, the control strategy of the power supply circuit of the target device is determined as maintaining power supply.

[0180] The step 612, the control operation of maintaining power supply is executed on the power supply circuit of the target device.

[0181] The step 613, the control strategy of the power supply circuit of the target device is determined as cutting off power supply.

[0182] The step 614, the control operation of cutting off power supply is executed on the power supply circuit of the target device, and the power supply circuit of the target device is cut off by the switching device.

[0183] The steps 610 to 614 are described uniformly as follows:

[0184] In the embodiment of the present application, after the target current value of the target device is determined according to the current value of the quantity threshold in the current queue, the current current value of the target device is compared with the target current value to determine the control strategy of the power supply circuit of the target device according to the comparison result.

[0185] The control strategy is used for planning the control of the power supply circuit of the target device, which can be maintaining the power supply or cutting off the power supply. Correspondingly, the control operation is the operation corresponding to the control strategy, which is used for controlling the power supply circuit of the target device, and can be maintaining (or turning on) the power supply or cutting off the power supply, without limitation.

[0186] In an embodiment, when it is determined that the current current value of the target device is greater than or equal to the target current value, it indicates that the target device can not be in the standby state, i.e., in use, and thus it can be determined that the control strategy of the power supply circuit of the target device is to maintain the power supply. Correspondingly, the control operation of maintaining the power supply is performed on the power supply circuit of the target device. When it is determined that the current current value of the target device is less than the target current value, it indicates that the target device can be in the standby state, i.e., not in use, and thus it can be determined that the control strategy of the power supply circuit of the target device is to cut off the power supply. Correspondingly, the control operation of cutting off the power supply is performed on the power supply circuit of the target device. In this way, the current current value of the target device can be detected in real time, and when the current current value is less than the target current value, the power supply circuit of the target device is automatically cut off to save the power consumption cost of the target device.

[0187] Optionally, the control operation of cutting off the power supply of the power supply circuit of the target device can be performed by a switching device to cut off the power supply circuit of the target device. The switching device is a component for controlling the switch of the power supply circuit of the target device, which can be a transistor Q or a contact group of a relay K, without specific limitation. Figure 3 The switching device Q or the contact group of the relay K is shown, without specific limitation.

[0188] In step 615, when it is detected that the switching device is closed, the power supply circuit of the target device is turned on.

[0189] As can be seen from the above description, in the embodiment of the present application, whether the control strategy of the power supply circuit of the target device is determined by detecting the current current value of the target device. In this way, the normal work of the target device can be guaranteed, and when the target device is in the standby state, the power supply circuit thereof can be cut off to save the power consumption cost.

[0190] In an embodiment, after the control operation of cutting off the power supply circuit of the target device is performed, if the target object wants to use the target device, the cut-off power supply circuit of the target device can be turned on again by closing the switching device. The switching device can be a transistor Q or a contact group of a relay K, without specific limitation. Figure 1The switch control module shown can be Figure 2 The capacitive button shown.

[0191] Specifically, the target object can turn on the power supply circuit of the target device by pressing the Figure 2 capacitive button shown, and the micro control module 12 turns on the power supply circuit of the target device when detecting that the switch device is closed.

[0192] At this point, the process shown is completed. Figure 6 The related description of the flow shown.

[0193] Through the above processing mode, the current current value of the target device can be collected according to the preset current sampling period, and the current value of the target device is continuously detected, so that when the current current value of the target device reaches the circuit cutting condition, the power supply circuit of the target device can be cut off in time, the power consumption cost is saved, and the experience is improved.

[0194] Referring to Figure 7 , an embodiment flowchart of another device control method provided by the embodiment of the present application is provided. As shown in Figure 7 , the flow can include the following steps:

[0195] Step 701, collecting the current current value of the target device according to a preset current sampling period.

[0196] Step 702, storing the current current value to a preset current queue.

[0197] As for the detailed description of steps 701 and 702, please refer to the related description of steps 601 and 606 in the above Figure 6 , which will not be repeated here.

[0198] Step 703, determining the target number of current values stored in the current queue.

[0199] Step 704, comparing the target number with a preset number threshold, if the target number is equal to the number threshold, executing step 705; if the target number is less than the number threshold, executing step 701; if the target number is greater than the number threshold, executing step 706.

[0200] Step 705, determining the target current value of the target device according to the current values in the current queue.

[0201] Step 706, determining the sampling time of each current value in the current queue.

[0202] Step 707, sorting the current values stored in the current queue according to the sampling time, selecting the top N current values to form a current set, N being a positive integer.

[0203] Step 708: determining the target current value of the target device according to the current values in the current set.

[0204] The steps 703 to 708 are described as follows:

[0205] As described above Figure 6 , in the embodiment of the present application, after the current current value of the target device is acquired, the current current value can be stored in the preset current queue for subsequent viewing or use. In the case where there are current values of multiple target devices in the current queue, the current values stored in the current queue can be a current value sequence sorted according to the sampling time, which is not specifically limited.

[0206] In an embodiment, in order to improve the target current value as a cut-off judgment standard of the power supply circuit of the target device, a certain number (hereinafter referred to as a number threshold) of sampling current values of the target device can be selected, and the target current value is determined according to the sampling current values. In this way, the embodiment of the present application can select the current values of the number threshold from the current values stored in the current queue. It should be noted that the current storage space of the current queue can be unfixed or fixed (the number of the current storage space is greater than the number threshold).

[0207] In the embodiment of the present application, the target number of the current values stored in the current queue can be determined first, and the target number is compared with the preset number threshold to determine whether the target number of the current values stored in the current queue meets the number requirement for determining the target current value, and whether the current queue can still store the current current value of the target device.

[0208] Specifically, in the case where the target number of the current values is equal to the preset number threshold, it is indicated that the target number of the current values stored in the current queue meets the number requirement for determining the target current value, and thus the step 705 can be executed, that is, the target current value of the target device is determined according to the current values in the current queue.

[0209] In the case where the target number of the current values is less than the preset number threshold, it is indicated that the target number of the current values stored in the current queue does not meet the number requirement for determining the target current value, and thus the number requirement is not met. The step 701 can be continued to be executed in the next sampling period, that is, the current current value of the target device is collected according to the preset current sampling period, and the target number of the current values stored in the current queue is compared with the preset number threshold again, which is not described here.

[0210] Then, in the case where the target number of the current values is equal to the preset number threshold, the target current value of the target device can be determined according to the current values in the current queue.

[0211] In a case that the target number of current values is greater than the preset number threshold, it indicates that the target number of current values stored in the current queue meets the requirement of determining the target current value, and thus the current values of the number threshold are selected from the current values stored in the current queue.

[0212] Optionally, to improve the effectiveness and accuracy of the target current value of the target device, the current values of the number threshold can be selected from the current values stored in the current queue according to the sampling time of each current value.

[0213] Specifically, the sampling time of each current value in the current queue can be determined first. According to the sampling time, the current values stored in the current queue are sorted, and the top N current values are selected to form a current set, where N is a positive integer. Then, the target current value of the target device can be determined according to the current values in the current set.

[0214] It can be understood that when the current values stored in the current queue are sorted in descending order according to the sampling time from late to early, the top N current values can be selected to form the current set. When the current values stored in the current queue are sorted in ascending order according to the sampling time from late to early, the last N current values can be selected to form the current set, which is not specifically limited.

[0215] Through the above processing mode, in a case that the current storage space of the current queue is not fixed, or the number of current storage spaces is greater than the preset number threshold, and the target number of current values is greater than the preset number threshold, the appropriate current values can be selected from the current values stored in the current queue to form the current set according to the preset selection rule.

[0216] Step 709, compare the current current value with the target current value, if the current current value is greater than or equal to the target current value, execute step 710; if the current current value is less than the target current value, execute step 712.

[0217] Step 710, determine that the control strategy for the power supply circuit of the target device is to maintain power supply.

[0218] Step 711, execute the control operation of maintaining power supply for the power supply circuit of the target device.

[0219] Step 712, determine that the control strategy for the power supply circuit of the target device is to cut off the power supply.

[0220] Step 713, execute the control operation of cutting off the power supply for the power supply circuit of the target device, wherein the power supply circuit of the target device is cut off by the switching device.

[0221] Step 714, when the switching device is detected to be closed, turn on the power supply circuit of the target device.

[0222] As for the detailed description of step 709 and step 714, please refer to the above description of step 610 and step 615, which will not be repeated here. Figure 6

[0223] Through the above processing mode, the current current value of the target device can be collected according to the preset current sampling period, and the current value of the target device is detected without interruption, so that when the current current value of the target device reaches the condition of cutting off the circuit, the power supply circuit of the target device can be cut off in time, the power consumption cost is saved, and the experience is improved.

[0224] Referring to Figure 8 , another embodiment flowchart of a device control method provided by the embodiment of the application is provided. As shown in Figure 8 , the flowchart can include the following steps:

[0225] In the embodiment of the application, when the chip (i.e. low-power MCU) starts running, the chip is initialized to switch the chip to a low-power mode. Then, the reference voltage of ADC (Attack Damage Carry / Core, ordinary attack continuous output core), current sampling time, sampling accuracy and other parameters can be set by the designer or manufacturer, and the ADC is initialized. The ADC is used to collect the current value of the target device, which can be an internal chip of the low-power MCU or an external chip of the low-power MCU, and the embodiment of the application does not limit this.

[0226] Then, the current is checked. That is, the current current value of the target device is detected, and the current current value is compared with the target current value to determine the current size. If the current is greater than the current threshold (i.e. the target current value), the current is continuously detected. If the current is less than the current threshold, the capacitive button (i.e. the switch control module in the energy-saving device) is checked to determine whether the capacitive button is pressed. If the capacitive button is pressed, the power supply circuit of the target device is turned on, and the current value of the target device is detected. If the capacitive button is not pressed, the capacitive button is continuously checked to turn on the power supply circuit of the target device in time when the capacitive button is pressed by the target object, and the current value of the target device is detected.

[0227] Corresponding to the above-mentioned embodiment of the device control method, the application also provides an embodiment block diagram of the device.

[0228] Referring to Figure 9 , an embodiment block diagram of a device control device provided by the embodiment of the application is provided. As shown in Figure 9 , the device includes:

[0229] The current determination module 901 is configured to obtain the current current value of the target device and determine the target current value of the target device.

[0230] ​a current comparison module 902, configured to compare the current current value with the target current value;

[0231] a strategy determination module 903, configured to determine a control strategy of a power supply circuit of the target device according to the comparison result;

[0232] an operation execution module 904, configured to perform a corresponding control operation on the power supply circuit according to the control strategy.

[0233] In an optional implementation, the current determination module 901 comprises (not shown in the figure):

[0234] a circuit collection unit, configured to collect a current current value of a target device according to a preset current sampling period;

[0235] a current storage unit, configured to store the current current value into a preset current queue;

[0236] a current determination unit, configured to determine a target current value of the target device according to current values in the current queue.

[0237] In an optional implementation, the apparatus further comprises (not shown in the figure):

[0238] a first quantity determination module, configured to determine a target quantity of current values stored in the current queue before the current current value is stored into the preset current queue;

[0239] a first quantity comparison module, configured to compare the target quantity with a preset quantity threshold;

[0240] a first time point determination module, configured to determine a sampling time point of each current value in the current queue in a case where the target quantity is equal to the quantity threshold;

[0241] a current elimination module, configured to eliminate a current value with an earliest sampling time point from the current queue, and perform the step of storing the current current value into the preset current queue.

[0242] In an optional implementation, the apparatus further comprises (not shown in the figure):

[0243] a current storage module, configured to store the current current value into the preset current queue in a case where the target quantity is less than the quantity threshold;

[0244] a second quantity determination module, configured to determine a current quantity of current values stored in the current queue;

[0245] a second quantity comparison module, configured to compare the current quantity with the quantity threshold.

[0246] a first execution module configured to execute the step of collecting the current current value of the target device according to the preset current sampling period, if the current quantity is less than the quantity threshold value;

[0247] a module configured to execute the step of determining the target current value of the target device according to the current values in the current queue, if the current quantity is equal to the quantity threshold value.

[0248] In an optional embodiment, the device further comprises (not shown in the figure):

[0249] a third quantity determination module configured to determine a target quantity of the stored current values in the current queue after the current current value is stored in the preset current queue;

[0250] a third quantity comparison module configured to compare the target quantity with a preset quantity threshold value;

[0251] a second execution module configured to execute the step of determining the target current value of the target device according to the current values in the current queue, if the target quantity is equal to the quantity threshold value;

[0252] a third execution module configured to execute the step of collecting the current current value of the target device according to the preset current sampling period, if the target quantity is less than the quantity threshold value.

[0253] In an optional embodiment, the device further comprises (not shown in the figure):

[0254] a second time point determination module configured to determine a sampling time point of each current value in the current queue, if the target quantity is greater than the quantity threshold value;

[0255] a sorting module configured to sort the stored current values in the current queue according to the sampling time points, select the top N current values to form a current set, and N is a positive integer;

[0256] The current determination unit is specifically configured to:

[0257] determine the target current value of the target device according to the current values in the current set.

[0258] In an optional embodiment, the current determination unit is specifically configured to:

[0259] determine an average value of the current values in the current queue, and determine the product of the average value and a preset proportion as the target current value of the target device.

[0260] In an optional embodiment, the policy determining module 903 is specifically configured to:

[0261] If the current current value is greater than or equal to the target current value, it is determined that the control policy for the power supply circuit of the target device is to maintain power supply.

[0262] If the current current value is less than the target current value, it is determined that the control policy for the power supply circuit of the target device is to cut off power supply.

[0263] In an optional embodiment, the operation executing module 904 is specifically configured to:

[0264] In the case where the control policy is to maintain power supply, a control operation of maintaining power supply is performed on the power supply circuit of the target device.

[0265] In the case where the control policy is to cut off power supply, a control operation of cutting off power supply is performed on the power supply circuit of the target device, and the power supply circuit of the target device is cut off by the switching device.

[0266] In an optional embodiment, the apparatus further comprises (not shown in the figure):

[0267] The conducting module is configured to, after the control operation of cutting off power supply is performed on the power supply circuit of the target device, conduct the power supply circuit of the target device when the switching device is detected to be closed.

[0268] Figure 10 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 1. Figure 10 The electronic device 1000 shown in the figure comprises at least one processor 1001, a memory 1002, at least one network interface 1004 and a user interface 1003. The various components in the electronic device 1000 are coupled together through a bus system 1005. It can be understood that the bus system 1005 is used to realize the connection and communication between the components. In addition to a data bus, the bus system 1005 also comprises a power supply bus, a control bus and a status signal bus. However, for the purpose of clear illustration, all the buses are marked as the bus system 1005 in the figure. Figure 10

[0269] The user interface 1003 can comprise a display, a keyboard or a clicking device (for example, a mouse, a trackball), a touchpad or a touch screen, etc.

[0270] ​It is to be appreciated that the memory 1002 in the embodiments of the present application can be a volatile memory or a nonvolatile memory, or can include both volatile and nonvolatile memory. Among them, the nonvolatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM) used as an external cache. By way of example, and not limitation, many forms of RAM can be used, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 1002 described herein is intended to include, without being limited to, these and any other suitable types of memory.

[0271] In some embodiments, the memory 1002 stores the following elements, executable units or data structures, or a subset of them, or an extended set of them: an operating system 10021 and an application program 10022.

[0272] Among them, the operating system 10021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 10022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The program for implementing the method embodiments of the present application can be included in the application program 10022.

[0273] In the embodiments of the present application, by calling the programs or instructions stored in the memory 1002, specifically, the programs or instructions stored in the application program 10022, the processor 1001 is used to execute the method steps provided by each method embodiment, for example, including:

[0274] obtaining a current current value of a target device, and determining a target current value of the target device;

[0275] comparing the current current value with the target current value;

[0276] determining a control strategy of a power supply circuit of the target device according to a comparison result;

[0277] performing a corresponding control operation on the power supply circuit according to the control strategy.

[0278] The method disclosed in the embodiments of the present application can be applied to the processor 1001 or implemented by the processor 1001. The processor 1001 can be an integrated circuit chip having a signal processing capability. In the implementation process, the steps of the above method can be completed by hardware integrated logic circuits or software form instructions in the processor 1001. The processor 1001 can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software units in the decoding processor for execution. The software unit can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory, an electrically erasable programmable memory, a register or other mature storage medium in the art. The storage medium is located in the memory 1002, and the processor 1001 reads the information in the memory 1002, and combines the hardware to complete the steps of the above method.

[0279] It can be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing units can be implemented within one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSP Devices), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.

[0280] For software implementation, the techniques described herein can be implemented with a processing unit that executes program code that includes functions described herein. The program code can be stored in a memory and executed by a processor. The memory can be implemented within the processor or external to the processor.

[0281] The electronic device provided by the embodiments can be an electronic device as shown in Figure 10 The electronic device provided by the embodiments can be an electronic device as shown in Figures 5-8 The electronic device provided by the embodiments can be an electronic device as shown in Figures 5-8 The electronic device provided by the embodiments can be an electronic device as shown in Figures 5-8 The electronic device provided by the embodiments can be an electronic device as shown in

[0282] The embodiments of the present application further provide a storage medium (computer readable storage medium). The storage medium stores one or more programs. The storage medium can include a volatile memory, such as a random access memory, and can also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk, or a solid state disk. The storage medium can also include a combination of the above-mentioned memories.

[0283] The one or more programs stored in the storage medium can be executed by the one or more processors to implement the device control method executed at the electronic device side.

[0284] The processor is configured to execute the device control program stored in the memory to implement the steps of the device control method executed at the electronic device side.

[0285] The processor is configured to execute the device control program stored in the memory to implement the steps of the device control method executed at the electronic device side.

[0286] The processor is configured to execute the device control program stored in the memory to implement the steps of the device control method executed at the electronic device side.

[0287] According to the comparison result, a control strategy for a power supply circuit of the target device is determined;

[0288] According to the control strategy, a corresponding control operation is performed on the power supply circuit.

[0289] Those skilled in the art will further realize that the units and algorithm steps of the examples described in connection with the embodiments disclosed herein can be embodied in electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various examples have been described herein in terms of their functionality, which has been described generally and symbolically in flow charts. Having thus described the functionality of the examples, a person of ordinary skill in the art will be able to implement the described functionality in a variety of ways, using either hardware or software, or a combination of both. Such implementation decisions should not drive the interpretation of the claims.

[0290] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0291] The above detailed description has been presented for the purposes of clarity and understanding. It is not intended to be exhaustive or to limit the application to the precise form described. Many modifications and variations are possible in the light of the above teachings. It is intended that the scope of the application be limited not with this detailed description, but rather by the claims appended hereto.

Claims

1. A device control method, characterized in that, The method includes: Acquiring the current value of a target device and determining the target current value of the target device includes: collecting the current value of the target device according to a preset current sampling period; storing the current value in a preset current queue; and determining the target current value of the target device based on the current values ​​in the current queue. Compare the current current value with the target current value; Based on the comparison results, a control strategy for the power supply circuit of the target device is determined, including: if the current current value is greater than or equal to the target current value, the control strategy for the power supply circuit of the target device is to maintain power supply; if the current current value is less than the target current value, the control strategy for the power supply circuit of the target device is to cut off power supply. The power supply circuit is subjected to corresponding control operations according to the control strategy.

2. The method according to claim 1, characterized in that, Before storing the current current value to a preset current queue, the method further includes: Determine the target number of current values ​​stored in the current queue; Compare the target quantity with a preset quantity threshold; When the target number is equal to the number threshold, the sampling time for each current value in the current queue is determined; Remove the earliest current value at the sampling time from the current queue and perform the step of storing the current value to the preset current queue.

3. The method according to claim 2, characterized in that, The method further includes: If the target quantity is less than the quantity threshold, the current current value is stored in a preset current queue; Determine the current number of current values ​​stored in the current queue; Compare the current quantity with the quantity threshold; If the current quantity is less than the quantity threshold, then the step of collecting the current current value of the target device according to the preset current sampling period is executed; If the current quantity is equal to the quantity threshold, then the step of determining the target current value of the target device based on the current values ​​in the current queue is executed.

4. The method according to claim 1, characterized in that, After storing the current current value to a preset current queue, the method further includes: Determine the target number of current values ​​stored in the current queue; Compare the target quantity with a preset quantity threshold; If the target quantity is equal to the quantity threshold, the step of determining the target current value of the target device based on the current values ​​in the current queue is performed. If the target quantity is less than the quantity threshold, the step of collecting the current current value of the target device according to the preset current sampling period is performed.

5. The method according to claim 4, characterized in that, The method further includes: If the target number is greater than the number threshold, the sampling time of each current value in the current queue is determined; Based on the sampling time, the current values ​​stored in the current queue are sorted, and the top N current values ​​are selected to form a current set, where N is a positive integer. Determining the target current value of the target device based on the current values ​​in the current queue includes: The target current value of the target device is determined based on the current values ​​in the current set.

6. The method according to claim 1, characterized in that, Determining the target current value of the target device based on the current values ​​in the current queue includes: The average value of the current values ​​in the current queue is determined, and the product of the average value and a preset ratio is determined as the target current value of the target device.

7. The method according to claim 1, characterized in that, The step of performing corresponding control operations on the power supply circuit according to the control strategy includes: When the control strategy is to maintain power supply, a control operation to maintain power supply is performed on the power supply circuit of the target device; When the control strategy is to cut off the power supply, the power supply circuit of the target device is cut off by means of a switching device.

8. The method according to claim 7, characterized in that, After performing the control operation to cut off the power supply to the power supply circuit of the target device, the method further includes: When the switching device is detected to be closed, the power supply circuit of the target device is turned on.

9. An energy-saving device, characterized in that, The energy-saving device includes: a power management module and a microcontroller module; wherein, the power management module is used to supply power to the microcontroller module and the target device; the microcontroller module is used to execute the device control method according to any one of claims 1 to 8. The first input terminal of the power management module is connected to the first terminal of the AC power supply, and the second input terminal of the power management module is connected to the second terminal of the AC power supply. The first output terminal of the power management module is connected to the first input terminal of the microcontroller module, the second output terminal of the power management module is connected to the second input terminal of the microcontroller module, and the receiving terminal of the power management module is connected to the output terminal of the microcontroller module. The third output terminal of the power management module is connected to the first input terminal of the target device, and the fourth output terminal of the power management module is connected to the second input terminal of the target device.

10. The energy-saving device according to claim 9, characterized in that, The power management module includes a power supply unit and a control unit; The power supply unit is used to convert AC power into DC power to power the microcontroller module. The control unit is used to supply power to the target device and receive control signals from the microcontroller unit, and control the power supply circuit of the target device according to the control signals; The first input terminal of the power supply unit is connected to the first terminal of the AC power supply, and the second input terminal of the power supply unit is connected to the second terminal of the AC power supply. The first output terminal of the power supply unit is connected to the first input terminal of the microcontroller module, and the second output terminal of the power supply unit is connected to the second input terminal of the microcontroller module. The first input terminal of the control unit is connected to the first terminal of the AC power supply, and the second input terminal of the control unit is connected to the second terminal of the AC power supply. The first output terminal of the control unit is connected to the first input terminal of the target device, and the second output terminal of the control unit is connected to the second input terminal of the target device; The receiving end of the control unit is connected to the output end of the microcontroller module, the sixth input end of the control unit is connected to the power supply, and the seventh output end of the control unit is connected to the ground wire.

11. The energy-saving device according to claim 10, characterized in that, The power supply unit includes: a first resistor, a first capacitor, a first diode, a second diode, a third diode, a fourth diode, a fifth diode, and a second capacitor; The first end of the first resistor is connected to the first end of the first capacitor, and the second end of the first resistor is connected to the second end of the first capacitor; the first end of the first capacitor is connected to the second end of the AC power supply, and the second end of the first capacitor is connected to the input end of the first diode. The output terminals of the first diode, the third diode, and the fifth diode, as well as the first terminal of the second capacitor, are all connected to the first input terminal of the microcontroller module. The input terminal of the first diode is connected to the output terminal of the second diode, and the input terminal of the third diode is connected to the output terminal of the fourth diode; The input terminals of the second diode, the fourth diode, the fifth diode, and the second terminal of the second capacitor are all connected to the second input terminal of the microcontroller module.

12. The energy-saving device according to claim 10, characterized in that, The control unit includes a current detection subunit and a circuit control subunit; The current detection subunit is used to detect the current of the target device; The current detection subunit includes a second resistor, a sixth diode, and a third resistor; The output terminal of the sixth diode is connected to the first terminal of the third resistor, the input terminal of the sixth diode is connected to the first terminal of the second resistor, and the second terminal of the second resistor is connected to the second terminal of the third resistor. The first end of the third resistor is connected to the second end of the AC power supply, and the second end of the third resistor is connected to the second end of the target device. The circuit control subunit is used to receive control signals from the microcontroller module and control the power supply circuit of the target device. The circuit control subunit includes a fourth resistor, a relay, and a switching device; the relay includes a coil and a contact group, wherein the first contact in the contact group is connected to the second terminal of the AC power supply, and the second contact in the contact group is connected to the first input terminal of the target device; the first input terminal of the coil in the relay is connected to the first terminal of the switching device, and the second input terminal of the coil is connected to the power supply; The second terminal of the switching device is connected to the first terminal of the fourth resistor, and the third terminal of the switching device is connected to the grounding wire; The second end of the fourth resistor is connected to the output end of the microcontroller module.

13. The energy-saving device according to claim 9, characterized in that, The energy-saving device further includes a switch control module; the switch control module is used to control the power supply circuit of the target device when a trigger operation of the target object on the switch control module is detected; the switch control module is connected to the microcontroller module.

14. A device control apparatus, characterized in that, The device includes: A current determination module is used to acquire the current value of a target device and determine the target current value of the target device, including: acquiring the current current value of the target device according to a preset current sampling period; storing the current current value in a preset current queue; and determining the target current value of the target device based on the current values ​​in the current queue. A current comparison module is used to compare the current current value with the target current value; The strategy determination module is used to determine a control strategy for the power supply circuit of the target device based on the comparison result, including: if the current current value is greater than or equal to the target current value, then the control strategy for the power supply circuit of the target device is to maintain power supply; if the current current value is less than the target current value, then the control strategy for the power supply circuit of the target device is to cut off power supply. The operation execution module is used to perform corresponding control operations on the power supply circuit according to the control strategy.

15. An electronic device, characterized in that, include: A processor and a memory, the processor being configured to execute a device control program stored in the memory to implement the device control method according to any one of claims 1 to 8.

16. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the device control method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Control circuit of energy-saving socket

    CN102339024A

  • Field domain monitoring method and system based on use condition of electric appliance and socket device

    CN114384343A