CN111984107B - Method and device for processing power supply abnormity of terminal equipment - Google Patents

Method and device for processing power supply abnormity of terminal equipment Download PDF

Info

Publication number
CN111984107B
CN111984107B CN202010794538.XA CN202010794538A CN111984107B CN 111984107 B CN111984107 B CN 111984107B CN 202010794538 A CN202010794538 A CN 202010794538A CN 111984107 B CN111984107 B CN 111984107B
Authority
CN
China
Prior art keywords
current
power supply
value
electric quantity
initial 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.)
Active
Application number
CN202010794538.XA
Other languages
Chinese (zh)
Other versions
CN111984107A (en
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.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202010794538.XA priority Critical patent/CN111984107B/en
Publication of CN111984107A publication Critical patent/CN111984107A/en
Application granted granted Critical
Publication of CN111984107B publication Critical patent/CN111984107B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • 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 embodiment of the invention discloses a method and a device for processing power supply abnormity of terminal equipment. The method includes the steps that first initial electric quantity of current power supply equipment is obtained, and a first current curve of the current power supply equipment is recorded; acquiring a second current curve of the historical power supply equipment according to the first initial electric quantity; acquiring a first current value corresponding to the first current curve and a second current value corresponding to the second current curve at a first preset time; and determining that the deviation between the first current value and the second current value exceeds a first threshold value, stopping supplying power to the current power supply equipment, quickly judging that the power supply to the current power supply equipment is abnormal by the terminal equipment, and stopping charging the current power supply equipment in time so as to avoid damage.

Description

Method and device for processing power supply abnormity of terminal equipment
Technical Field
The invention relates to the technical field of mobile communication, in particular to a method and a device for processing power supply abnormity of terminal equipment.
Background
At present, the battery of the mobile terminal has a large capacity after being fully charged, generally more than 3000mAh, and therefore, a certain capacity can be provided for external devices lacking electric quantity, for example, other mobile phones, smart watches, bluetooth headsets and the like are connected through the OTG line of the mobile terminal for charging, so that redundant energy of the mobile terminal can be provided for other external devices to use in an emergency, so as to solve the urgent situation of the user, but on the other hand, there is a certain risk that the power of the mobile terminal is provided for the external devices after being boosted, namely, after the external devices are connected with the mobile terminal through the OTG, if the external devices are abnormal, the battery of the mobile terminal is pulled to be dead or even short-circuited, so that the mobile terminal has problems, in the research and practice processes of the prior art, the inventor of the invention finds that the OTG of the mobile terminal is all processed when abnormal, if the abnormal condition is light or the abnormal speed is high, the short circuit cannot be processed in time, and the mobile terminal is damaged.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing power supply abnormity of terminal equipment.
The embodiment of the invention provides a method for processing power supply abnormity of terminal equipment, which comprises the following steps:
acquiring first initial electric quantity of current power supply equipment, and recording a first current curve of the current power supply equipment;
acquiring a second current curve of the historical power supply equipment according to the first initial electric quantity;
acquiring a first current value corresponding to the first current curve and a second current value corresponding to the second current curve at a first preset time;
and determining that a first difference value of the first current value and the second current value exceeds a first threshold value, and stopping supplying power to the current power supply equipment.
Optionally, in some embodiments of the present invention, the obtaining a second current curve of the historical power supply device according to the first initial power amount includes:
acquiring all current curves of a plurality of historical power supply devices;
splicing all the current curves of the same historical power supply equipment according to the current value to form a third current curve;
and intercepting the third current curve by taking a point, corresponding to the first initial electric quantity, on the third current curve as a starting point, so as to generate the second current curve.
Optionally, in some embodiments of the present invention, the obtaining a first current value corresponding to the first preset time on the first current curve includes:
calculating a second difference value between the first current value and the first initial electric quantity;
calculating a quotient value of the second difference value and the first preset time;
and judging the magnitude of the quotient and a second threshold value.
Optionally, in some embodiments of the present invention, the determining the magnitude of the quotient value and the second threshold includes:
if the quotient value is smaller than the second threshold value, obtaining a plurality of second current values corresponding to the first preset time on a plurality of second current curves;
calculating an average value of a plurality of the second current values;
calculating a first difference between the average value and the first current value;
and judging the size of the first difference value and the first threshold value.
Optionally, in some embodiments of the present invention, the determining the magnitude of the first difference and the first threshold includes:
if the first difference value is smaller than the first threshold value, supplying power to the current power supply equipment;
and if the first difference is larger than the first threshold value, stopping supplying power to the current power supply equipment.
Optionally, in some embodiments of the present invention, the determining the magnitude of the quotient value and the second threshold includes:
and if the quotient value is larger than the second threshold value, stopping supplying power to the current power supply equipment.
Optionally, in some embodiments of the present invention, the obtaining a first initial power amount of a current power supply device and recording a first current curve of the current power supply device includes:
acquiring a second initial electric quantity of the terminal equipment;
comparing the second initial electric quantity with a preset initial electric quantity;
if the second initial electric quantity is larger than the preset initial electric quantity, supplying power to the current power supply equipment;
and if the second initial electric quantity is smaller than the preset initial electric quantity, stopping supplying power to the current power supply equipment.
Correspondingly, an embodiment of the present invention further provides a device for processing a power supply abnormality of a terminal device, including:
the recording unit is used for acquiring first initial electric quantity of current power supply equipment and recording a first current curve of the current power supply equipment;
the first obtaining unit is used for obtaining a second current curve of the historical power supply equipment according to the first initial electric quantity;
the second acquisition unit is used for acquiring a first current value corresponding to a first preset time on the first current curve and a second current value corresponding to the second current curve;
and the processing unit is used for determining that a first difference value of the first current value and the second current value exceeds a first threshold value and stopping supplying power to the current power supply equipment.
Similarly, an embodiment of the present invention further provides a terminal device, including:
a memory for storing an application program;
and the processor is used for realizing the steps in the power supply exception handling method of the terminal equipment when the application program is executed.
In addition, an embodiment of the present invention further provides a storage medium, where an application program is stored on the storage medium, and the application program, when executed by a processor, implements the steps in the method for processing the power supply abnormality of the terminal device.
The embodiment of the invention provides a method and a device for processing power supply abnormity of terminal equipment, when a user connects external equipment to be charged with the terminal equipment through an OTG, the terminal equipment acquires own second initial electric quantity, when the second initial electric quantity is less than preset initial electric quantity, the current electric quantity of the terminal equipment is indicated to be insufficient to be provided for the external equipment, power supply to the current power supply equipment is stopped, when the second initial electric quantity is greater than the preset initial electric quantity, the current electric quantity of the terminal equipment is indicated to be sufficient to be provided for the external equipment, the first initial electric quantity of the current power supply equipment is acquired and recorded, all current curves of all historical power supply equipment are acquired, all current curves of the same historical power supply equipment are spliced into a third current curve according to the magnitude of current values, and a point corresponding to the first initial electric quantity on the third current curve is taken as a starting point, intercepting a third current curve, generating a second current curve, analyzing an increase value of the current power supply equipment battery capacity in unit time according to the first current curve, comparing the increase value with a second threshold value, if the increase value is greater than the second threshold value, stopping the power supply of the current power supply equipment by the terminal equipment, if the increase value is less than the second threshold value, acquiring a plurality of second current values corresponding to a first preset time on a plurality of second current curves by the terminal equipment, calculating an average value, then calculating a first difference value between the average value and the first current value, if the first difference value is less than the first threshold value, continuously supplying power to the current power supply equipment by the terminal equipment, if the first difference value is greater than the first threshold value, stopping the power supply of the current power supply equipment by the terminal equipment, quickly judging that the power supply to the current power supply equipment is abnormal by the terminal equipment, and stopping the charging to the current power supply equipment in time to avoid damage.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a power supply scenario of a terminal device according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for processing a power supply abnormality of a terminal device according to an embodiment of the present invention;
fig. 3 is another flowchart of a method for processing a power supply abnormality of a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device power supply abnormality processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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 invention.
The embodiment of the invention provides a method and a device for processing power supply abnormity of terminal equipment. The device can be integrated in a terminal, and the terminal can be a mobile phone, a tablet computer, a notebook computer, an intelligent watch and other equipment.
For example, as shown in fig. 1, a preset initial power, a first threshold and a second threshold are preset for a terminal device, when an external device such as a bluetooth headset lacks power and needs to be charged urgently, a user connects the external device to the terminal device through an OTG, the terminal device obtains its second initial power, determines the second initial power and the preset initial power, when the second initial power is smaller than the preset initial power, it indicates that the current power of the terminal device is not enough to be provided to the external device, power supply to the current power supply device is stopped, when the second initial power is larger than the preset initial power, it indicates that the current power of the terminal device is enough to be provided to the external device, obtains the first initial power of the current power supply device and records the first current curve, obtains all current curves of all historical power supply devices, splices all current curves of the same historical power supply device into a third current curve according to the current values, and a point corresponding to the first initial electric quantity on the third current curve is taken as a starting point, the third current curve is intercepted, a second current curve is generated, the increment value of the current power supply equipment battery electric quantity in unit time is analyzed according to the first current curve, namely, a first current value corresponding to the first preset time on the first current curve is obtained, a second difference value between the first current value and the first initial electric quantity is calculated, a quotient value between the second difference value and the first preset time is calculated and compared with a second threshold value, the magnitude of the quotient value and the second threshold value is judged, if the quotient value is larger than the second threshold value, the terminal equipment stops supplying power to the current power supply equipment, if the quotient value is smaller than the second threshold value, the terminal equipment obtains a plurality of second current values corresponding to the first preset time on a plurality of second current curves, calculates an average value, calculates a first difference value between the average value and the first current value, if the first difference value is smaller than the first threshold value, and if the first difference is larger than the first threshold value, the terminal equipment stops supplying power to the current power supply equipment.
The following are detailed descriptions. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
In this embodiment, the power supply abnormality processing apparatus for a terminal device will be described in terms of the terminal device, where the power supply abnormality processing apparatus for a terminal device may be specifically integrated in the terminal device, and the terminal device may include a notebook computer, a tablet computer, a smart phone, a smart watch, and the like.
A method for processing power supply abnormity of terminal equipment comprises the following steps: acquiring first initial electric quantity of current power supply equipment, and recording a first current curve of the current power supply equipment; acquiring a second current curve of the historical power supply equipment according to the first initial electric quantity; acquiring a first current value corresponding to the first current curve and a second current value corresponding to the second current curve at a first preset time; and determining that a first difference value of the first current value and the second current value exceeds a first threshold value, and stopping supplying power to the current power supply equipment.
As shown in fig. 2, a specific flow of the method for processing the power supply abnormality of the terminal device is as follows:
step 201, acquiring a first initial electric quantity of a current power supply device, and recording a first current curve of the current power supply device.
For example, referring to fig. 3 together, when an external device such as a bluetooth headset lacks power and needs to be charged urgently, step 301 is executed, a user connects the external device with a terminal device through an OTG, the external device is a current power supply device of the terminal device, step 302 is executed, the terminal device obtains first initial power of the current power supply device, the terminal device detects that the current power supply device connected to a USB interface is a USB slave device, the terminal device starts to set the terminal device as a USB master device, and boosts the power to provide the current power supply device with power, step 303 is executed, and the terminal device records a first current curve of the current power supply device.
The first initial electric quantity is the battery electric quantity when the current power supply equipment and the terminal equipment are initially connected.
In some embodiments, the first current curve is a curve in which after the current power supply device is connected to the terminal device through the OTG, a current value transmitted by the terminal device to the current power supply device through the OTG changes with an increase in charging time.
In some embodiments, OTG (On-The-Go) technology is mainly applied to The connection between various devices or mobile devices for data exchange and power supply.
In an embodiment, the terminal device presets a preset initial power amount capable of charging the external device, where the preset initial power amount is greater than 0%, for example, the preset initial power amount is 10%, and the preset initial power amount can be flexibly set according to an actual situation.
In one embodiment, please refer to fig. 3 together, step 304 is executed, the terminal device obtains its second initial power amount, step 305 is executed, the second initial power amount and the preset initial power amount are determined, step 312 is executed, when the second initial power amount is smaller than the preset initial power amount, it indicates that the current power amount of the terminal device is not enough to be provided to the external device, the power supply to the current power supply device is stopped, and when the second initial power amount is larger than the preset initial power amount, it indicates that the current power amount of the terminal device is enough to be provided to the external device.
In an embodiment, after the terminal device is connected to the current power supply device through the OTG, the battery voltage of the terminal device is boosted to 5V through the boost chip and then output to the current power supply device, when the first initial power amount of the current power supply device is a low power amount, that is, the first initial power amount of the current power supply device is generally lower than 80%, the current power supply device enters a constant current charging state, at this time, the current is relatively large and constant, but the battery voltage of the current power supply device keeps increasing, and when the current power supply device gradually increases to a high power amount state along with charging, that is, the first initial power amount of the current power supply device is generally higher than 80%, the constant current charging is changed into constant voltage charging, and at this time, the battery voltage of the current power supply device keeps unchanged and the charging current gradually decreases.
In some embodiments, after the current power supply device is connected to the terminal device through the OTG, the terminal device starts a bluetooth connection function, the current power supply device also starts the bluetooth connection function, the terminal device and the current power supply device are connected to each other through bluetooth, the terminal device obtains an identifier such as a bluetooth name or a bluetooth matching code of the current power supply device, and marks the current power supply device through the identifier such as the bluetooth name or the bluetooth matching code.
And 202, acquiring a second current curve of the historical power supply equipment according to the first initial electric quantity.
For example, referring to fig. 3 together, all current curves of all historical power supply devices of the terminal device are obtained, step 306 is executed, all current curves of the same historical power supply device are spliced according to the magnitude of the current value to form a third current curve corresponding to the historical power supply device, all historical power supply devices of the terminal device form a corresponding third current curve, each third current curve is intercepted in a time increasing direction with a point corresponding to the first initial electric quantity on all third current curves as a starting point, and a corresponding second current curve is generated, that is, a second current curve corresponding to each historical power supply device of the terminal device is obtained.
In some embodiments, the historical power supply devices are all external devices that once acquire power from the terminal device, such as a smart watch, a smart bracelet, a mobile phone, a bluetooth headset, and the like, after the terminal device is connected with the external device by using bluetooth, the terminal device acquires a bluetooth name, a bluetooth matching code, and the like of the external device, and identifies different historical power supply devices by using the bluetooth name, the bluetooth matching code, and the like, so as to correspond to the second current curve.
In an embodiment, the same historical power supply device can be connected with a terminal device by using an OTG for multiple times, so as to obtain power from the terminal device, when the terminal device charges the historical power supply device each time, a curve that a current value transmitted to the historical power supply device through the OTG changes along with the increase of charging time is recorded, multiple current curves of the historical power supply device are formed, the initial power of the same historical power supply device is different when the same historical power supply device starts to be charged each time, so that the starting point of each current curve is different, and when the same historical power supply device is in the same power during charging each time, the corresponding current values of the historical power supply device on the multiple current curves are the same.
Step 203, obtaining a first current value corresponding to the first current curve and a second current value corresponding to the second current curve at a first preset time.
For example, the terminal device obtains a first current value corresponding to a first preset time on a first current curve and obtains a second current value corresponding to a plurality of second current curves for the first preset time, please refer to fig. 3, after obtaining the first current value, step 307 is executed, the terminal device analyzes an increase value of the current power supply device battery capacity per unit time according to the first current curve, step 308 is executed, and the increase value and the second threshold are determined.
In some embodiments, referring to fig. 3, the terminal device analyzes the increase value of the current power supply device battery power in unit time according to the first current curve, that is, the terminal device obtains a first current value corresponding to a first preset time on the first current curve, calculates a second difference between the first current value and the first initial power, calculates a quotient between the second difference and the first preset time, compares the quotient with a second threshold, determines the magnitude of the quotient and the second threshold, and executes step 312, where if the quotient is greater than the second threshold, the terminal device stops supplying power to the current power supply device.
In some embodiments, the first preset time refers to a time period, for example, 10 minutes, and the length of the first preset time is not limited and can be flexibly set according to actual situations.
In some embodiments, the setting of the second threshold is not limited, and can be flexibly set according to actual situations.
And 204, determining that the deviation of the first current curve and the second current curve exceeds a first threshold value, and stopping supplying power to the current power supply equipment.
For example, if the added value is lower than the second threshold, the terminal device analyzes whether a first difference value between the first current value and the second current value exceeds the first threshold, so as to determine whether to continue to supply power to the current device.
In an embodiment, please refer to fig. 3, step 309 is executed, if the quotient is smaller than the second threshold, the terminal device obtains a plurality of second current values of the plurality of second current curves after the first preset time, calculates an average value of the plurality of second current values, step 310 is executed, then calculates a second difference between the average value and the first current value, step 311 is executed, the magnitude of the second difference and the first threshold is determined, step 311 is executed, if the second difference is smaller than the first threshold, the terminal device continuously supplies power to the current power supply device, step 312 is executed, and if the second difference is larger than the first threshold, the terminal device stops supplying power to the current power supply device.
In some embodiments, the setting of the first threshold is not limited, and may be flexibly set according to actual situations.
In order to better implement the method, an embodiment of the present invention may further provide a terminal device power supply abnormality processing apparatus, where the terminal device power supply abnormality processing apparatus may be specifically integrated in a network device, and the network device may be a terminal or another device.
For example, as shown in fig. 4, the terminal device power supply abnormality processing apparatus may include: the recording unit 401, the first acquiring unit 402, the second acquiring unit 403, and the processing unit 404 are as follows:
(1) recording unit 401
The recording unit 401 is configured to obtain a first initial power amount of a current power supply device, and record a first current curve of the current power supply device.
For example, a user connects the external device to the terminal device through the OTG, the external device is a current power supply device of the terminal device, the recording unit 401 obtains a first initial power amount of the current power supply device, and the recording unit 401 records a first current curve of the current power supply device.
Optionally, the recording unit 401 may preset a preset initial power amount capable of charging the external device, where the preset initial power amount is greater than 0%, for example, the preset initial power amount is 10%, and the preset initial power amount may be flexibly set according to an actual situation.
Optionally, the recording unit 401 obtains a second initial power amount of the terminal device, determines the second initial power amount and a preset initial power amount, when the second initial power amount is smaller than the preset initial power amount, it indicates that the current power amount of the terminal device is not enough to be provided to the external device, and stops supplying power to the current power supply device, and when the second initial power amount is larger than the preset initial power amount, it indicates that the current power amount of the terminal device is enough to be provided to the external device.
Optionally, the same historical power supply device may be connected to the terminal device by using the OTG for multiple times, so as to obtain the electric quantity from the terminal device, and when the terminal device charges the historical power supply device each time, the recording unit 401 records a curve that a current value transmitted to the historical power supply device through the OTG changes along with the increase of the charging time, so as to form multiple current curves of the historical power supply device.
(2) First acquisition unit 402
An obtaining unit 402, configured to obtain a second current curve of the historical power supply device according to the first initial power amount.
For example, the obtaining unit 402 obtains all current curves of all historical power supply devices of the terminal device, splices all current curves of the same historical power supply device according to a time sequence to form a third current curve corresponding to the historical power supply device, all historical power supply devices of the terminal device form a corresponding third current curve, all third current curves use the first initial electric quantity as a starting point, and the obtaining unit 402 respectively intercepts corresponding second current curves from each third current curve, that is, obtains a second current curve corresponding to each historical power supply device of the terminal device.
(3) Second acquisition unit 403
A second obtaining unit 403, configured to obtain a first current value corresponding to the first current curve at a first preset time and a second current value corresponding to the second current curve.
For example, after acquiring the first current curve and the second current curve, the second acquiring unit 403 determines a first current value corresponding to a first preset time on the first current curve, and meanwhile, the second acquiring unit 403 acquires a plurality of second current values corresponding to a first preset time on each second current curve.
(4) Processing unit 404
And the processing unit 404 is configured to determine that a first difference between the first current value and the second current value exceeds a first threshold, and stop supplying power to the current power supply device.
For example, after obtaining the first current value and the second current value, the processing unit 403 analyzes an increase value of the battery power of the current power supply device in unit time according to the first current curve, and if the processing unit 403 determines that the increase value is lower than the second threshold, the processing unit 403 analyzes whether a difference value between current values of the first current curve and the second current curve after a first preset time exceeds the first threshold, so as to determine whether to continue to supply power to the current device.
In some embodiments, the processing unit 403 analyzes the increased value of the battery power of the current power supply device in unit time according to the first current curve, that is, the processing unit 403 calculates a second difference between the first current value and the first initial power, calculates a quotient between the second difference and a first preset time, compares the quotient with a second threshold, determines the magnitude of the quotient and the second threshold, and if the quotient is greater than the second threshold, the terminal device stops supplying power to the current power supply device.
In an embodiment, if the quotient is smaller than the second threshold, the processing unit 403 obtains a plurality of second current values of the plurality of second current curves after a first preset time, calculates an average value of the plurality of second current values, and then calculates a first difference between the average value and the first current value, if the first difference is smaller than the first threshold, the terminal device continues to supply power to the current power supply device, and if the first difference is larger than the first threshold, the terminal device stops supplying power to the current power supply device.
Accordingly, an embodiment of the present invention further provides a terminal, as shown in fig. 5, the terminal may include a Radio Frequency (RF) circuit 501, a memory 502 including one or more computer-readable storage media, an input unit 503, a display unit 504, a sensor 505, an audio circuit 506, a Wireless Fidelity (WiFi) module 507, a processor 508 including one or more processing cores, and a power supply 509. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 501 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 508 for processing; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 501 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 501 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), etc.
The memory 502 may be used to store software programs and modules, and the processor 508 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 508 and the input unit 503 access to the memory 502.
The input unit 503 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 503 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 508, and can receive and execute commands sent by the processor 508. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 503 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 504 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 504 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 508 to determine the type of touch event, and then the processor 508 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 506, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 506 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 506 and converted into audio data, which is then processed by the audio data output processor 508, and then transmitted to, for example, another terminal via the RF circuit 501, or the audio data is output to the memory 502 for further processing. The audio circuit 506 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 507, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 507, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 508 is a control center of the terminal, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile phone. Optionally, processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 508.
The terminal also includes a power supply 509 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 508 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 509 may also include any component such as one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 508 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 508 runs the application programs stored in the memory 502, thereby implementing various functions: acquiring first initial electric quantity of current power supply equipment, and recording a first current curve of the current power supply equipment; acquiring a second current curve of the historical power supply equipment according to the first initial electric quantity; acquiring a first current value corresponding to the first current curve and a second current value corresponding to the second current curve at a first preset time; and determining that a first difference value of the first current value and the second current value exceeds a first threshold value, and stopping supplying power to the current power supply equipment.
In the foregoing embodiments, 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.
The method and the device for processing the power supply abnormality of the terminal device provided by the embodiment of the invention are described in detail, a specific example is applied in the description to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the technical scheme and the core idea of the invention; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for processing power supply abnormity of terminal equipment is characterized by comprising the following steps:
acquiring first initial electric quantity of current power supply equipment, and recording a first current curve of the current power supply equipment;
acquiring a second current curve of the historical power supply equipment according to the first initial electric quantity;
acquiring a first current value corresponding to the first current curve and a second current value corresponding to the second current curve at a first preset time;
determining that a first difference value between the first current value and the second current value exceeds a first threshold value, and stopping supplying power to the current power supply equipment;
after the obtaining of the first initial electric quantity of the current power supply device and the recording of the first current curve of the current power supply device, the method further includes:
acquiring a second initial electric quantity of the terminal equipment;
comparing the second initial electric quantity with a preset initial electric quantity;
if the second initial electric quantity is larger than the preset initial electric quantity, supplying power to the current power supply equipment;
and if the second initial electric quantity is smaller than the preset initial electric quantity, stopping supplying power to the current power supply equipment.
2. The method of claim 1, wherein obtaining a second current profile of the historical power supply device based on the first initial amount of power comprises:
acquiring all current curves of a plurality of historical power supply devices;
splicing all the current curves of the same historical power supply equipment according to the current value to form a third current curve;
and intercepting the third current curve by taking a point, corresponding to the first initial electric quantity, on the third current curve as a starting point, so as to generate the second current curve.
3. The method of claim 1, wherein obtaining a first current value corresponding to the first preset time on the first current curve comprises:
calculating a second difference value between the first current value and the first initial electric quantity;
calculating a quotient value of the second difference value and the first preset time;
and judging the magnitude of the quotient and a second threshold value.
4. The method of claim 3, wherein determining the magnitude of the quotient and the second threshold comprises:
if the quotient value is smaller than the second threshold value, obtaining a plurality of second current values corresponding to the first preset time on a plurality of second current curves;
calculating an average value of a plurality of the second current values;
calculating a first difference between the average value and the first current value;
and judging the size of the first difference value and the first threshold value.
5. The method of claim 4, wherein the determining the magnitude of the first difference value and the first threshold value comprises:
if the first difference value is smaller than the first threshold value, supplying power to the current power supply equipment;
and if the first difference is larger than the first threshold value, stopping supplying power to the current power supply equipment.
6. The method of claim 3, wherein determining the magnitude of the quotient and the second threshold comprises:
and if the quotient value is larger than the second threshold value, stopping supplying power to the current power supply equipment.
7. A terminal equipment power supply exception handling device is characterized by comprising:
the recording unit is used for acquiring first initial electric quantity of current power supply equipment and recording a first current curve of the current power supply equipment;
the first obtaining unit is used for obtaining a second current curve of the historical power supply equipment according to the first initial electric quantity;
the second acquisition unit is used for acquiring a first current value corresponding to a first preset time on the first current curve and a second current value corresponding to the second current curve;
the processing unit is used for determining that a first difference value of the first current value and the second current value exceeds a first threshold value and stopping supplying power to the current power supply equipment;
the recording unit is further configured to:
acquiring a second initial electric quantity of the terminal equipment;
comparing the second initial electric quantity with a preset initial electric quantity;
if the second initial electric quantity is larger than the preset initial electric quantity, supplying power to the current power supply equipment;
and if the second initial electric quantity is smaller than the preset initial electric quantity, stopping supplying power to the current power supply equipment.
8. A terminal device, comprising:
a memory for storing an application program;
a processor, configured to implement the steps in the method for processing power supply exception of the terminal device according to any one of claims 1 to 6 when executing the application program.
9. A storage medium, wherein an application program is stored on the storage medium, and when the application program is executed by a processor, the application program implements the steps in the method for processing the power supply abnormality of the terminal device according to any one of claims 1 to 6.
CN202010794538.XA 2020-08-10 2020-08-10 Method and device for processing power supply abnormity of terminal equipment Active CN111984107B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010794538.XA CN111984107B (en) 2020-08-10 2020-08-10 Method and device for processing power supply abnormity of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010794538.XA CN111984107B (en) 2020-08-10 2020-08-10 Method and device for processing power supply abnormity of terminal equipment

