CN112688389A - Charging control method and device for equipment, storage medium and electronic device - Google Patents

Charging control method and device for equipment, storage medium and electronic device Download PDF

Info

Publication number
CN112688389A
CN112688389A CN202011517963.0A CN202011517963A CN112688389A CN 112688389 A CN112688389 A CN 112688389A CN 202011517963 A CN202011517963 A CN 202011517963A CN 112688389 A CN112688389 A CN 112688389A
Authority
CN
China
Prior art keywords
intelligent terminal
electric quantity
power consumption
consumption rate
endurance time
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.)
Withdrawn
Application number
CN202011517963.0A
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011517963.0A priority Critical patent/CN112688389A/en
Publication of CN112688389A publication Critical patent/CN112688389A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The application discloses a charging control method and device of equipment, a storage medium and an electronic device. Wherein, the method comprises the following steps: acquiring a first endurance time which can be provided by the electric quantity of an intelligent terminal and a second endurance time which can be provided by the electric quantity of external equipment of the intelligent terminal, wherein the external equipment is equipment capable of charging the intelligent terminal; controlling the charging state of the external equipment according to the first endurance time and the second endurance time, and if the first endurance time is greater than or equal to the second endurance time, controlling the external equipment not to charge the intelligent terminal; and under the condition that the first endurance time is less than the second endurance time, the external equipment is controlled to charge the intelligent terminal, so that the technical problem that the endurance of the external equipment is short in the related technology can be solved.

Description

