CN110568916A - Control method and device for equipment charging, electronic equipment and storage medium - Google Patents

Control method and device for equipment charging, electronic equipment and storage medium Download PDF

Info

Publication number
CN110568916A
CN110568916A CN201910843403.5A CN201910843403A CN110568916A CN 110568916 A CN110568916 A CN 110568916A CN 201910843403 A CN201910843403 A CN 201910843403A CN 110568916 A CN110568916 A CN 110568916A
Authority
CN
China
Prior art keywords
electric quantity
power supply
turning
control instruction
current electric
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
CN201910843403.5A
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.)
Miaozhen Information Technology Co Ltd
Miaozhen Systems Information Technology Co Ltd
Original Assignee
Miaozhen Systems Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Miaozhen Systems Information Technology Co Ltd filed Critical Miaozhen Systems Information Technology Co Ltd
Priority to CN201910843403.5A priority Critical patent/CN110568916A/en
Publication of CN110568916A publication Critical patent/CN110568916A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a method and a device for controlling equipment charging, electronic equipment and a storage medium, and particularly receives current electric quantity sent by a detection module on an equipment terminal; the current electric quantity is obtained by the detection module detecting the equipment terminal according to a preset period; judging the magnitude between the current electric quantity and the historical electric quantity obtained by last detection; when the current electric quantity is larger than the historical electric quantity, comparing the current electric quantity with a preset high electric quantity; when the current electric quantity is greater than or equal to the preset high electric quantity, generating a control instruction for turning off the power supply; and sending a control instruction for turning off the power supply to the power supply end so that the power supply end executes a turning-off action. According to the power supply device, the current electric quantity is automatically detected through the device end, and when the current electric quantity is determined to be larger than or equal to the preset high electric quantity, the generated control instruction for turning off the power supply is sent to the power supply end, so that the power supply end stops supplying power to the device end, and the phenomenon that the service life of a battery of the device end is shortened due to overlong charging time and resources are wasted is avoided.

Description