Publications (2)

Publication Number Publication Date
CN111984107A CN111984107A (en) 2020-11-24
CN111984107B true CN111984107B (en) 2022-05-06

Family

ID=73445867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010794538.XA Active CN111984107B (en) 2020-08-10 2020-08-10 Method and device for processing power supply abnormity of terminal equipment

Country Status (1)

Country Link
CN (1) CN111984107B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107706969A (en) * 2017-09-27 2018-02-16 广东欧珀移动通信有限公司 Charge method for detecting abnormality, charging data line and charging system
CN108132401A (en) * 2017-12-28 2018-06-08 广东欧珀移动通信有限公司 Charge abnormal detection method, device, storage medium and mobile terminal
CN108808798A (en) * 2018-07-10 2018-11-13 中国联合网络通信集团有限公司 The method and apparatus of reverse charging
CN108881630A (en) * 2018-06-11 2018-11-23 中国联合网络通信集团有限公司 reverse charging management method, device and terminal
CN109856552A (en) * 2019-01-28 2019-06-07 蜂巢能源科技有限公司 Vehicle and its battery method for detecting abnormality and device based on current value

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108896911B (en) * 2018-04-26 2021-04-30 广东小天才科技有限公司 Charging abnormity detection method and device for electronic equipment
CN110176643B (en) * 2019-05-14 2021-12-17 上海摩软通讯技术有限公司 Charging method, power supply management equipment and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107706969A (en) * 2017-09-27 2018-02-16 广东欧珀移动通信有限公司 Charge method for detecting abnormality, charging data line and charging system
CN108132401A (en) * 2017-12-28 2018-06-08 广东欧珀移动通信有限公司 Charge abnormal detection method, device, storage medium and mobile terminal
CN108881630A (en) * 2018-06-11 2018-11-23 中国联合网络通信集团有限公司 reverse charging management method, device and terminal
CN108808798A (en) * 2018-07-10 2018-11-13 中国联合网络通信集团有限公司 The method and apparatus of reverse charging
CN109856552A (en) * 2019-01-28 2019-06-07 蜂巢能源科技有限公司 Vehicle and its battery method for detecting abnormality and device based on current value

Also Published As

Publication number Publication date
CN111984107A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN106786962B (en) Charging control method and device and terminal
EP3579375B1 (en) Charging method, charging device and terminal
US11050282B2 (en) Power supply control method and device, storage medium and electronic device
CN110022600B (en) Driving current adjusting method and device, storage medium and mobile terminal
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN108777627B (en) Power supply method and device
CN110636526A (en) NFC communication detection method and device, computer readable storage medium and terminal
CN110688339A (en) Data transmission method and device, mobile terminal and storage medium
CN111984107B (en) Method and device for processing power supply abnormity of terminal equipment
CN112261634B (en) Bluetooth transmission control method and device, terminal equipment and storage medium
CN106155733B (en) Method and device for running application program
CN109672242B (en) Terminal charging control method and device and storage medium
CN114297322A (en) Data processing method, device, terminal and storage medium
CN113722260A (en) Protection circuit, serial bus system, circuit protection method and mobile terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN112367425A (en) Volume adjusting method and device and terminal
CN112256610B (en) Connection control method, system, storage medium and mobile terminal
CN109995441B (en) Communication information processing method, device and storage medium
CN111384754B (en) Charging method, charging device, storage medium and mobile terminal
CN109617660B (en) Method and device for setting carrier aggregation frequency band, storage medium and mobile terminal
CN111343325B (en) Port detection method and device, mobile terminal and storage medium
CN111654578B (en) Mobile terminal sensor restoration method
CN111371154B (en) Charging structure, charging method and terminal
CN211655786U (en) Electronic equipment and portable power source

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
GR01 Patent grant
GR01 Patent grant