Charging control method and device for equipment, storage medium and electronic device
Technical Field
The present disclosure relates to the field of charging, and in particular, to a method and an apparatus for controlling charging of a device, a storage medium, and an electronic apparatus.
Background
The scanning micro-device is an external device which is cooperated with the smart phone to complete related data acquisition and processing work, has the function of supplementing the smart phone with electric quantity, and can greatly increase the working time of the smart phone while providing the functions of scanning the two-dimensional code and the bar code at high speed for the smart phone.
Due to the mode of combining with the mobile phone and the data communication mode, the external scanning equipment is continuously connected with the mobile phone and cannot be disconnected. Otherwise, the external device can be caused to continuously charge the mobile phone.
The current technology can only detect the real-time electric quantity of the external equipment, low-electric-quantity early warning is carried out through a power indicator lamp, the external equipment cannot be intelligently controlled to supplement the electric quantity to the smart phone, and the electric quantity of the smart phone and the electric quantity of the external equipment cannot be controlled in a balanced mode. The mobile phone still has sufficient electric quantity, and the scanning device continuously supplements the mobile phone with excessive electric quantity and insufficient electric quantity, so that the device can not be normally used, and the work can not be normally carried out. The cooperative work time of the equipment and the mobile phone is too short or the maximum cooperative work time of the equipment and the mobile phone is not exerted.
Aiming at the problem that the endurance of the external equipment is short in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the application provides a charging control method and device of equipment, a storage medium and an electronic device, and aims to at least solve the technical problem that the endurance of external equipment is short in the related art.
According to an aspect of an embodiment of the present application, there is provided a charging control method of a device, including: acquiring a first endurance time which can be provided by the electric quantity of an intelligent terminal and a second endurance time which can be provided by the electric quantity of external equipment of the intelligent terminal, wherein the external equipment is equipment capable of charging the intelligent terminal; and controlling the charging state of the external equipment according to the first endurance time and the second endurance time.
Optionally, when a first endurance time that the electric quantity of the intelligent terminal can provide is obtained, a first electric quantity and a first power consumption rate are obtained, wherein the first electric quantity is the electric quantity of the intelligent terminal, and the first power consumption rate is the power consumption rate of the intelligent terminal; and taking the ratio of the first electric quantity to the first power consumption rate as the first endurance time.
Optionally, when the first power consumption rate is obtained, obtaining the power consumption rate of hardware of the intelligent terminal and the power consumption rate of software running on the intelligent terminal; and taking the sum of the power consumption rate of the hardware and the power consumption rate of the software as the first power consumption rate.
Optionally, when a second endurance time that can be provided by the electric quantity of the external device of the intelligent terminal is obtained, a second electric quantity and a second power consumption rate are obtained, wherein the second electric quantity is the electric quantity of the external device of the intelligent terminal, and the second power consumption rate is the power consumption rate of the external device; and taking the ratio of the second electric quantity to the second power consumption rate as the second endurance time.
Optionally, when the charging state of the external device is controlled according to the first endurance time and the second endurance time, controlling the external device not to charge the intelligent terminal under the condition that the first endurance time is greater than or equal to the second endurance time; and under the condition that the first endurance time is less than the second endurance time, controlling the external equipment to charge the intelligent terminal.
Optionally, after the charging state of the external device is controlled according to the first duration and the second duration, and when the interval time reaches a target duration, the charging state of the external device is controlled according to the re-detected duration of the intelligent terminal and the duration of the external device.
Optionally, before controlling the charging state of the external device according to the re-detected endurance time of the intelligent terminal and the endurance time of the external device, obtaining a product between the power consumption rate of the intelligent terminal and a preset coefficient; and taking the ratio of the current electric quantity of the intelligent terminal to the product as the target duration.
According to another aspect of the embodiments of the present application, there is also provided a charge control apparatus for a device, including: the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a first duration which can be provided by the electric quantity of an intelligent terminal and a second duration which can be provided by the electric quantity of external equipment of the intelligent terminal, and the external equipment is equipment capable of charging the intelligent terminal; and the control unit is used for controlling the charging state of the external equipment according to the first endurance time and the second endurance time.
Optionally, the obtaining unit is further configured to obtain a first electric quantity and a first power consumption rate when obtaining a first endurance time that can be provided by the electric quantity of the intelligent terminal, where the first electric quantity is the electric quantity of the intelligent terminal, and the first power consumption rate is the power consumption rate of the intelligent terminal; and taking the ratio of the first electric quantity to the first power consumption rate as the first endurance time.
Optionally, the obtaining unit is further configured to obtain a power consumption rate of hardware of the intelligent terminal and a power consumption rate of software running on the intelligent terminal when obtaining the first power consumption rate; and taking the sum of the power consumption rate of the hardware and the power consumption rate of the software as the first power consumption rate.
Optionally, the obtaining unit is further configured to obtain a second electric quantity and a second power consumption rate when obtaining a second continuous flight time that can be provided by the electric quantity of the external device of the intelligent terminal, where the second electric quantity is the electric quantity of the external device of the intelligent terminal, and the second power consumption rate is the power consumption rate of the external device; and taking the ratio of the second electric quantity to the second power consumption rate as the second endurance time.
Optionally, the control unit is further configured to, when controlling the charging state of the external device according to the first duration and the second duration, control the external device not to charge the intelligent terminal when the first duration is greater than or equal to the second duration; and under the condition that the first endurance time is less than the second endurance time, controlling the external equipment to charge the intelligent terminal.
Optionally, the control unit is further configured to, after controlling the charging state of the external device according to the first duration and the second duration, control the charging state of the external device according to the duration of the smart terminal and the duration of the external device, which are detected again, when the interval time reaches a target duration.
Optionally, the control unit is further configured to obtain a product between a power consumption rate of the intelligent terminal and a preset coefficient before controlling the charging state of the external device according to the re-detected duration of the intelligent terminal and the duration of the external device; and taking the ratio of the current electric quantity of the intelligent terminal to the product as the target duration.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program which, when executed, performs the above-described method.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above method through the computer program.
In the embodiment of the application, a first endurance time which can be provided by electric quantity of an intelligent terminal and a second endurance time which can be provided by electric quantity of external equipment of the intelligent terminal are obtained, wherein the external equipment is equipment capable of charging the intelligent terminal; controlling the charging state of the external equipment according to the first endurance time and the second endurance time, and if the first endurance time is greater than or equal to the second endurance time, controlling the external equipment not to charge the intelligent terminal; and under the condition that the first endurance time is less than the second endurance time, the external equipment is controlled to charge the intelligent terminal, so that the technical problem that the endurance of the external equipment is short in the related technology can be solved.
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 flow chart of an alternative method of controlling charging of a device according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an alternative device charge control scheme according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a charge control device of an alternative apparatus according to an embodiment of the present application;
and
fig. 4 is a block diagram of a 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.
When the scanning device supplements the electric quantity for the smart phone, the electric quantity of the scanning device can only be detected, the actual condition of the electric quantity consumed by the mobile phone cannot be monitored, and the electric quantity data and the electric consumption data of the mobile phone and the scanning device cannot be determined. The device cannot be intelligently controlled to charge the mobile phone, so that the mobile phone still has sufficient electric quantity, and the device continuously supplements the mobile phone with excessive electric quantity and insufficient electric quantity, so that the device cannot be normally used; the electric quantity of the mobile phone and the equipment cannot be controlled in a balanced manner, so that the cooperative working time of the equipment and the mobile phone is too short or the longest cooperative working time of the equipment and the mobile phone is not exerted, and the utilization rate of a battery of the scanning micro-equipment is low.
In order to overcome the above problems, according to an aspect of embodiments of the present application, an embodiment of a charging control method of a device is provided. Fig. 1 is a flowchart of an alternative charging control method for a device according to an embodiment of the present application, and as shown in fig. 1, the method may include the following steps:
step S1, acquiring a first duration that can be provided by electric quantity of the intelligent terminal and a second duration that can be provided by electric quantity of external equipment of the intelligent terminal, wherein the external equipment is equipment capable of charging the intelligent terminal, and the external equipment is scanning equipment, printing equipment and the like.
Optionally, when a first endurance time that the electric quantity of the intelligent terminal can provide is obtained, a first electric quantity and a first power consumption rate are obtained, wherein the first electric quantity is the electric quantity of the intelligent terminal, and the first power consumption rate is the power consumption rate of the intelligent terminal; and taking the ratio of the first electric quantity to the first power consumption rate as the first endurance time.
Optionally, when the first power consumption rate is obtained, obtaining the power consumption rate of hardware of the intelligent terminal and the power consumption rate of software running on the intelligent terminal; and taking the sum of the power consumption rate of the hardware and the power consumption rate of the software as the first power consumption rate.
Optionally, when a second endurance time that can be provided by the electric quantity of the external device of the intelligent terminal is obtained, a second electric quantity and a second power consumption rate are obtained, wherein the second electric quantity is the electric quantity of the external device of the intelligent terminal, and the second power consumption rate is the power consumption rate of the external device; and taking the ratio of the second electric quantity to the second power consumption rate as the second endurance time.
And step S2, controlling the charging state of the external equipment according to the first endurance time and the second endurance time.
Optionally, when the charging state of the external device is controlled according to the first endurance time and the second endurance time, controlling the external device not to charge the intelligent terminal under the condition that the first endurance time is greater than or equal to the second endurance time; and under the condition that the first endurance time is less than the second endurance time, controlling the external equipment to charge the intelligent terminal.
Optionally, after the charging state of the external device is controlled according to the first duration and the second duration, and when the interval time reaches a target duration, the charging state of the external device is controlled according to the re-detected duration of the intelligent terminal and the duration of the external device.
Optionally, before controlling the charging state of the external device according to the re-detected endurance time of the intelligent terminal and the endurance time of the external device, obtaining a product between the power consumption rate of the intelligent terminal and a preset coefficient; and taking the ratio of the current electric quantity of the intelligent terminal to the product as the target duration.
Through the steps, a first endurance time which can be provided by the electric quantity of the intelligent terminal and a second endurance time which can be provided by the electric quantity of external equipment of the intelligent terminal are obtained, wherein the external equipment is equipment capable of charging the intelligent terminal; controlling the charging state of the external equipment according to the first endurance time and the second endurance time, and if the first endurance time is greater than or equal to the second endurance time, controlling the external equipment not to charge the intelligent terminal; and under the condition that the first endurance time is less than the second endurance time, the external equipment is controlled to charge the intelligent terminal, so that the technical problem that the endurance of the external equipment is short in the related technology can be solved.
The invention provides a maximization scheme for battery use based on scanning micro-equipment, which predicts the electric quantity consumption rate of a mobile phone through an API (application programming interface) provided by a mobile phone system, the collection of electric consumption data of the mobile phone system and a software and hardware module and a prediction algorithm; and reading the electric quantity data of the scanning equipment. According to the current electric quantity data and the current electric consumption data of the current mobile phone, scanning the current electric quantity data of the micro equipment and the predicted value of the electric quantity consumption rate of the mobile phone, determining whether the current equipment needs to supplement electric energy to the mobile phone, realizing intelligent control of the equipment on the mobile phone recharging amount, balancing the electric quantities of the mobile phone and the scanning equipment, and avoiding the situation that the equipment continuously supplements the electric quantity to the mobile phone to cause the shortage of the electric quantity. The utilization rate of the electric energy of the battery of the equipment is exerted to the maximum extent, the highest effective duration of the cooperative work of the equipment and the mobile phone is realized, and therefore the use maximization of the battery of the scanning micro-equipment is realized. As an alternative example, as shown in fig. 2, the following further details the technical solution of the present application with reference to specific embodiments.
The invention relates to a battery use maximization algorithm based on scanning micro-equipment. And acquiring the power consumption data of the mobile phone through an API (application program interface) provided by a mobile phone system, and estimating the power consumption rate of the mobile phone through a prediction algorithm. The method is characterized by combining the current electric quantity data of the current mobile phone existing electric quantity data scanning micro-device, calculating whether the current device needs to supplement the electric energy to the mobile phone so as to maximize the use of the scanning micro-device battery, and comprising the following specific implementation steps:
when the mobile phone is connected with the scanning device for the first time, the current electric quantity of the mobile phone and the current electric quantity of the scanning device are measured, and two electric quantity initial values are obtained. And acquiring the data of the power consumption and the electric quantity of the current background application software and hardware module of the mobile phone through a power consumption statistical API provided by a mobile phone system, and estimating the consumption rate of the current electric quantity of the mobile phone.
The power consumption rate of the equipment is divided into two conditions of only using a scanning function, namely the non-discharging rate of the mobile phone, using the scanning function and the discharging function of the mobile phone, and errors are ignored, and the power consumption rate of the scanning equipment is divided into two conditions of charging the mobile phone and not charging the mobile phone, and is an ideal fixed value.
At this time, four values and the charging and discharging state of the current device to the mobile phone are obtained, and the initial state is no discharging. The method is substituted into a simple estimation formula, and whether the mobile phone needs to be charged or discharged currently can be calculated. The formula is roughly: firstly, according to the charging and discharging states of the scanning equipment to the mobile phone, the power consumption rate of the equipment is determined to be a mobile phone charging rate value or a mobile phone non-charging rate value, and after the determination, the power consumption rate can be directly substituted into a formula for calculation. Namely the formula is: the service life of the current electric quantity of the mobile phone and the scanning equipment can be obtained according to the formula, the service life of the current electric quantity of the mobile phone and the scanning equipment can be increased by corresponding time length for reducing errors and improving the sensitivity of a prediction algorithm, then the service life of the mobile phone plus the time length for reducing the errors is compared with the service life of the scanning equipment, and if the service life of the mobile phone plus the time length for adding the errors is less than the service life of the scanning equipment, the mobile phone is charged; otherwise, the scanning device does not charge the mobile phone.
The real-time control function is realized by detecting the electric quantity and the power consumption rate of the mobile phone and monitoring the electric quantity of the mobile phone and the scanning equipment in a polling mode with time intervals. The time interval in the mode of intermittently monitoring the electric quantity data is intelligently calculated according to the actual situation, and the specific change mode is that the interval time is longer when the electric quantity is sufficient, and the detection time interval is shorter when the electric quantity is slightly lower. The calculation formula is simply described as: the time interval is the current electric quantity of the mobile phone/(the current power consumption rate of the mobile phone), wherein the coefficient is determined according to the magnitude of the time unit.
According to the scheme, based on a battery use maximization scheme of the scanning micro-device, the power consumption data of the mobile phone is obtained, the power consumption rate of the mobile phone is predicted through a prediction algorithm, and whether the current device needs to supplement the power for the mobile phone is calculated by combining the current power data of the mobile phone and the current power data of the scanning micro-device, so that the utilization rate of the power is exerted to the maximum extent, the maximum effective time of cooperative work of the device and the mobile phone is realized, and the battery use maximization of the scanning micro-device is realized.
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.
According to another aspect of the embodiments of the present application, there is also provided a charging control apparatus for a device that implements the charging control method for the device described above. Fig. 3 is a schematic diagram of a charging control apparatus of an alternative device according to an embodiment of the present application, and as shown in fig. 3, the apparatus may include:
the acquiring unit 31 is configured to acquire a first duration that can be provided by electric quantity of an intelligent terminal and a second duration that can be provided by electric quantity of an external device of the intelligent terminal, where the external device is a device capable of charging the intelligent terminal; and the control unit 33 is configured to control the charging state of the external device according to the first duration and the second duration.
It should be noted that the acquiring unit 31 in this embodiment may be configured to execute step S1 in this embodiment, and the controlling unit 33 in this embodiment may be configured to execute step S2 in this embodiment.
Through the module, a first endurance time which can be provided by the electric quantity of the intelligent terminal and a second endurance time which can be provided by the electric quantity of external equipment of the intelligent terminal are obtained, wherein the external equipment is equipment capable of charging the intelligent terminal; controlling the charging state of the external equipment according to the first endurance time and the second endurance time, and if the first endurance time is greater than or equal to the second endurance time, controlling the external equipment not to charge the intelligent terminal; and under the condition that the first endurance time is less than the second endurance time, the external equipment is controlled to charge the intelligent terminal, so that the technical problem that the endurance of the external equipment is short in the related technology can be solved.
Optionally, the obtaining unit is further configured to obtain a first electric quantity and a first power consumption rate when obtaining a first endurance time that can be provided by the electric quantity of the intelligent terminal, where the first electric quantity is the electric quantity of the intelligent terminal, and the first power consumption rate is the power consumption rate of the intelligent terminal; and taking the ratio of the first electric quantity to the first power consumption rate as the first endurance time.
Optionally, the obtaining unit is further configured to obtain a power consumption rate of hardware of the intelligent terminal and a power consumption rate of software running on the intelligent terminal when obtaining the first power consumption rate; and taking the sum of the power consumption rate of the hardware and the power consumption rate of the software as the first power consumption rate.
Optionally, the obtaining unit is further configured to obtain a second electric quantity and a second power consumption rate when obtaining a second continuous flight time that can be provided by the electric quantity of the external device of the intelligent terminal, where the second electric quantity is the electric quantity of the external device of the intelligent terminal, and the second power consumption rate is the power consumption rate of the external device; and taking the ratio of the second electric quantity to the second power consumption rate as the second endurance time.
Optionally, the control unit is further configured to, when controlling the charging state of the external device according to the first duration and the second duration, control the external device not to charge the intelligent terminal when the first duration is greater than or equal to the second duration; and under the condition that the first endurance time is less than the second endurance time, controlling the external equipment to charge the intelligent terminal.
Optionally, the control unit is further configured to, after controlling the charging state of the external device according to the first duration and the second duration, control the charging state of the external device according to the duration of the smart terminal and the duration of the external device, which are detected again, when the interval time reaches a target duration.
Optionally, the control unit is further configured to obtain a product between a power consumption rate of the intelligent terminal and a preset coefficient before controlling the charging state of the external device according to the re-detected duration of the intelligent terminal and the duration of the external device; and taking the ratio of the current electric quantity of the intelligent terminal to the product as the target duration.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules as a part of the apparatus may run in a corresponding hardware environment, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to another aspect of the embodiment of the present application, there is also provided a server or a terminal for implementing the charging control method of the above-described device.
Fig. 4 is a block diagram of a terminal according to an embodiment of the present application, and as shown in fig. 4, the terminal may include: one or more processors 201 (only one shown), memory 203, and transmission means 205, as shown in fig. 4, the terminal may further comprise an input-output device 207.
The memory 203 may be configured to store software programs and modules, such as program instructions/modules corresponding to the charging control method and apparatus of the device in the embodiment of the present application, and the processor 201 executes various functional applications and data processing by running the software programs and modules stored in the memory 203, that is, implements the charging control method of the device. The memory 203 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 203 may further include memory located remotely from the processor 201, which may be connected to the terminal over 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 205 is used for receiving or sending data via a network, and can also be used for data transmission between a processor and a memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 205 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 205 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Wherein the memory 203 is specifically used for storing application programs.
The processor 201 may call the application stored in the memory 203 via the transmission means 205 to perform the following steps:
acquiring a first endurance time which can be provided by the electric quantity of an intelligent terminal and a second endurance time which can be provided by the electric quantity of external equipment of the intelligent terminal, wherein the external equipment is equipment capable of charging the intelligent terminal; and controlling the charging state of the external equipment according to the first endurance time and the second endurance time.
The processor 201 is further configured to perform the following steps:
when the charging state of the external equipment is controlled according to the first endurance time and the second endurance time, controlling the external equipment not to charge the intelligent terminal under the condition that the first endurance time is greater than or equal to the second endurance time; and under the condition that the first endurance time is less than the second endurance time, controlling the external equipment to charge the intelligent terminal.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 4 is a diagram illustrating the structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
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.
Embodiments of the present application also provide a storage medium. Alternatively, in the present embodiment, the storage medium described above may be used to execute program codes of a charging control method of a device.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
acquiring a first endurance time which can be provided by the electric quantity of an intelligent terminal and a second endurance time which can be provided by the electric quantity of external equipment of the intelligent terminal, wherein the external equipment is equipment capable of charging the intelligent terminal; and controlling the charging state of the external equipment according to the first endurance time and the second endurance time.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
when the charging state of the external equipment is controlled according to the first endurance time and the second endurance time, controlling the external equipment not to charge the intelligent terminal under the condition that the first endurance time is greater than or equal to the second endurance time; and under the condition that the first endurance time is less than the second endurance time, controlling the external equipment to charge the intelligent terminal.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: 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 above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
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 several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. 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 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 (10)