Control method and device for equipment charging, electronic equipment and storage medium
Technical Field
the present disclosure relates to the field of electronic information, and in particular, to a method and an apparatus for controlling device charging, an electronic device, and a storage medium.
Background
With the development of science and technology, more and more electronic devices are integrated into the life of users, and convenience is brought to the users. Therefore, users gradually rely on electronic devices in life, and expect the power of the electronic devices to be sufficient at all times.
Generally, when a user charges an electronic device, the user often does not pay attention to the charging duration and does not pay attention to the current power of the electronic device, for example, the electronic device is charged before sleeping at night, and the electronic device is powered off after waking up the next day.
However, if the electronic device is continuously charged after the electronic device is saturated, the battery of the electronic device is damaged, and the life of the battery is shortened.
disclosure of Invention
in view of this, an object of the present disclosure is to provide a method and an apparatus for controlling device charging, an electronic device, and a storage medium, which can prevent the device side from continuing to charge after the device side is saturated with electricity, and prevent the battery life from being shortened and resources from being wasted due to an excessively long charging time.
In some embodiments, an embodiment of the present application provides a method for controlling device charging, where the method is applied to a device side, and the method includes:
receiving the current electric quantity sent by a detection module on the equipment terminal; the current electric quantity is obtained by the detection module detecting the equipment terminal according to a preset period;
judging the magnitude between the current electric quantity and the historical electric quantity obtained by last detection;
When the current electric quantity is larger than the historical electric quantity, comparing the current electric quantity with a preset high electric quantity;
when the current electric quantity is greater than or equal to the preset high electric quantity, generating a control instruction for turning off the power supply; and sending the control instruction for turning off the power supply to a power supply end so as to enable the power supply end to execute a turning-off action.
In some embodiments, the method of controlling charging of the device further comprises:
When the current electric quantity is smaller than the historical electric quantity, comparing the current electric quantity with a preset low electric quantity;
when the current electric quantity is less than or equal to the preset low electric quantity, generating a control instruction for turning on a power supply; and sending the control instruction for turning on the power supply to a power supply end so that the power supply end executes a turning-on action.
In some embodiments, before sending the control instruction for turning off the power supply to the power supply terminal, the method further comprises:
The equipment end receives a protocol IP address which is sent by the server and is interconnected between the networks of the power ends; the IP address is acquired when the power supply end is connected to a network;
the sending the control instruction for turning off the power supply to the power supply end comprises:
and sending the control instruction for turning off the power supply to the power supply end according to the IP address.
In some embodiments, after determining the magnitude between the current power amount and the last detected historical power amount, the method further includes:
judging whether the user to which the equipment terminal belongs re-inputs the preset high electric quantity and the preset low electric quantity;
If so, acquiring the preset high electric quantity input again by the user and the preset low electric quantity input again, updating the preset high electric quantity by using the preset high electric quantity input again, and updating the preset low electric quantity by using the preset low electric quantity input again.
in some embodiments, the present application further provides a method for controlling device charging, where the method is applied to a power supply terminal, and the method includes:
receiving a control instruction for turning off a power supply sent by a target application program APP;
And stopping supplying power to the equipment terminal to which the target APP belongs according to the control instruction for turning off the power supply.
in some embodiments, the method of controlling charging of the device further comprises:
the power supply end receives a power supply starting control instruction sent by a target APP;
And starting to supply power to the equipment terminal to which the target APP belongs according to the control instruction for turning off the power supply.
in some embodiments, the present application further provides a device charging control apparatus, where the apparatus charging control apparatus is applied to a device side, and the control apparatus includes:
the receiving module is used for receiving the current electric quantity sent by the detection module on the equipment terminal; the current electric quantity is obtained by the detection module detecting the equipment terminal according to a preset period;
The judging module is used for judging the size between the current electric quantity and the historical electric quantity obtained by last detection;
the first comparison module is used for comparing the current electric quantity with a preset high electric quantity when the current electric quantity is larger than the historical electric quantity;
the first generation module is used for generating a control instruction for turning off the power supply when the current electric quantity is greater than or equal to the preset high electric quantity; and sending the control instruction for turning off the power supply to a power supply end so as to enable the power supply end to execute a turning-off action.
in some embodiments, the present application further provides a device charging control apparatus, where the device charging control apparatus is applied to a power supply terminal, and the apparatus includes:
The first sending module is used for receiving a control instruction for turning off the power supply sent by the target application program APP by a power supply end;
and the stopping module is used for stopping supplying power to the equipment terminal to which the target APP belongs according to the control instruction for turning off the power supply.
in some embodiments, the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine readable instructions when executed by the processor performing steps of a control method such as charging of the device.
In some embodiments, the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores thereon a computer program, and the computer program is executed by a processor to perform the steps of the control method such as charging a device.
the application provides a method and a device for controlling equipment charging, electronic equipment and a storage medium, wherein the control method comprises the following steps: receiving the current electric quantity sent by a detection module on the equipment terminal; the current electric quantity is obtained by the detection module detecting the equipment terminal according to a preset period; judging the magnitude between the current electric quantity and the historical electric quantity obtained by last detection; when the current electric quantity is larger than the historical electric quantity, comparing the current electric quantity with a preset high electric quantity; when the current electric quantity is greater than or equal to the preset high electric quantity, generating a control instruction for turning off the power supply; and sending a control instruction for turning off the power supply to the power supply end so that the power supply end executes a turning-off action. According to the method and the device, the current electric quantity is automatically detected through the device terminal, and when the current electric quantity is determined to be larger than or equal to the preset high electric quantity, the generated control instruction for turning off the power supply is sent to the power supply terminal, so that the power supply terminal executes the turning-off action, namely, the power supply for the device terminal is stopped, the problems that the device terminal still continues to charge after the electric quantity is saturated, the service life of a battery is shortened due to overlong charging time, and resources are wasted are solved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart illustrating a method for controlling charging of a device according to an embodiment of the present disclosure;
Fig. 2 is a flowchart illustrating another control method for charging a device according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating another control method for charging a device according to an embodiment of the present disclosure;
fig. 4 is a flowchart illustrating another control method for charging a device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram illustrating a device charging control apparatus according to an embodiment of the present disclosure;
Fig. 6 is a schematic structural diagram illustrating another apparatus charging control device provided in an embodiment of the present application;
Fig. 7 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
in order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
generally, when a user charges an electronic device, the user often does not pay attention to the charging duration and does not pay attention to the current power of the electronic device, for example, the electronic device is charged before sleeping at night, and the electronic device is powered off after waking up the next day. However, if the electronic device is continuously charged after the electronic device is saturated, the battery of the electronic device is damaged, and the life of the battery is shortened. In view of the foregoing problems, the method and apparatus for controlling device charging, the electronic device, and the storage medium provided in the embodiments of the present application can avoid that the device terminal continues to be charged after the electric quantity is saturated, and the battery life is shortened and resources are wasted due to too long charging time.
For the convenience of understanding the embodiments of the present application, a detailed description will be first given of a control method for charging a device disclosed in the embodiments of the present application.
the control method provided by the embodiment of the application is suitable for various electronic equipment with batteries, such as mobile phones, tablet computers and the like, and the electronic equipment serves as an equipment terminal. The device side is pre-installed with a target Application (APP), and the target APP is used for subsequent calculation.
as shown in fig. 1, a flowchart of a control method for charging a device when a target APP pre-installed on a device side is taken as an execution main body in an embodiment of the present application is shown, and the specific steps are as follows:
s101, receiving current electric quantity sent by a detection module on a device terminal; the current electric quantity is obtained by the detection module detecting the equipment terminal according to a preset period;
S102, judging the size between the current electric quantity and the historical electric quantity obtained by last detection;
s103, comparing the current electric quantity with a preset high electric quantity when the current electric quantity is larger than the historical electric quantity;
S104, generating a control instruction for turning off the power supply when the current electric quantity is greater than or equal to the preset high electric quantity; and sending a control instruction for turning off the power supply to the power supply end so that the power supply end executes a turning-off action.
In specific implementation, the device end is provided with a detection module for detecting the current electric quantity of the device end, such as the electric quantity displayed on a screen and the electric quantity carried when the reminding electric quantity is too low, and the electric quantity is detected by the detection module. The detection module can perform detection in real time or according to a preset period, for example, from the start time, the current electric quantity of the device terminal is detected every five minutes, the current electric quantity of the device terminal is detected every ten minutes, and the like. In consideration of the fact that the detection module consumes the resources and the electric quantity of the equipment terminal when detecting the current electric quantity of the equipment terminal in real time, in order to avoid resource waste and electric quantity waste of the equipment terminal, it is preferable that the detection module is set to detect the equipment terminal according to a preset period.
the detection module broadcasts the detected electric quantity, and the target APP of the equipment end can monitor the broadcast of the detection module, so that the current electric quantity of the equipment end is obtained. Of course, the detection module may also directly send the current electric quantity to the target APP, which is not specifically limited in this embodiment of the application.
Here, after obtaining the current electric quantity of the device side, the target APP determines the current electric quantity and the historical electric quantity obtained by the last detection, wherein the target APP can store the historical electric quantity obtained by the last detection, and can also store the historical electric quantity obtained by each detection, and in addition, a mapping relation can be established between each historical electric quantity in all the historical electric quantities and the corresponding time point, and the mapping relation is stored in a storage module of the device side, and the target APP can be searched from the storage module according to the current time point.
after the current electric quantity and the historical electric quantity obtained by last detection are judged, if the current electric quantity is larger than the historical electric quantity, the equipment terminal is in a charging state. At this time, the target APP compares the current electric quantity with a preset high electric quantity, where the preset high electric quantity may be a default value of the device terminal when the device terminal leaves a factory, or may be set by a user to which the device terminal belongs.
When the current electric quantity is larger than or equal to the preset high electric quantity, namely the current electric quantity of the equipment end reaches a set value of the equipment end or a user, then the target APP generates a control instruction for turning off the power supply and sends the control instruction for turning off the power supply to the power supply end, so that the power supply end executes a turning-off action, namely, the power supply for the equipment end is stopped.
It is worth explaining that, when the device end is connected with the power end for the first time, the historical electric quantity that the device end charges this time does not exist in the power end or the server, therefore, after the device end is connected with the power end for the first time, the target APP directly compares the current electric quantity detected by the detection module with the preset high electric quantity, and the user is prevented from still connecting the device end with the power end when the electric quantity of the device end is in a saturated state, so that the service life of the battery is shortened, and the resources are wasted.
according to the embodiment of the application, the current electric quantity is automatically detected through the equipment terminal, and when the current electric quantity is determined to be larger than or equal to the preset high electric quantity, the generated control instruction for turning off the power supply is sent to the power supply terminal, so that the power supply terminal executes the turning-off action, namely, the power supply for the equipment terminal is stopped, and the problems that the equipment terminal continues to be charged after the electric quantity is saturated, the service life of a battery is shortened due to overlong charging time, and resources are wasted are solved.
as shown in fig. 2, it is a flowchart of a method when the current electric quantity is smaller than the historical electric quantity after determining the magnitude between the current electric quantity and the historical electric quantity obtained by the last detection, wherein the specific steps are as follows:
S201, comparing the current electric quantity with a preset low electric quantity when the current electric quantity is smaller than the historical electric quantity;
S202, when the current electric quantity is less than or equal to the preset low electric quantity, generating a control instruction for turning on the power supply; and sending a control instruction for turning on the power supply to the power supply end so that the power supply end executes the turning-on action.
in specific implementation, when the current electric quantity is less than the historical electric quantity, that is, the device terminal is in a power consumption state, at this time, the target APP compares the current electric quantity with a preset low electric quantity, where the preset high electric quantity may be a default value when the device terminal leaves a factory, or may be set by a user to which the device terminal belongs.
When the current electric quantity is smaller than or equal to the preset low electric quantity, namely the current electric quantity of the equipment end reaches the set value of the equipment end or the user, then the target APP generates a control instruction for starting the power supply and sends the control instruction for starting the power supply to the power supply end, so that the power supply end executes the starting action, namely, the power supply is started for the equipment end, and the use requirement of the user can be met by the current electric quantity of the equipment end.
before sending the control instruction of turning off the power to the power source end, the power source end may access the currently searched network in advance and acquire an Internet Protocol (IP) address of interconnection between the networks, wherein the IP address of the power source end is dynamically variable. For example, the IP address acquired when the power source end accesses the network for the first time is different from the IP address acquired when the power source end accesses the network for the second time; the IP addresses acquired when the power end is connected to different networks are different. And after the power supply end acquires the IP address, the IP address is sent to the server, and the server sends the IP address of the power supply end to the equipment end.
and after receiving the IP address of the power supply end sent by the server, the equipment end sends a control instruction for turning off the power supply to the power supply end according to the IP address.
It should be noted that the device side and the power source side are in the same network environment, and if there are other device sides in the network environment, the server may send the IP address of the power source side to each device side.
in specific implementation, the device side may change the preset high power and the preset low power through the target APP, for example, when the user expects that the current power of the device side is less than or equal to 25%, the device side starts to be charged, and then the preset low power may be set to 25%. Certainly, the requirements of each user are different, and the requirements of the same user under different conditions are not completely the same, so that the user can change the preset high electric quantity and the preset low electric quantity set in the target APP at any time, and after the current electric quantity and the historical electric quantity obtained by last detection are judged, whether the user to which the equipment end belongs re-inputs the preset high electric quantity and the preset low electric quantity is judged; if so, acquiring the preset high electric quantity and the preset low electric quantity input again by the user, updating the preset high electric quantity by using the preset high electric quantity input again, and updating the preset low electric quantity by using the preset low electric quantity input again.
the method provided by the embodiment of the application can update the preset high electric quantity and the preset low electric quantity in real time according to the requirements of the user, so that the electric quantity requirement of the user on the equipment end is met, the problem that the service life of the battery is shortened due to the fact that the equipment end is in a charging state for a long time, the problem that the personal and property safety is endangered by battery explosion can be avoided, and the safety of the equipment end is ensured.
As shown in fig. 3, a flowchart of a method for controlling device charging when a power source terminal is used as an execution main body according to an embodiment of the present application includes the following specific steps:
s301, receiving a control instruction for turning off a power supply sent by a target application program APP;
and S302, stopping supplying power to the equipment terminal to which the target APP belongs according to the control instruction for turning off the power supply.
in specific implementation, after the power source end accesses the network and sends the IP address generated by the power source end to the device end, the power source end receives the control instruction sent by the device end in real time.
When the power end receives the control command of the power off that target APP sent, the control relay breaks off, and then reaches the purpose that stops to carry out the power supply to the equipment end that target APP belongs to, prevents the battery of equipment end because the problem that the battery life that is in the charged state for a long time and leads to shortens to and cause the problem that the battery explosion endangers personal and property safety, ensured the safety of equipment end.
as shown in fig. 4, a flowchart of a control method for charging a device when a power supply end receives a control instruction for turning on a power supply sent by a target APP, includes the following specific steps:
S401, a power supply end receives a power supply starting control instruction sent by a target APP;
And S402, starting to supply power to the equipment terminal to which the target APP belongs according to the control instruction for turning off the power supply.
When the power end receives the control instruction of the power supply that opens that target APP sent, control relay closes, and then reaches the purpose that begins to supply power to the equipment end that target APP belongs to, ensures that the electric quantity of equipment end is sufficient.
Based on the same inventive concept, the embodiment of the present application further provides a device charging control apparatus corresponding to the device charging control method, and since the principle of the apparatus in the embodiment of the present application for solving the problem is similar to that of the device charging control method in the embodiment of the present application, the implementation of the apparatus may refer to the implementation of the method, and repeated details are omitted.
referring to fig. 5, a control apparatus for charging a device according to another embodiment of the present application includes:
A receiving module 501, configured to receive the current electric quantity sent by the detection module on the device side; the current electric quantity is obtained by the detection module detecting the equipment terminal according to a preset period;
a judging module 502, configured to judge a magnitude between the current electric quantity and a historical electric quantity obtained by last detection;
A first comparison module 503, configured to compare the current electric quantity with a preset high electric quantity when the current electric quantity is greater than the historical electric quantity;
a first generating module 504, configured to generate a control instruction for turning off a power supply when the current power amount is greater than or equal to the preset high power amount; and sending the control instruction for turning off the power supply to a power supply end so as to enable the power supply end to execute a turning-off action.
In one embodiment, the control device for charging the device further includes:
a second comparison module 505, configured to compare the current power amount with a preset low power amount when the current power amount is smaller than the historical power amount;
A second generating module 506, configured to generate a control instruction for turning on a power supply when the current electric quantity is less than or equal to the preset low electric quantity; and sending the control instruction for turning on the power supply to a power supply end so that the power supply end executes a turning-on action.
in another embodiment, the apparatus for controlling charging of the device further includes:
An IP address receiving module 507, configured to receive a protocol IP address sent by a server and interconnected between networks at the power end; the IP address is acquired when the power supply end is connected to a network;
the first generating module 504 is further configured to send the control instruction for turning off the power supply to the power supply terminal according to the IP address.
in another embodiment, the apparatus for controlling charging of a device further includes:
An update module 508, configured to determine whether a user to which the device belongs re-inputs the preset high power amount and the preset low power amount;
if so, acquiring the preset high electric quantity input again by the user and the preset low electric quantity input again, updating the preset high electric quantity by using the preset high electric quantity input again, and updating the preset low electric quantity by using the preset low electric quantity input again.
based on the same inventive concept, the embodiment of the present application further provides a device charging control apparatus corresponding to the device charging control method, and since the principle of the apparatus in the embodiment of the present application for solving the problem is similar to that of the device charging control method in the embodiment of the present application, the implementation of the apparatus may refer to the implementation of the method, and repeated details are omitted.
referring to fig. 6, a control apparatus for charging a device according to another embodiment of the present application includes:
a first sending module 601, configured to receive, by a power supply end, a control instruction for turning off a power supply sent by a target application APP;
A stopping module 602, configured to stop, according to the control instruction for turning off the power supply, power supply to the device side to which the target APP belongs.
In another embodiment, the apparatus for controlling charging of a device further includes:
A second sending module 603, configured to receive, by a power supply end, a power-on control instruction sent by a target APP;
a starting module 604, configured to start to supply power to the device side to which the target APP belongs according to the control instruction for turning off the power supply.
Fig. 7 illustrates a structure of an electronic device 700 according to an embodiment of the present invention, where the electronic device 700 includes: at least one processor 701, at least one network interface 704 or other user interface 703, memory 705, at least one communication bus 702. A communication bus 702 is used to enable connective communication between these components. The electronic device 700 optionally contains a user interface 703 including a display (e.g., touchscreen, LCD, CRT, Holographic (Holographic) or projection (Projector), etc.), a keyboard or a pointing device (e.g., mouse, trackball (trackball), touch pad or touchscreen, etc.).
Memory 705 may include both read-only memory and random access memory, and provides instructions and data to processor 701. A portion of the memory 705 may also include non-volatile random access memory (NVRAM).
In some embodiments, memory 705 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
An operating system 7051, which contains various system programs for implementing various basic services and for processing hardware-based tasks;
The application module 7052 contains various applications, such as a desktop (launcher), a Media Player (Media Player), a Browser (Browser), etc., for implementing various application services.
in an embodiment of the present invention, the processor 701 is configured to, by calling a program or instructions stored in the memory 705:
receiving the current electric quantity sent by a detection module on the equipment terminal; the current electric quantity is obtained by the detection module detecting the equipment terminal according to a preset period;
Judging the magnitude between the current electric quantity and the historical electric quantity obtained by last detection;
When the current electric quantity is larger than the historical electric quantity, comparing the current electric quantity with a preset high electric quantity;
When the current electric quantity is greater than or equal to the preset high electric quantity, generating a control instruction for turning off the power supply; and sending the control instruction for turning off the power supply to a power supply end so as to enable the power supply end to execute a turning-off action.
Optionally, in the method executed by the processor 701, when the current electric quantity is smaller than the historical electric quantity, comparing the current electric quantity with a preset low electric quantity;
When the current electric quantity is less than or equal to the preset low electric quantity, generating a control instruction for turning on a power supply; and sending the control instruction for turning on the power supply to a power supply end so that the power supply end executes a turning-on action.
optionally, the method executed by the processor 701, before sending the control instruction for turning off the power supply to the power supply terminal, further includes:
The equipment end receives a protocol IP address which is sent by the server and is interconnected between the networks of the power ends; the IP address is acquired when the power supply end is connected to a network;
the sending the control instruction for turning off the power supply to the power supply end comprises:
And sending the control instruction for turning off the power supply to the power supply end according to the IP address.
optionally, the method executed by the processor 701, after determining a size between the current power amount and a last detected historical power amount, further includes:
judging whether the user to which the equipment terminal belongs re-inputs the preset high electric quantity and the preset low electric quantity;
If so, acquiring the preset high electric quantity input again by the user and the preset low electric quantity input again, updating the preset high electric quantity by using the preset high electric quantity input again, and updating the preset low electric quantity by using the preset low electric quantity input again.
optionally, in the method executed by the processor 701, a control instruction for turning off the power supply sent by the target application APP is received;
and stopping supplying power to the equipment terminal to which the target APP belongs according to the control instruction for turning off the power supply.
optionally, in the method executed by the processor 701, the power supply end receives a control instruction for turning on the power supply sent by the target APP;
And starting to supply power to the equipment terminal to which the target APP belongs according to the control instruction for turning off the power supply.
The computer program product of the device charging control method and apparatus provided in the embodiments of the present application includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and is not described herein again.
Specifically, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, and the like, and when a computer program on the storage medium is executed, the control method for charging the device can be executed, so that it can be avoided that the device continues to be charged after the power is saturated, and the battery life is shortened and resources are wasted due to an excessively long charging time.
the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including 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: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A control method for charging equipment is applied to an equipment side, and comprises the following steps:
Receiving the current electric quantity sent by a detection module on the equipment terminal; the current electric quantity is obtained by the detection module detecting the equipment terminal according to a preset period;
judging the magnitude between the current electric quantity and the historical electric quantity obtained by last detection;
when the current electric quantity is larger than the historical electric quantity, comparing the current electric quantity with a preset high electric quantity;
when the current electric quantity is greater than or equal to the preset high electric quantity, generating a control instruction for turning off the power supply; and sending the control instruction for turning off the power supply to a power supply end so as to enable the power supply end to execute a turning-off action.
2. the control method according to claim 1, characterized by further comprising:
when the current electric quantity is smaller than the historical electric quantity, comparing the current electric quantity with a preset low electric quantity;
When the current electric quantity is less than or equal to the preset low electric quantity, generating a control instruction for turning on a power supply; and sending the control instruction for turning on the power supply to a power supply end so that the power supply end executes a turning-on action.
3. The control method according to claim 1, before sending the control instruction to turn off the power supply to the power supply terminal, further comprising:
The equipment end receives a protocol IP address which is sent by the server and is interconnected between the networks of the power ends; the IP address is acquired when the power supply end is connected to a network;
the sending the control instruction for turning off the power supply to the power supply end comprises:
and sending the control instruction for turning off the power supply to the power supply end according to the IP address.
4. the control method according to claim 2, further comprising, after determining a magnitude between the current amount of power and a last detected historical amount of power:
judging whether the user to which the equipment terminal belongs re-inputs the preset high electric quantity and the preset low electric quantity;
if so, acquiring the preset high electric quantity input again by the user and the preset low electric quantity input again, updating the preset high electric quantity by using the preset high electric quantity input again, and updating the preset low electric quantity by using the preset low electric quantity input again.
5. A control method for charging a device, applied to a power supply terminal, the control method comprising:
receiving a control instruction for turning off a power supply sent by a target application program APP;
and stopping supplying power to the equipment terminal to which the target APP belongs according to the control instruction for turning off the power supply.
6. the control method according to claim 5, characterized by further comprising:
The power supply end receives a power supply starting control instruction sent by a target APP;
And starting to supply power to the equipment terminal to which the target APP belongs according to the control instruction for turning off the power supply.
7. A control device for charging equipment is applied to an equipment end, and comprises:
the receiving module is used for receiving the current electric quantity sent by the detection module on the equipment terminal; the current electric quantity is obtained by the detection module detecting the equipment terminal according to a preset period;
the judging module is used for judging the size between the current electric quantity and the historical electric quantity obtained by last detection;
The first comparison module is used for comparing the current electric quantity with a preset high electric quantity when the current electric quantity is larger than the historical electric quantity;
the first generation module is used for generating a control instruction for turning off the power supply when the current electric quantity is greater than or equal to the preset high electric quantity; and sending the control instruction for turning off the power supply to a power supply end so as to enable the power supply end to execute a turning-off action.
8. A control apparatus for charging a device, applied to a power source terminal, the control apparatus comprising:
the first sending module is used for receiving a control instruction for turning off the power supply sent by the target application program APP by a power supply end;
and the stopping module is used for stopping supplying power to the equipment terminal to which the target APP belongs according to the control instruction for turning off the power supply.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the method of controlling charging of a device according to any one of claims 1 to 6.
10. a computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, performs the steps of the method of controlling charging of a device according to any one of claims 1 to 6.
CN201910843403.5A 2019-09-06 2019-09-06 Control method and device for equipment charging, electronic equipment and storage medium Pending CN110568916A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910843403.5A CN110568916A (en) 2019-09-06 2019-09-06 Control method and device for equipment charging, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910843403.5A CN110568916A (en) 2019-09-06 2019-09-06 Control method and device for equipment charging, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110568916A true CN110568916A (en) 2019-12-13

