CN113495503A - Power-off control method and device for socket and socket - Google Patents

Power-off control method and device for socket and socket Download PDF

Info

Publication number
CN113495503A
CN113495503A CN202010191852.9A CN202010191852A CN113495503A CN 113495503 A CN113495503 A CN 113495503A CN 202010191852 A CN202010191852 A CN 202010191852A CN 113495503 A CN113495503 A CN 113495503A
Authority
CN
China
Prior art keywords
power
socket
currently accessed
detection result
control information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010191852.9A
Other languages
Chinese (zh)
Inventor
陈辰
陶根林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010191852.9A priority Critical patent/CN113495503A/en
Publication of CN113495503A publication Critical patent/CN113495503A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • H01R13/6683Structural association with built-in electrical component with built-in electronic circuit with built-in sensor
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • H01R13/6691Structural association with built-in electrical component with built-in electronic circuit with built-in signalling means
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Abstract

The application discloses a socket and a power-off control method and device thereof. Wherein, the method comprises the following steps: acquiring power failure control information; sending a shutdown instruction to the currently accessed load based on the power-off control information so as to enable the currently accessed load to enter a dormant state; and after the currently accessed load enters a dormant state, determining whether to cut off power supply according to the detection result of the metering data. The method solves the technical problems that in the prior art, power failure is carried out on the intelligent electric appliance, internal devices in the intelligent electric appliance are easily damaged, and a user needs to wait for and frequently operate.

Description