1. A method for controlling charging of a device, comprising:
acquiring a first endurance time which can be provided by the electric quantity of an intelligent terminal and a second endurance time which can be provided by the electric quantity of external equipment of the intelligent terminal, wherein the external equipment is equipment capable of charging the intelligent terminal;
and controlling the charging state of the external equipment according to the first endurance time and the second endurance time.
2. The method of claim 1, wherein obtaining the first duration that the power of the intelligent terminal can provide comprises:
acquiring first electric quantity and a first power consumption rate, wherein the first electric quantity is the electric quantity of an intelligent terminal, and the first power consumption rate is the power consumption rate of the intelligent terminal;
and taking the ratio of the first electric quantity to the first power consumption rate as the first endurance time.
3. The method of claim 2, wherein obtaining a first power consumption rate comprises:
acquiring the power consumption rate of hardware of the intelligent terminal and the power consumption rate of software running on the intelligent terminal;
and taking the sum of the power consumption rate of the hardware and the power consumption rate of the software as the first power consumption rate.
4. The method according to claim 1, wherein the obtaining of the second endurance time provided by the electric quantity of the external device of the intelligent terminal comprises:
acquiring a second electric quantity and a second power consumption rate, wherein the second electric quantity is the electric quantity of external equipment of the intelligent terminal, and the second power consumption rate is the power consumption rate of the external equipment;
and taking the ratio of the second electric quantity to the second power consumption rate as the second endurance time.
5. The method of claim 1, wherein controlling the state of charge of the external device according to the first duration and the second duration comprises:
under the condition that the first endurance time is greater than or equal to the second endurance time, controlling the external equipment not to charge the intelligent terminal;
and under the condition that the first endurance time is less than the second endurance time, controlling the external equipment to charge the intelligent terminal.
6. The method of claim 1, wherein after controlling the state of charge of the external device according to the first duration and the second duration, the method further comprises:
and under the condition that the interval time reaches the target duration, controlling the charging state of the external equipment according to the re-detected duration of the intelligent terminal and the duration of the external equipment.
7. The method according to claim 6, wherein before controlling the charging state of the external device according to the re-detected duration of the smart terminal and the duration of the external device, the method further comprises:
obtaining a product between the power consumption rate of the intelligent terminal and a preset coefficient;
and taking the ratio of the current electric quantity of the intelligent terminal to the product as the target duration.
8. A charge control apparatus for a device, comprising:
the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a first duration which can be provided by the electric quantity of an intelligent terminal and a second duration which can be provided by the electric quantity of external equipment of the intelligent terminal, and the external equipment is equipment capable of charging the intelligent terminal;
and the control unit is used for controlling the charging state of the external equipment according to the first endurance time and the second endurance time.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any of the preceding claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the method of any of the preceding claims 1 to 7 by means of the computer program.
CN202011517963.0A 2020-12-21 2020-12-21 Charging control method and device for equipment, storage medium and electronic device Withdrawn CN112688389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011517963.0A CN112688389A (en) 2020-12-21 2020-12-21 Charging control method and device for equipment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011517963.0A CN112688389A (en) 2020-12-21 2020-12-21 Charging control method and device for equipment, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112688389A true CN112688389A (en) 2021-04-20

Family

ID=75449730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011517963.0A Withdrawn CN112688389A (en) 2020-12-21 2020-12-21 Charging control method and device for equipment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112688389A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170181094A1 (en) * 2015-12-18 2017-06-22 Le Holdings (Beijing) Co., Ltd. Intelligent terminal power consumption control method and electronic device
CN108808798A (en) * 2018-07-10 2018-11-13 中国联合网络通信集团有限公司 The method and apparatus of reverse charging
CN110647443A (en) * 2019-09-25 2020-01-03 深圳传音控股股份有限公司 Method for detecting power consumption abnormality, terminal and computer-readable storage medium
CN110676905A (en) * 2019-10-12 2020-01-10 南昌黑鲨科技有限公司 Battery charging management method, system, intelligent terminal and computer readable storage medium
CN111864862A (en) * 2020-08-14 2020-10-30 珠海格力电器股份有限公司 Charging method and charging device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170181094A1 (en) * 2015-12-18 2017-06-22 Le Holdings (Beijing) Co., Ltd. Intelligent terminal power consumption control method and electronic device
CN108808798A (en) * 2018-07-10 2018-11-13 中国联合网络通信集团有限公司 The method and apparatus of reverse charging
CN110647443A (en) * 2019-09-25 2020-01-03 深圳传音控股股份有限公司 Method for detecting power consumption abnormality, terminal and computer-readable storage medium
CN110676905A (en) * 2019-10-12 2020-01-10 南昌黑鲨科技有限公司 Battery charging management method, system, intelligent terminal and computer readable storage medium
CN111864862A (en) * 2020-08-14 2020-10-30 珠海格力电器股份有限公司 Charging method and charging device

Similar Documents

Publication Publication Date Title
CN108599304A (en) Charging box, charge control method and Related product
CN102833387A (en) Mobile terminal and processing method thereof
CN106814324B (en) Method and device for monitoring the operating state of a battery pack
CN107884718B (en) Battery remaining capacity calculation method, mobile terminal and storage device
CN105517123B (en) A kind of the carrier aggregation mode setting method and communication terminal of communication terminal
US11228193B2 (en) Serial SOC testing for improved fast-charge algorithm
CN108989463B (en) Data processing method and device
CN115765085A (en) Overcharge and discharge threshold control method and device for power battery
CN115575842A (en) Battery management method, device, electronic equipment and storage medium
CN111211596B (en) Method and device for monitoring power utilization state of charging cabinet
CN105517127A (en) Method and device for controlling carrier aggregation function
CN105225065A (en) Based on serondary lithium battery supervisory system and the management method thereof of Electronic Health Record system
CN112688389A (en) Charging control method and device for equipment, storage medium and electronic device
CN116811658A (en) Method, system, equipment and medium for determining low-temperature charging compensation time of electric vehicle
CN116500458A (en) Power battery capacity evaluation method and device, vehicle and electronic device
WO2015084412A1 (en) System and methods to configure service providers for client appliances, and for tracking and providing service data
CN108631438A (en) A kind of intelligent power control method and its intelligent power, cloud computing center based on cloud computing
CN111131473B (en) Network parameter transmission method and device
CN111864862A (en) Charging method and charging device
CN113595174A (en) Battery management method, device, equipment and server
CN113352939A (en) Remaining power determination method and device, electronic equipment and storage medium
CN105391469A (en) Method and apparatus for controlling carrier aggregation function
US20120059608A1 (en) Digital Power Meter Communication System, Method and Computer-Readable Storage Medium for Storing Thereof
CN108183520B (en) Mobile power supply communication method and device
CN108551466A (en) A kind of data processing method and charging unit, data-updating method and system

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210420