Family

ID=68778301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910843403.5A Pending CN110568916A (en) 2019-09-06 2019-09-06 Control method and device for equipment charging, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110568916A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600355A (en) * 2020-06-04 2020-08-28 西安易朴通讯技术有限公司 Charging control method, device and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103326432A (en) * 2013-06-20 2013-09-25 广东欧珀移动通信有限公司 Battery charging control method and system of electronic equipment
CN103700900A (en) * 2013-12-19 2014-04-02 贝壳网际(北京)安全技术有限公司 Charge control method, device and system for mobile terminal and mobile terminal
CN106211288A (en) * 2016-07-15 2016-12-07 乐视控股(北京)有限公司 Power control method and device and mobile terminal
CN106364429A (en) * 2016-09-07 2017-02-01 纳恩博(北京)科技有限公司 Charging control method, device and system
CN106951145A (en) * 2017-03-28 2017-07-14 广东欧珀移动通信有限公司 Electricity based reminding method and mobile terminal during charging
CN107733029A (en) * 2017-10-31 2018-02-23 天长市平康电子科技有限公司 A kind of intelligent charger circuit breaking controlling method
US20180159342A1 (en) * 2016-12-02 2018-06-07 Hon Hai Precision Industry Co., Ltd. Electronic device and method for controlling battery of the electronic device to charge and discharge
CN109547951A (en) * 2018-11-28 2019-03-29 深圳市南和移动通信科技股份有限公司 A kind of charge prompting method, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103326432A (en) * 2013-06-20 2013-09-25 广东欧珀移动通信有限公司 Battery charging control method and system of electronic equipment
CN103700900A (en) * 2013-12-19 2014-04-02 贝壳网际(北京)安全技术有限公司 Charge control method, device and system for mobile terminal and mobile terminal
CN106211288A (en) * 2016-07-15 2016-12-07 乐视控股(北京)有限公司 Power control method and device and mobile terminal
CN106364429A (en) * 2016-09-07 2017-02-01 纳恩博(北京)科技有限公司 Charging control method, device and system
US20180159342A1 (en) * 2016-12-02 2018-06-07 Hon Hai Precision Industry Co., Ltd. Electronic device and method for controlling battery of the electronic device to charge and discharge
CN106951145A (en) * 2017-03-28 2017-07-14 广东欧珀移动通信有限公司 Electricity based reminding method and mobile terminal during charging
CN107733029A (en) * 2017-10-31 2018-02-23 天长市平康电子科技有限公司 A kind of intelligent charger circuit breaking controlling method
CN109547951A (en) * 2018-11-28 2019-03-29 深圳市南和移动通信科技股份有限公司 A kind of charge prompting method, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600355A (en) * 2020-06-04 2020-08-28 西安易朴通讯技术有限公司 Charging control method, device and equipment
CN111600355B (en) * 2020-06-04 2021-09-28 西安易朴通讯技术有限公司 Charging control method, device and equipment

Similar Documents

Publication Publication Date Title
EP3761621A1 (en) Terminal control method and apparatus, and terminal
JP5961767B2 (en) Method for adjusting shutdown threshold voltage, startup method, and electronic devices thereof
TW200419334A (en) System and method for preserving state data of a personal computer in a standby state in the event of an AC power failure
CN103631359A (en) Information processing method and electronic equipment
CN103781057A (en) Method and device for silently downloading upgrade package
US20190026115A1 (en) Method and device for low power power-on processing
CN109634659A (en) Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled
CN110568916A (en) Control method and device for equipment charging, electronic equipment and storage medium
CN107231386B (en) Application state conversion method and device and mobile terminal
KR102125507B1 (en) Method for charging battery and an electronic device thereof
CN107436410A (en) A kind of electric quantity controlling method, device, equipment and storage medium
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
US9570922B2 (en) Charging method and electronic device
CN106791170B (en) Network processing method, device and terminal
CN104778058A (en) Application program update method and application program update system
CN111176958A (en) Information monitoring method, system and storage medium
CN114069803B (en) Portable emergency energy storage power supply detection method, device, equipment and storage medium
CN105022665A (en) Control method for locking long-term unused app for Android and system of control method
JP5614347B2 (en) Information processing apparatus, power control method, and power control program
CN104778059A (en) Application program update method and application program update system
TW201441930A (en) Computer apparatus and reboot method thereof
CN111176746A (en) Data configuration method, device and system, electronic equipment and storage medium thereof
CN113590141A (en) Method, apparatus, medium, and program product for distributing cloud phone
CN108228279B (en) BIOS operation method and electronic equipment
CN115220803A (en) Data processing method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191213