Power-off control method and device for socket and socket
Technical Field
The application relates to the technical field of intelligent electrical appliances, in particular to a socket and a power-off control method and device thereof.
Background
Along with the development of intelligent electrical apparatus technique, the intelligent electrical apparatus of current society installation intelligent operating system popularizes in a large number, and this intelligent electrical apparatus can bring abundant information content for the user when normal work, but shuts off the back to intelligent electrical apparatus through the remote controller, and in fact many systems still secretly are serving the switching at the backstage, not only consume the flow and still consume the electric quantity.
In the prior art, one processing method for solving the problems is to disconnect the intelligent electrical appliance from the socket and directly cut off the power of the intelligent electrical appliance, but frequent direct power-off can cause damage to internal devices in the intelligent electrical appliance and shorten the service life of the intelligent electrical appliance; the other processing method is that a user controls the intelligent electrical appliance to be shut down through a remote controller of the intelligent electrical appliance, the operating system of the intelligent electrical appliance still needs to be processed for a period of time to enter a dormant state, and then the user disconnects the power supply of the intelligent electrical appliance.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a power-off control method and device for a socket and the socket, and aims to at least solve the technical problems that in the prior art, internal devices in an intelligent electric appliance are easily damaged, and users need to wait and frequently operate in a power-off mode of the intelligent electric appliance.
According to an aspect of an embodiment of the present application, there is provided a power outage control method for an outlet, including: acquiring power failure control information; sending a shutdown instruction to the currently accessed load based on the power-off control information so as to enable the currently accessed load to enter a dormant state; and after the currently accessed load enters a dormant state, determining whether to cut off power supply according to the detection result of the metering data.
According to another aspect of the embodiments of the present application, there is also provided a power-off control method for an outlet, including: determining the charging state of the currently accessed load according to the detection result of the metering data; and if the currently accessed load is determined to be in a charging saturation state through the detection result, cutting off power supply.
According to another aspect of the embodiments of the present application, there is also provided a power outage control apparatus for an outlet, including: the acquisition module is used for acquiring the power-off control information; the communication module is used for sending a shutdown instruction to the currently accessed load based on the power-off control information so as to enable the currently accessed load to enter a dormant state; and the power-off module is used for determining whether to cut off power supply according to the detection result of the metering data after the currently accessed load enters the dormant state.
According to another aspect of the embodiments of the present application, there is also provided a power outage control apparatus for an outlet, including: the determining unit is used for determining the charging state of the currently accessed load according to the detection result of the metering data; and the power-off unit is used for cutting off power supply if the currently accessed load is determined to be in a charging saturation state through the detection result.
According to another aspect of the embodiments of the present application, there is also provided a storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus on which the storage medium is located is controlled to execute any one of the above power-off control methods for the socket.
According to another aspect of the embodiments of the present application, there is also provided a processor, where the processor is configured to execute a program, where the program executes any one of the power-off control methods of the socket.
According to another aspect of the embodiments of the present application, there is also provided a socket including: the communication component is used for acquiring power-off control information and sending a shutdown instruction, wherein the shutdown instruction is used for triggering a currently accessed load to enter a dormant state; the metering component is used for acquiring the detection result of the metering data after the currently accessed load enters a dormant state; and the processing component is used for generating the shutdown instruction based on the power-off control information and determining whether to cut off power supply according to the detection result of the metering data.
According to another aspect of the embodiments of the present application, there is provided an electrical appliance, where the electrical appliance has a power-off control device built therein, and the power-off control device includes: the communication component is used for acquiring power failure control information; the metering component is used for acquiring the detection result of the metering data after the electric appliance enters the dormant state; and the processing component is used for controlling the electric appliance to enter a dormant state under the triggering of the power-off control information and determining whether to control the electric appliance to enter a power-off state or not according to the detection result of the metering data.
In the embodiment of the application, the power-off control information is acquired by adopting a socket mode supporting delayed power-off; sending a shutdown instruction to the currently accessed load based on the power-off control information so as to enable the currently accessed load to enter a dormant state; and after the currently accessed load enters a dormant state, determining whether to cut off power supply according to the detection result of the metering data.
It is easy to note that, in the embodiment of the present application, the socket sends a shutdown instruction to the currently-accessed load based on the acquired power-off control information, so that the currently-accessed load enters a dormant state, and after the currently-accessed load enters the dormant state, determines whether to cut off power supply to the currently-accessed load according to a detection result of the metering data.
From this, this application embodiment has reached when cutting off the power supply to intelligent electrical apparatus, avoids the purpose that the internal device in the intelligent electrical apparatus damaged and need not the frequent operation of user to realized safe convenient to intelligent electrical apparatus cut off the power supply and handled, strengthened the technological effect that user experience felt, and then solved among the prior art to the mode of cutting off the power supply to intelligent electrical apparatus, there is the internal device that easily leads to in the intelligent electrical apparatus to damage and need the user to wait for and the technical problem of frequent operation.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a power-off control method of a socket according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for controlling power down of a receptacle according to an embodiment of the present application;
FIG. 3 is an interactive schematic diagram of an alternative method for controlling power down of a receptacle according to an embodiment of the present application;
FIG. 4 is a flow chart of another method for controlling power down of a receptacle according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a power-off control device of a socket according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a power-off control device of another socket according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a receptacle according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an appliance according to an embodiment of the present application;
fig. 9 is a block diagram of a computer terminal according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, some terms or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
the intelligent television comprises: refers to a television set installed with an intelligent operating system (such as an Android operating system).
The intelligent metering socket: the socket can be wirelessly controlled to be opened and closed, and has a current and voltage metering function.
Example 1
There is also provided, in accordance with an embodiment of the present application, an embodiment of a method for controlling power down of a receptacle, to note that the steps illustrated in the flowchart of the figure may be performed in a computer system, such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Fig. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a power-off control method of a socket, and as shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more processors 102 (shown with 102a, 102b, … …, 102n in the figure) (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission module 106 for communication function. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the power-off control method of the socket in the embodiment of the present application, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the power-off control method of the socket. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
Under the above operating environment, the present application provides a power-off control method for an outlet as shown in fig. 2, fig. 2 is a flowchart of a power-off control method for an outlet according to an embodiment of the present application, and as shown in fig. 2, the power-off control method for an outlet includes the following method steps:
step S202, acquiring power-off control information;
step S204, a shutdown instruction is sent to the currently accessed load based on the power-off control information, so that the currently accessed load enters a dormant state;
step S206, after the currently accessed load enters the sleep state, determining whether to cut off the power supply according to the detection result of the metering data.
In the embodiment of the application, the power-off control information is acquired by adopting a socket mode supporting delayed power-off; sending a shutdown instruction to the currently accessed load based on the power-off control information so as to enable the currently accessed load to enter a dormant state; and after the currently accessed load enters a dormant state, determining whether to cut off power supply according to the detection result of the metering data.
It is easy to note that, in the embodiment of the present application, the socket sends a shutdown instruction to the currently-accessed load based on the acquired power-off control information, so that the currently-accessed load enters a dormant state, and after the currently-accessed load enters the dormant state, determines whether to cut off power supply to the currently-accessed load according to a detection result of the metering data.
From this, this application embodiment has reached when cutting off the power supply to intelligent electrical apparatus, avoids the purpose that the internal device in the intelligent electrical apparatus damaged and need not the frequent operation of user to realized safe convenient to intelligent electrical apparatus cut off the power supply and handled, strengthened the technological effect that user experience felt, and then solved among the prior art to the mode of cutting off the power supply to intelligent electrical apparatus, there is the internal device that easily leads to in the intelligent electrical apparatus to damage and need the user to wait for and the technical problem of frequent operation.
Optionally, the currently accessed load is a load accessed to the socket, where the load is an intelligent device installed with an intelligent operating system (such as an Android operating system), and for example, the intelligent device may be but is not limited to a first type of device such as an intelligent television, an intelligent set-top box, an intelligent air conditioner, and the like, and may also be a second type of device such as an intelligent mobile phone, a notebook computer, a tablet, and the like; it should be noted that, the first type of device is not provided with a storage battery, and does not need to be charged in advance, but needs to be connected with a power supply all the time when in use, that is, a power line is connected to a socket; the second type of equipment is provided with a storage battery, and the storage battery can be connected with a power supply in advance for charging but is not connected with the power supply when in use, or can be directly connected with the power supply when in use without charging in advance.
Optionally, the above-mentioned socket is supply socket, and this supply socket is a smart jack, can be directly with user terminal equipment (for example, smart mobile phone, wearable equipment of intelligence, flat board etc.) communication connection, and the user can send control instruction through the last client APP who installs of user terminal equipment to realize wireless control socket.
Optionally, the smart socket is an intelligent metering socket, which can supply power to an accessed load by switching on a power supply, and has a metering function of a current value or a voltage value, and the like, and is used for metering the current value or the voltage value of the currently accessed load.
Optionally, the power-off control information is used to control the socket to stop supplying power to the currently connected load.
As an optional embodiment, the acquiring the power-off control information includes: and acquiring a power-off control instruction from the client.
In the above optional embodiment, the currently accessed load is a television (or a set top box), and the user terminal device is a smart phone, for example, because the socket is connected to the smart phone of the user, a power line of the television is plugged into the socket, and the television and the socket are normally powered on, when the user needs to operate and turn off the television, the power-off process is performed without remotely controlling the television to be powered off, but the power-off control instruction can be directly sent to the socket through a client APP installed on the smart phone, and the socket is controlled to perform the delayed power-off process on the television.
In this application embodiment, send outage control instruction to socket through customer end APP to the mode that control socket carries out the time delay outage to the TV set and handles not only can guarantee that the memory device in the TV set can not cause the damage because of outage suddenly, can just can reach the purpose of cutting off the power supply to the TV set through simple one step operation moreover, prevents that TV set backstage service from silently consuming flow and electric quantity.
As another optional embodiment, the acquiring the power-off control information includes: and acquiring a power-off control signal triggered by a power-off key arranged outside the socket.
In the above optional embodiment, taking the currently accessed load as a charged notebook computer (or smart phone) as an example, the power line of the notebook computer is plugged into the socket, the notebook computer and the socket are started up to work normally, and when a user needs to operate and close the notebook computer, the notebook computer does not need to be remotely controlled to be shut down and then power off, because the power off key is arranged on the housing of the socket, the user can trigger the power off control signal to the socket by pressing the power off key, and the socket is controlled to perform delayed power off processing on the notebook computer.
In the embodiment of the application, the power-off control signal is triggered by the power-off key arranged outside the control socket, so that the control socket performs delayed power-off processing on the notebook computer, a user can leave the notebook computer by directly pressing the power-off key of the socket without waiting, the storage device in the notebook computer cannot be damaged due to sudden power failure, the power-off purpose of the notebook computer and the like can be achieved through simple one-step operation, and the consumed flow and the electric quantity of the background service of the notebook computer are prevented from being quiet.
As an optional embodiment, sending the shutdown instruction to the currently accessed load based on the power outage control information includes:
step S502, generating an infrared shutdown instruction based on the power-off control information;
step S504, sending the infrared shutdown instruction to the currently accessed load via the infrared remote control component built in the socket.
Optionally, in this embodiment of the application, an infrared remote control component may be built in the socket, for example, an infrared remote controller, and after the socket acquires the power-off control information, an infrared power-off instruction may be generated based on the power-off control information, and the infrared power-off instruction is sent to the currently-accessed load through the built-in infrared remote controller, so as to cut off power supply to the currently-accessed load from the socket and control the currently-accessed load to enter a sleep state, specifically, an operating system of the currently-accessed load is controlled to enter the sleep state through the infrared power-off instruction.
As another optional embodiment, sending the shutdown instruction to the currently accessed load based on the power outage control information includes:
step S602, generating an infrared shutdown instruction based on the power-off control information;
step S604, sending the infrared shutdown instruction to the currently accessed load via the external infrared remote controller matched with the socket.
Optionally, in this embodiment of the application, the socket may be matched with an external infrared remote control assembly, for example, matched with an external infrared remote controller, after the socket acquires the power-off control information, an infrared shutdown instruction may be generated based on the power-off control information, and the infrared shutdown instruction is sent to the currently-accessed load through the external infrared remote controller, so as to achieve the purpose of cutting off power supply to the currently-accessed load from the socket and controlling the currently-accessed load to enter a sleep state.
It should be noted that the infrared shutdown instruction is used to control the currently accessed load to enter the sleep state, instead of directly powering off the currently accessed load, so that it can be ensured that a storage device (such as a Flash memory) in the currently accessed load is not damaged due to sudden power failure.
As an alternative embodiment, the determining whether to cut off the power supply according to the detection result of the metering data includes:
step S702, a detection step, namely detecting the metering data after the currently accessed load enters a dormant state to obtain the latest detection result;
step S704, a judging step, namely judging whether the latest detection result is smaller than a preset threshold value; if not, returning to the detection step, and if so, cutting off power supply.
Optionally, in this embodiment of the application, since the outlet is an intelligent metering outlet, a metering module for metering a current value and/or a voltage value of a currently connected load is built in the outlet, for example, a current meter or a voltage meter, and the metering data may be a current value of the currently connected load detected by the metering module.
In an optional embodiment, after the currently connected load enters the sleep state, the socket may cyclically detect the current value detected by the metering module to obtain a latest current value, and determine that the latest current value is smaller than a preset threshold, for example, determine that the latest current value is smaller than a preset threshold (i.e., a preset current threshold); if the latest current value is smaller than the preset threshold value, the relay of the socket cuts off power supply for the load which is connected at present, if the latest current value is larger than or equal to the preset threshold value, the measurement data are continuously detected to obtain the latest current value, and the latest current value is detected to be smaller than the preset threshold value.
As an alternative embodiment, after determining whether to cut off the power supply according to the detection result of the metering data, the method further includes:
step S802, returning a notification message to the client, where the notification message is used to notify the client that the power supply of the socket has been successfully cut off.
In the above alternative embodiment of the present application, the socket may return a notification message that the power supply has been successfully cut off to the client, and the client notifies or prompts the user that the socket has successfully cut off the power supply.
Fig. 3 is an interactive schematic diagram of an alternative power-off control method for a socket according to an embodiment of the present application, and as shown in fig. 3, the power-off control method for the socket may be implemented by, but is not limited to, the following method steps:
step S100, the socket acquires power-off control information.
In step S100, the power-off control information is used to control the outlet to stop supplying power to the currently connected load
As an optional embodiment, the acquiring the power-off control information includes: and acquiring a power-off control instruction from the client.
As another optional embodiment, the acquiring the power-off control information includes: and acquiring a power-off control signal triggered by a power-off key arranged outside the socket.
Optionally, the power socket is an intelligent socket, and can be directly in communication connection with user terminal equipment (for example, a smart phone, a smart wearable device, an iPAD, and the like), and a user can send a control instruction through a client APP installed on the user terminal equipment to realize a wireless control socket.
Optionally, the currently accessed load is a load accessed to the socket, where the load is an intelligent device installed with an intelligent operating system (such as an Android operating system), for example, the intelligent device may be but is not limited to a first type of device such as an intelligent television, an intelligent set-top box, an intelligent air conditioner, and the like, and may also be a second type of device such as an intelligent mobile phone, a notebook computer, and an iPAD; it should be noted that the first type of device is not provided with a storage battery, and does not need to be charged in advance, but needs to be connected with a power supply all the time when in use, that is, a power cord is plugged into an outlet; the second type of equipment is provided with a storage battery, and the storage battery can be connected with a power supply in advance for charging but is not connected with the power supply when in use, or can be directly connected with the power supply when in use without charging in advance.
And step S102, the socket sends a shutdown instruction to the currently accessed load based on the power-off control information.
Optionally, for example, the currently-accessed load is a television, in this embodiment of the application, an infrared remote control component, for example, an infrared remote controller, may be built in the socket, and after the socket acquires the power-off control information, an infrared power-off instruction may be generated based on the power-off control information, and the infrared power-off instruction is sent to the television through the built-in infrared remote controller, so as to cut off power supply of the socket to the currently-accessed television, and control the television to enter a sleep state.
Optionally, taking the currently accessed load as an example of a set top box, in this embodiment of the application, the socket may be matched with an external infrared remote control component, for example, matched with an external infrared remote controller, after the socket acquires the power-off control information, an infrared power-off instruction may be generated based on the power-off control information, and the infrared power-off instruction is sent to the set top box by the external infrared remote controller, so as to achieve the purpose of cutting off power supply of the socket to the currently accessed set top box and controlling the set top box to enter a sleep state.
And step S104, the currently accessed load enters a dormant state under the control of the shutdown instruction.
Optionally, in this embodiment of the application, the infrared shutdown instruction is used to control the currently accessed load to enter a sleep state, instead of directly powering off the currently accessed load, so that it can be ensured that a storage device in the currently accessed load is not damaged due to sudden power failure.
And step S106, the socket acquires the detection result of the metering data and detects the metering data to obtain the latest detection result.
Optionally, the smart socket is an intelligent metering socket, which may not only supply power to an accessed load by turning on a power supply, but also have a metering module, such as a current meter or a voltage meter, built in to meter a current value and/or a voltage value of the currently accessed load, where the metering data may be a current value of the currently accessed load detected by the metering module.
Step S108, judging whether the latest detection result is smaller than a preset threshold value;
step S110, if the judgment result is yes, the power supply to the load which is accessed at present is cut off;
in an optional embodiment, after the currently connected load enters the sleep state, the socket may cyclically detect the current value detected by the metering module to obtain a latest current value, and determine that the latest current value is smaller than a preset threshold, for example, determine that the latest current value is smaller than a preset threshold (i.e., a preset current threshold); and if the latest current value is smaller than the preset threshold value, the relay of the socket cuts off the power supply for the currently accessed load.
In another optional embodiment, if the latest current value is greater than or equal to the preset threshold, the measurement data is continuously detected to obtain the latest current value until the latest current value is detected to be less than the preset threshold.
Step S112, a notification message is returned to the client.
In the above alternative embodiment of the present application, the socket may return a notification message that the power supply has been successfully cut off to the client, and the client notifies or prompts the user that the socket has successfully cut off the power supply.
In this embodiment, still taking the currently accessed load as the tv as an example, by sending power-off control information to the socket, for example, controlling a power-off key of the socket peripheral to trigger a power-off control signal, or sending a power-off control instruction to the socket by the client APP, so as to control the socket to perform a delayed power-off processing on the tv, that is, sending a power-off instruction to the currently accessed load based on the power-off control information to enable the currently accessed load to enter a sleep state, and determining whether to cut off power supply according to a detection result of the metering data after the currently accessed load enters the sleep state. The storage device in the television can not be damaged due to sudden power failure, the power failure of the television can be achieved through simple one-step operation, and the silent consumption flow and electric quantity of background services of the television are prevented.
Example 2
There is also provided, in accordance with an embodiment of the present application, an embodiment of a method for controlling power down of a receptacle, to note that the steps illustrated in the flowchart of the figure may be performed in a computer system, such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Under the same or similar operating environment as that in embodiment 1, the present application also provides another power-off control method for the socket shown in fig. 4, fig. 4 is a flowchart of the power-off control method for another socket according to an embodiment of the present application, and as shown in fig. 4, the power-off control method for the socket may include the following method steps:
step S902, determining the charging state of the load accessed currently according to the detection result of the metering data;
step S904, if it is determined that the currently connected load is in a charging saturation state according to the detection result, the power supply is cut off.
In the embodiment of the application, after the battery of the load which is accessed before by the socket is charged and saturated, the charging state of the load which is accessed before is determined by the detection result according to the metering data in a mode of intelligently powering off the load which is accessed before; and if the currently accessed load is determined to be in a charging saturation state through the detection result, cutting off power supply.
It is easy to note that, the socket in the embodiment of the present application determines the charging state of the currently connected load based on the detection result of the acquired metering data; and if the currently accessed load is determined to be in a charging saturation state through the detection result, cutting off power supply.
From this, after the battery of the load that has reached the previous access charges and saturates, in time cut off the power supply to intelligent electrical apparatus and handle, avoid the purpose that the internal device in the intelligent electrical apparatus damaged and need not the frequent operation of user, thereby realized safe convenient to cut off the power supply to intelligent electrical apparatus and handle, the technological effect that reinforcing user experience felt, and then solved among the prior art after the battery of the load that inserts at present charges and saturates, still lead to the technical problem that the life of shortening the battery and the phenomenon of battery explosion take place for battery powered always.
Through the above-mentioned embodiment of this application, provide the battery of the load that the socket inserted before after the saturation of charging, carry out the mode of intelligence outage to the load that inserts before, can effectively prevent the battery of the load that inserts at present after the saturation of charging, still for battery power supply not only shortens the life of battery all the time, still easily leads to the phenomenon that takes place the battery explosion.
Optionally, the currently accessed load is a load accessed to the socket, the load is an intelligent device provided with an intelligent operating system (such as an Android operating system), for example, a smart phone, a notebook computer, an iPAD, and the like, and the intelligent device is provided with a storage battery, and the storage battery can be accessed to the socket in advance for charging without accessing to the socket.
Optionally, the power socket is an intelligent socket, and the power socket can also be directly in communication connection with user terminal equipment (for example, a smart phone, a smart wearable device, an iPAD, and the like), and a user can send a control instruction through a client APP installed on the user terminal equipment to realize a wireless control socket.
As an alternative embodiment, the determining the charging status of the currently connected load according to the detection result of the metering data includes:
step S1002, a detection step, namely detecting the metering data to obtain the latest detection result;
step S1004, a judging step, namely judging whether the latest detection result is smaller than a preset threshold value; if yes, returning to the detection step, and if not, determining that the currently accessed load is in the charging saturation state.
Optionally, in this embodiment of the application, since the receptacle is a smart metering receptacle, a metering module, such as a current meter or a voltage meter, for metering a current value and/or a voltage value of a currently connected load is built in the receptacle, and the metering data may be a total current value of the currently connected load detected by the metering module, so as to determine whether the currently connected load is in a state of charge saturation.
In an optional embodiment, taking the currently accessed load as a mobile phone as an example, when the mobile phone is charged by connecting the socket, the socket may cyclically detect the current value detected by the metering module to obtain a latest total current value, and determine that the latest total current value is smaller than a preset threshold (i.e., a total charging current value when the currently accessed load is in a charging saturation state), for example, determine that the latest total current value is smaller than a preset threshold (i.e., a preset current threshold); if the latest total current value is smaller than a preset threshold value, continuing to supply power to the mobile phone, and detecting the metering data to obtain the latest total current value until the latest total current value is detected to be equal to (or larger than, and equal to the preset threshold value in actual detection); and if the latest total current value is equal to a preset threshold value, determining that the mobile phone is in a charging saturation state, and cutting off the relay of the socket to supply power to the mobile phone.
As an alternative embodiment, the method further includes:
step S1102 is to send an alarm prompt message, where the alarm prompt message is used to prompt that the currently connected load has completed charging.
As another optional embodiment, taking the currently accessed load as a mobile phone as an example, the socket may also send out an alarm prompt message in a voice prompt manner; for example, a simple prompt tone is given to inform the user that the mobile phone is charged.
In the embodiment of the present application, still taking the currently accessed load as an example of a mobile phone, the socket in the embodiment of the present application determines the charging state of the mobile phone based on the detection result of the acquired metering data; and if the mobile phone is determined to be in a charging saturation state through the detection result, cutting off power supply.
Through the embodiment, the phenomenon that the service life of the battery is shortened due to the fact that the battery of the current connected load is still supplied with power all the time after the battery is charged to saturation can be effectively prevented, and the phenomenon that the battery explodes can also be effectively prevented.
It should be noted that, reference may be made to the relevant description in embodiment 1 for alternative or preferred embodiments of this embodiment, and details are not described here again.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
Example 3
According to an embodiment of the present application, there is also provided an embodiment of an apparatus for implementing the power-off control method of the socket, and fig. 5 is a schematic structural diagram of a power-off control apparatus of the socket according to the embodiment of the present application, as shown in fig. 5, the apparatus 500 includes: an acquisition module 502, a communication module 504, and a power-off module 506, wherein:
an obtaining module 502, configured to obtain power-off control information; a communication module 504, configured to send a shutdown instruction to the currently accessed load based on the power-off control information, so that the currently accessed load enters a dormant state; and a power-off module 506, configured to determine whether to cut off power supply according to a detection result of the metering data after the currently accessed load enters the sleep state.
It should be noted that the acquiring module 502, the communication module 504 and the power-off module 506 correspond to steps S202 to S206 in embodiment 1, and the three modules are the same as the corresponding steps in the implementation example and application scenario, but are not limited to the disclosure in embodiment 1. It should be noted that the above modules may be operated in the computer terminal 10 provided in embodiment 1 as a part of the apparatus.
According to an embodiment of the present application, there is provided another embodiment of an apparatus for implementing the method for controlling power outage of an outlet, and fig. 6 is a schematic structural diagram of another power outage controlling apparatus of an outlet according to an embodiment of the present application, and as shown in fig. 6, the apparatus 600 includes: a determination unit 602 and a power down unit 604, wherein:
a determining unit 602, configured to determine a charging state of a currently-accessed load according to a detection result of the metering data; a power-off unit 604, configured to cut off power supply if it is determined that the currently connected load is in a charging saturation state according to the detection result.
It should be noted here that the above determining unit 602 and the power-off unit 604 correspond to steps S902 to S904 in embodiment 2, and the two units are the same as the corresponding steps in the implementation example and application scenario, but are not limited to the disclosure of embodiment 2. It should be noted that the above modules may be operated in the computer terminal 10 provided in embodiment 1 as a part of the apparatus.
In addition, it should be noted that, for alternative or preferred embodiments of the present embodiment, reference may be made to the relevant descriptions in embodiments 1 and 2, and details are not described herein again.
Example 4
According to an embodiment of the present application, there is also provided an embodiment of a socket, which may be used to implement the power outage control method of the socket provided in embodiment 1 or 2 above, or to operate the power outage control device of the socket provided in embodiment 3, and fig. 7 is a schematic structural diagram of a socket according to an embodiment of the present application, as shown in fig. 7, the socket 700 includes:
a communication component 702, configured to acquire power-off control information and send a shutdown instruction, where the shutdown instruction is used to trigger a currently-accessed load to enter a dormant state; a metering component 704, configured to obtain a detection result of metering data after the currently accessed load enters a dormant state; the processing component 706 is configured to generate the shutdown instruction based on the power-off control information, and determine whether to cut off power supply according to a detection result of the metering data.
Optionally, the power socket is an intelligent socket, and can be directly in communication connection with user terminal equipment (for example, a smart phone, a smart wearable device, an iPAD, and the like), and a user can send a control instruction through a client APP installed on the user terminal equipment to realize a wireless control socket.
Optionally, the smart socket is an intelligent metering socket, which can supply power to an accessed load by switching on a power supply, and has a metering function of a current value or a voltage value, and the like, and is used for metering the current value or the voltage value of the currently accessed load.
Optionally, the currently accessed load is a load accessed to the socket, where the load is an intelligent device installed with an intelligent operating system (such as an Android operating system), for example, the intelligent device may be but is not limited to a first type of device such as an intelligent television, an intelligent set-top box, an intelligent air conditioner, and the like, and may also be a second type of device such as an intelligent mobile phone, a notebook computer, and an iPAD; it should be noted that, the first type of device is not provided with a storage battery, and does not need to be charged in advance, but needs to be connected with a power supply all the time when in use, that is, the first type of device is connected to a socket through a power line; the second type of equipment is provided with a storage battery, and the storage battery can be connected with a power supply in advance for charging but not connected with the power supply when in use, or can be not charged in advance but directly connected with the power supply when in use.
Optionally, the communication component 702 may be, but is not limited to, an infrared remote control component, for example, an infrared remote controller; the shutdown instruction may be an infrared shutdown instruction. The metering component 704 may be, but is not limited to, a metering module built in the socket for metering a current value and/or a voltage value of the currently connected load, such as a current meter or a voltage meter, and the metering data may be a current value of the currently connected load detected by the metering module. The processing component 706 may be, but is not limited to, a processor, such as a microprocessor built into a socket, a processing chip, or the like.
Taking the currently accessed load as a television as an example, in the embodiment of the present application, an infrared remote control component, for example, an infrared remote controller, may be built in the socket, and after the socket acquires the power-off control information, an infrared shutdown instruction may be generated based on the power-off control information, and the infrared shutdown instruction is sent to the television by using the built-in infrared remote controller, so as to cut off power supply of the socket to the currently accessed television, and control the television to enter a sleep state.
Taking the currently accessed load as an example of a set top box, in the embodiment of the present application, the socket may be matched with an external infrared remote control component, for example, matched with an external infrared remote controller, after the socket acquires the power-off control information, an infrared power-off instruction may be generated based on the power-off control information, and the infrared power-off instruction is sent to the set top box through the external infrared remote controller, so as to achieve the purpose of cutting off the power supply of the socket to the currently accessed set top box and controlling the set top box to enter a sleep state.
Through the embodiment, the phenomenon that the service life of the battery is shortened due to the fact that the battery of the current connected load still supplies power to the battery all the time after the battery is charged to saturation can be effectively prevented, and the phenomenon that the battery explodes can also be effectively prevented.
Example 5
According to an embodiment of the present application, there is further provided an embodiment of an electrical appliance, where the electrical appliance is provided with a power-off control device inside, fig. 8 is a schematic structural diagram of the electrical appliance according to the embodiment of the present application, and as shown in fig. 8, the power-off control device 800 includes:
a communication component 802 for acquiring power-off control information; the metering component 804 is used for acquiring the detection result of the metering data after the electric appliance enters the dormant state; the processing component 806 is configured to control the electrical appliance to enter a sleep state under the trigger of the power-off control information, and determine whether to control the electrical appliance to enter a power-off state according to a detection result of the metering data.
Optionally, the communication component 802 may be, but is not limited to, an infrared remote control component, for example, an infrared remote controller; the metering component 804 may be, but is not limited to, a metering module built in the appliance for metering a current value and/or a voltage value of a currently connected load, for example, a current meter or a voltage meter, and the metering data may be a current value of the currently connected load detected by the metering module. The processing component 806 may be, but is not limited to, a processor, such as a microprocessor built in an appliance, a processing chip, and the like.
Optionally, the electrical appliance may be an intelligent device equipped with an intelligent operating system (e.g., an Android operating system, an iOS system), for example, the intelligent device may be but is not limited to a first type of device such as an intelligent television, an intelligent set-top box, an intelligent air conditioner, and the like, and may also be a second type of device such as a smart phone, a notebook computer, and an iPAD; it should be noted that, the first type of device is not provided with a storage battery, and does not need to be charged in advance, but needs to be connected with a power supply all the time when in use, that is, a power line is connected to a socket; the second type of equipment is provided with a storage battery, and the storage battery can be connected with a power supply in advance for charging but not connected with the power supply when in use, or can be not charged in advance but directly connected with the power supply when in use.
Taking the above-mentioned electrical appliance as an example of a television, in this embodiment of the present application, after the television acquires the power-off control information, a detection result of the metering data is acquired, and the television enters a sleep state under the trigger of the power-off control information, and whether to control the electrical appliance to enter the power-off state is determined according to the detection result of the metering data, so as to achieve the purpose of cutting off power supply to the television and controlling the television to enter the sleep state.
Taking the electrical appliance as an example of a set top box, in the embodiment of the present application, after the set top box acquires the power-off control information, the set top box acquires the detection result of the metering data, and enters the sleep state under the trigger of the power-off control information, and determines whether to control the set top box to enter the power-off state according to the detection result of the metering data, so as to achieve the purpose of cutting off the power supply for the set top box and controlling the set top box to enter the sleep state.
Through the above-mentioned embodiment of this application, not only can effectively prevent that the battery in the electrical apparatus is after charging saturation, still for this battery power supply all the time, lead to taking place the phenomenon that shortens the life of battery, can also effectively prevent the phenomenon that takes place the battery explosion.
Example 6
According to an embodiment of the present application, there is further provided an embodiment of a computer terminal, where the computer terminal may be any one computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computer terminal may be located in at least one network device of a plurality of network devices of a computer network.
In this embodiment, the computer terminal may execute the program code of the following steps in the power-off control method of the outlet: acquiring power failure control information; sending a shutdown instruction to the currently accessed load based on the power-off control information so as to enable the currently accessed load to enter a dormant state; and after the currently accessed load enters a dormant state, determining whether to cut off power supply according to the detection result of the metering data.
Optionally, fig. 9 is a block diagram of a computer terminal according to an embodiment of the present application, and as shown in fig. 9, the computer terminal 900 may include: one or more processors 902 (only one of which is shown), memory 904, and a peripherals interface 906.
The memory may be configured to store software programs and modules, such as program instructions/modules corresponding to the power-off control method and apparatus for the socket in the embodiment of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, implements the power-off control method for the socket. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the computer terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor can call the information and application program stored in the memory through the transmission device to execute the following steps: acquiring power failure control information; sending a shutdown instruction to the currently accessed load based on the power-off control information so as to enable the currently accessed load to enter a dormant state; and after the currently accessed load enters a dormant state, determining whether to cut off power supply according to the detection result of the metering data.
Optionally, the processor may further execute the program code of the following steps: and acquiring a power-off control instruction from the client.
Optionally, the processor may further execute the program code of the following steps: and acquiring a power-off control signal triggered by a power-off key arranged outside the socket.
Optionally, the processor may further execute the program code of the following steps: generating an infrared shutdown instruction based on the power failure control information; and sending the infrared shutdown instruction to the currently accessed load through an infrared remote control assembly built in the socket.
Optionally, the processor may further execute the program code of the following steps: generating an infrared shutdown instruction based on the power failure control information; and sending the infrared shutdown instruction to the currently accessed load through an external infrared remote controller matched with the socket.
Optionally, the processor may further execute the program code of the following steps: a detection step, after the currently accessed load enters a dormant state, detecting the metering data to obtain a latest detection result; a judging step, namely judging whether the latest detection result is smaller than a preset threshold value; if not, returning to the detection step, and if so, cutting off power supply.
Optionally, the processor may further execute the program code of the following steps: and returning a notification message to the client, wherein the notification message is used for notifying the client of the information that the power supply of the socket is successfully cut off.
Optionally, the processor may further execute the program code of the following steps: determining the charging state of the currently accessed load according to the detection result of the metering data; and if the currently accessed load is determined to be in a charging saturation state through the detection result, cutting off power supply.
Optionally, the processor may further execute the program code of the following steps: a detection step, detecting the metering data to obtain the latest detection result; a judging step, namely judging whether the latest detection result is smaller than a preset threshold value; if not, returning to the detection step, and if so, determining that the currently accessed load is in the charging saturation state.
Optionally, the processor may further execute the program code of the following steps: and sending an alarm prompt message, wherein the alarm prompt message is used for prompting that the currently accessed load is charged.
By adopting the embodiment of the application, the scheme for controlling the power failure of the socket is provided. Adopting a socket mode supporting delayed power failure to acquire power failure control information; sending a shutdown instruction to the currently accessed load based on the power-off control information so as to enable the currently accessed load to enter a dormant state; and after the currently accessed load enters a dormant state, determining whether to cut off power supply according to the detection result of the metering data.
It is easy to note that, in the embodiment of the present application, the socket sends a shutdown instruction to the currently-accessed load based on the acquired power-off control information, so that the currently-accessed load enters a dormant state, and after the currently-accessed load enters the dormant state, determines whether to cut off power supply to the currently-accessed load according to a detection result of the metering data.
From this, this application embodiment has reached when cutting off the power supply to intelligent electrical apparatus, avoids the purpose that the internal device in the intelligent electrical apparatus damaged and need not the frequent operation of user to realized safe convenient to intelligent electrical apparatus cut off the power supply and handled, strengthened the technological effect that user experience felt, and then solved among the prior art to the mode of cutting off the power supply to intelligent electrical apparatus, there is the internal device that easily leads to in the intelligent electrical apparatus to damage and need the user to wait for and the technical problem of frequent operation.
The embodiment of the application also provides another power-off control scheme of the socket. In the embodiment of the application, after the battery of the load which is accessed before by the socket is charged and saturated, the charging state of the load which is accessed before is determined by the detection result according to the metering data in a mode of intelligently powering off the load which is accessed before; and if the currently accessed load is determined to be in a charging saturation state through the detection result, cutting off power supply.
It is easy to note that, the socket in the embodiment of the present application determines the charging state of the currently connected load based on the detection result of the acquired metering data; and if the currently accessed load is determined to be in a charging saturation state through the detection result, cutting off power supply.
From this, after the battery of the load that has reached the previous access charges and saturates, in time cut off the power supply to intelligent electrical apparatus and handle, avoid the purpose that the internal device in the intelligent electrical apparatus damaged and need not the frequent operation of user, thereby realized safe convenient to cut off the power supply to intelligent electrical apparatus and handle, the technological effect that reinforcing user experience felt, and then solved among the prior art after the battery of the load that inserts at present charges and saturates, still lead to the technical problem that the life of shortening the battery and the phenomenon of battery explosion take place for battery powered always.
It can be understood by those skilled in the art that the structure shown in fig. 9 is only an illustration, and the computer terminal may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 9 is a diagram illustrating a structure of the electronic device. For example, computer terminal 900 may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 9, or have a different configuration than shown in FIG. 9.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 7
According to an embodiment of the present application, an embodiment of a storage medium is further provided, and optionally, in this embodiment, the storage medium may be configured to store program codes executed by the power failure control methods of the sockets provided in embodiments 1 and 2.
Optionally, in this embodiment, the storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: acquiring power failure control information; sending a shutdown instruction to the currently accessed load based on the power-off control information so as to enable the currently accessed load to enter a dormant state; and after the currently accessed load enters a dormant state, determining whether to cut off power supply according to the detection result of the metering data.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: and acquiring a power-off control instruction from the client.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: and acquiring a power-off control signal triggered by a power-off key arranged outside the socket.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: generating an infrared shutdown instruction based on the power failure control information; and sending the infrared shutdown instruction to the currently accessed load through an infrared remote control assembly built in the socket.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: generating an infrared shutdown instruction based on the power failure control information; and sending the infrared shutdown instruction to the currently accessed load through an external infrared remote controller matched with the socket.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: a detection step, after the currently accessed load enters a dormant state, detecting the metering data to obtain a latest detection result; a judging step, namely judging whether the latest detection result is smaller than a preset threshold value; if not, returning to the detection step, and if so, cutting off power supply.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: and returning a notification message to the client, wherein the notification message is used for notifying the client of the information that the power supply of the socket is successfully cut off.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: determining the charging state of the currently accessed load according to the detection result of the metering data; and if the currently accessed load is determined to be in a charging saturation state through the detection result, cutting off power supply.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: a detection step, detecting the metering data to obtain the latest detection result; a judging step, namely judging whether the latest detection result is smaller than a preset threshold value; if not, returning to the detection step, and if so, determining that the currently accessed load is in the charging saturation state.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: and sending an alarm prompt message, wherein the alarm prompt message is used for prompting that the currently accessed load is charged.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (16)

1. A power-off control method of a socket is characterized by comprising the following steps:
acquiring power failure control information;
sending a shutdown instruction to a currently accessed load based on the power-off control information so as to enable the currently accessed load to enter a dormant state;
and after the currently accessed load enters a dormant state, determining whether to cut off power supply according to the detection result of the metering data.
2. The method of claim 1, wherein obtaining the power down control information comprises:
and acquiring a power-off control instruction from the client.
3. The method of claim 1, wherein obtaining the power down control information comprises:
and acquiring a power-off control signal triggered by a power-off key arranged outside the socket.
4. The method of claim 1, wherein sending the shutdown instruction to the currently accessed load based on the power outage control information comprises:
generating an infrared shutdown instruction based on the power failure control information;
and sending the infrared shutdown instruction to the currently accessed load through an infrared remote control assembly built in the socket.
5. The method of claim 1, wherein sending the shutdown instruction to the currently accessed load based on the power outage control information comprises:
generating an infrared shutdown instruction based on the power failure control information;
and sending the infrared shutdown instruction to the currently accessed load through an external infrared remote controller matched with the socket.
6. The method of claim 1, wherein determining whether to shut off power supply in accordance with the detection of the metering data comprises:
a detection step, after the currently accessed load enters a dormant state, detecting the metering data to obtain a latest detection result;
a judging step of judging whether the latest detection result is smaller than a preset threshold value; if not, returning to the detection step, and if so, cutting off power supply.
7. The method of claim 1, after determining whether to shut off power supply based on the detection of the metering data, further comprising:
and returning a notification message to the client, wherein the notification message is used for notifying the client of the information that the socket successfully cuts off the power supply.
8. A power-off control method of a socket is characterized by comprising the following steps:
determining the charging state of the currently accessed load according to the detection result of the metering data;
and if the currently accessed load is determined to be in a charging saturation state through the detection result, cutting off power supply.
9. The method of claim 8, wherein determining the charging state of the currently connected load according to the detection result of the metering data comprises:
a detection step, detecting the metering data to obtain the latest detection result;
a judging step of judging whether the latest detection result is smaller than a preset threshold value; if not, returning to the detection step, and if so, determining that the currently accessed load is in the charging saturation state.
10. The method of claim 8, further comprising:
and sending alarm prompt information, wherein the alarm prompt information is used for prompting that the currently accessed load is charged.
11. A power-off control device for an outlet, comprising:
the acquisition module is used for acquiring the power-off control information;
the communication module is used for sending a shutdown instruction to the currently accessed load based on the power-off control information so as to enable the currently accessed load to enter a dormant state;
and the power-off module is used for determining whether to cut off power supply according to the detection result of the metering data after the currently accessed load enters the dormant state.
12. A power-off control device for an outlet, comprising:
the determining unit is used for determining the charging state of the currently accessed load according to the detection result of the metering data;
and the power-off unit is used for cutting off power supply if the currently accessed load is determined to be in a charging saturation state through the detection result.
13. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device where the storage medium is located is controlled to execute the power-off control method of the socket according to any one of claims 1 to 10.
14. A processor, characterized in that the processor is configured to execute a program, wherein the program executes the power-off control method of the socket according to any one of claims 1 to 10.
15. A socket, comprising:
the communication component is used for acquiring power-off control information and sending a shutdown instruction, wherein the shutdown instruction is used for triggering a currently accessed load to enter a dormant state;
the metering component is used for acquiring a detection result of metering data after the currently accessed load enters a dormant state;
and the processing component is used for generating the shutdown instruction based on the power-off control information and determining whether to cut off power supply according to the detection result of the metering data.
16. An electric appliance, characterized in that the electric appliance is provided with a power-off control device inside, the power-off control device comprises:
the communication component is used for acquiring power failure control information;
the metering component is used for acquiring a detection result of metering data after the electric appliance enters a dormant state;
and the processing component is used for controlling the electric appliance to enter a dormant state under the triggering of the power-off control information and determining whether to control the electric appliance to enter a shutdown state or not according to the detection result of the metering data.
CN202010191852.9A 2020-03-18 2020-03-18 Power-off control method and device for socket and socket Pending CN113495503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010191852.9A CN113495503A (en) 2020-03-18 2020-03-18 Power-off control method and device for socket and socket

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010191852.9A CN113495503A (en) 2020-03-18 2020-03-18 Power-off control method and device for socket and socket

Publications (1)

Publication Number Publication Date
CN113495503A true CN113495503A (en) 2021-10-12

Family

ID=77993378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010191852.9A Pending CN113495503A (en) 2020-03-18 2020-03-18 Power-off control method and device for socket and socket

Country Status (1)

Country Link
CN (1) CN113495503A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338758A (en) * 2021-12-28 2022-04-12 苏州亿为新能源科技有限公司 Power-off method and device applied to charging scene, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201117987Y (en) * 2007-10-23 2008-09-17 徐一中 Intelligent socket
CN201130780Y (en) * 2007-11-21 2008-10-08 刘诗贵 Intelligent electricity-saving socket
CN101639675A (en) * 2009-07-15 2010-02-03 杨明博 Efficient energy-saving switch circuit
CN102868580A (en) * 2012-08-31 2013-01-09 鸿富锦精密工业(深圳)有限公司 Intelligent switch and intelligent home system applying same
CN103034144A (en) * 2012-12-16 2013-04-10 兰如根 Energy-saving control switch with simple circuit and teeny power consumption
CN203859335U (en) * 2014-04-22 2014-10-01 Tcl集团股份有限公司 Alternating-current power-saving switch control device
CN204012011U (en) * 2014-09-04 2014-12-10 葛荣超 The embedded electric appliance standby automatic power-off socket of a kind of body of wall
CN105282583A (en) * 2014-06-18 2016-01-27 Tcl集团股份有限公司 Intelligent matching system of remote controller and realization method of system
CN105933755A (en) * 2016-07-13 2016-09-07 京东方科技集团股份有限公司 Intelligent control system and control method thereof
CN108075323A (en) * 2017-08-10 2018-05-25 西北工业大学 A kind of air-conditioner standby automatically powers off conversion socket
CN108256854A (en) * 2018-01-31 2018-07-06 徐玉玉 A kind of intelligent socket control system licensed based on mobile payment
CN108683034A (en) * 2018-06-11 2018-10-19 深圳云博智联科技有限公司 Intelligent socket based on LoRa and its control method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201117987Y (en) * 2007-10-23 2008-09-17 徐一中 Intelligent socket
CN201130780Y (en) * 2007-11-21 2008-10-08 刘诗贵 Intelligent electricity-saving socket
CN101639675A (en) * 2009-07-15 2010-02-03 杨明博 Efficient energy-saving switch circuit
CN102868580A (en) * 2012-08-31 2013-01-09 鸿富锦精密工业(深圳)有限公司 Intelligent switch and intelligent home system applying same
CN103034144A (en) * 2012-12-16 2013-04-10 兰如根 Energy-saving control switch with simple circuit and teeny power consumption
CN203859335U (en) * 2014-04-22 2014-10-01 Tcl集团股份有限公司 Alternating-current power-saving switch control device
CN105282583A (en) * 2014-06-18 2016-01-27 Tcl集团股份有限公司 Intelligent matching system of remote controller and realization method of system
CN204012011U (en) * 2014-09-04 2014-12-10 葛荣超 The embedded electric appliance standby automatic power-off socket of a kind of body of wall
CN105933755A (en) * 2016-07-13 2016-09-07 京东方科技集团股份有限公司 Intelligent control system and control method thereof
CN108075323A (en) * 2017-08-10 2018-05-25 西北工业大学 A kind of air-conditioner standby automatically powers off conversion socket
CN108256854A (en) * 2018-01-31 2018-07-06 徐玉玉 A kind of intelligent socket control system licensed based on mobile payment
CN108683034A (en) * 2018-06-11 2018-10-19 深圳云博智联科技有限公司 Intelligent socket based on LoRa and its control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338758A (en) * 2021-12-28 2022-04-12 苏州亿为新能源科技有限公司 Power-off method and device applied to charging scene, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9501134B2 (en) Remotely controllable electrical sockets with plugged appliance detection and identification
CN107302251A (en) A kind of intelligent movable power supplies and the method that usb data communication is carried out with it
CN108899952B (en) Multi-battery charging and discharging device and mobile terminal
TWI440277B (en) Power controller, power controlling device and power saving method for power controlling device
EP2942716A1 (en) Sim card hot-plug guard and sim card on-site shutdown swipe-card method, and terminal
CN110166994B (en) Data time-sharing transmission interoperability method, system, mobile terminal and storage medium
CN104350658A (en) Energy saving and/or safety device
EP2629173A2 (en) Method and system for powering usb device
CN105204601B (en) A kind of system electrification automatic boot circuit and its starting-up method
CN110191215B (en) Terminal and processing method
KR102566099B1 (en) Power supply control method of power strip, device and power strip
CN113495503A (en) Power-off control method and device for socket and socket
WO2015090077A1 (en) Mobile terminal charging control method, device, system, and mobile terminal
CN107863589B (en) Battery processing method and device
CN112910038A (en) Power conversion device and method and electronic equipment
WO2016107604A1 (en) Charging apparatus and charging method
CN107272864B (en) Reset circuit, battery and electronic equipment
JP6916457B1 (en) Information processing systems, control devices, and programs
CN108964156A (en) Charge control method, device and computer readable storage medium
EP2988391B1 (en) Mobile power supply terminal and power supply method therefor
CN107612104B (en) Control method and device for charging of U disk charger
CN108683031B (en) Intelligent plug, control method thereof and patch board with intelligent plug
CN107436854B (en) Method for supplying power to main board of terminal based on CPCI power supply and terminal
CN107548131B (en) Mobile broadband equipment and power saving method thereof
CN116054304B (en) Method, device and tablet computer for determining charging path

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination